Changeset 5856

Show
Ignore:
Timestamp:
08/22/10 18:09:08 (4 years ago)
Author:
khali
Message:

Wait for fans to return to full speed only once per PWM. In the rare
case where a given PWM output controls more than one fan, this makes
the script somewhat faster.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5855 r5856  
    77              Change license to LGPL 
    88  pwmconfig: Sample all fan speeds before returning to full speed (#2380) 
     9             Wait for fans to return to full speed only once per PWM 
    910  sensors.conf.default: W83667HG config is similar to W83627EHF/DHG 
    1011  sensord: Fix support of multiple chips (#2377) 
  • lm-sensors/trunk/prog/pwm/pwmconfig

    r5855 r5856  
    465465                                fanactive="$j ${fanactive}" 
    466466                                fanactive_min="$S ${fanactive_min}" 
     467 
     468                                # Give all correlated fans time to return to full speed 
     469                                sleep $DELAY 
     470                                if [ $? -ne 0 ] 
     471                                then 
     472                                        echo '^C received, aborting...' 
     473                                        exit 1 
     474                                fi 
    467475                        else 
    468476                                fanactive="$j+${fanactive}" #not supported yet by fancontrol 
    469477                                fanactive_min="$S+${fanactive_min}" 
    470                         fi 
    471                         sleep $DELAY 
    472                         if [ $? -ne 0 ] 
    473                         then 
    474                                 echo '^C received, aborting...' 
    475                                 exit 1 
    476478                        fi 
    477479                        # this will return the first field if there's only one (sysfs)