diff --git a/CHANGES b/CHANGES index 9f0c73b8..23b3a78d 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,7 @@ SVN HEAD Add dme1737 support Man page sensors.conf.5: Update the chip statement section Program isadump: Detect when address bit 7 is a busy flag + Program pwmconfig: Use smaller steps for low PWM values Program rrd: Support non-i2c devices (hwmon class) Add missing shell declarations Update URI diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index 6217d594..c9140713 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -248,6 +248,10 @@ echo PLOTTER=gnuplot STEP=15 PDELAY=2 +# Use a smaller step for low PWM values as this is typically where the +# more important fan speed changes are happening. +STEP2=2 +STEP2_BELOW=31 function pwmdetail() { @@ -315,7 +319,12 @@ function pwmdetail() fi break fi - let pwm=$pwm-$STEP + if [ $pwm -lt $STEP2_BELOW ] + then + let pwm=$pwm-$STEP2 + else + let pwm=$pwm-$STEP + fi done pwmdisable $P if [ "$PLOT" = "y" ]