Changeset 4381

Show
Ignore:
Timestamp:
04/27/07 15:41:32 (6 years ago)
Author:
khali
Message:

pwmconfig: Use smaller steps for low PWM values. Inspired from a patch
from the openSuse sensors package. This is a good idea because the
PWM/speed relation isn't linear, and it is frequent that the speed
changes are concentrated in the low PWM range.

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r4379 r4381  
    99  Man page sensors.conf.5: Update the chip statement section 
    1010  Program isadump: Detect when address bit 7 is a busy flag 
     11  Program pwmconfig: Use smaller steps for low PWM values 
    1112  Program rrd: Support only hwmon class devices 
    1213               Look for rrd in /usr/bin by default 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/pwmconfig

    r4296 r4381  
    249249STEP=15 
    250250PDELAY=2 
     251# Use a smaller step for low PWM values as this is typically where the 
     252# more important fan speed changes are happening. 
     253STEP2=2 
     254STEP2_BELOW=31 
    251255 
    252256function pwmdetail() 
     
    316320                        break 
    317321                fi 
    318                 let pwm=$pwm-$STEP 
     322                if [ $pwm -lt $STEP2_BELOW ] 
     323                then 
     324                        let pwm=$pwm-$STEP2 
     325                else 
     326                        let pwm=$pwm-$STEP 
     327                fi 
    319328        done 
    320329        pwmdisable $P