Changeset 5324

Show
Ignore:
Timestamp:
09/08/08 15:51:22 (3 months ago)
Author:
khali
Message:

Use the same step values for the MINSTOP test as we do for the detailed
correlation. That is, 15 above 31 and 2 below 31. This makes more sense
than using 10 all the time, as changes in low PWM values tend to have a
greater effect on fan speeds than changes in high PWM values.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r5323 r5324  
    88             Fix MINSTOP and MINSTART test functions 
    99             Test MINSTOP before MINSTART 
     10             Use better step values for MINSTOP test 
    1011  sensors-detect: Add Intel SCH (bus) support 
    1112                  Add SMSC EMC6D103 support 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/pwmconfig

    r5323 r5324  
    607607{ 
    608608        echo 
    609         echo 'Now we decrease the PWM value in 10-unit-steps.' 
    610         echo 'Let the fan reach full speed, then press return until the' 
    611         echo "fan stops spinning. Then enter 'y'." 
    612         echo 'We will use this value +20 as the minimum speed.' 
     609        echo 'Now we decrease the PWM value to figure out the lowest usable value.' 
     610        echo 'Press return as long as the fan spins. When the fan stops spinning,' 
     611        echo "enter 'y'. We will use a slightly greater value as the minimum speed." 
    613612        let fanok=0 
    614613        let fanval=$MAX 
     
    617616        until [ "$fanok" = "1" ] 
    618617        do 
    619                 let fanval=fanval-10 
     618                if [ $fanval -lt $STEP2_BELOW ] 
     619                then 
     620                        let fanval=$fanval-$STEP2 
     621                else 
     622                        let fanval=$fanval-$STEP 
     623                fi 
    620624                if [ $fanval -lt 0 ] ; then let fanval=0 ; let fanok=1 ; fi 
    621625                echo -n "Setting $pwms to $fanval..." 
     
    626630        pwmdisable $pwms 
    627631 
    628         let fanval=fanval+20 
    629         if [ $fanval -gt $MAX ] ; then let fanval=$MAX ; fi 
     632        if [ $fanval -lt $STEP2_BELOW ] 
     633        then 
     634                let 'fanval=fanval+2*STEP2' 
     635        else 
     636                let 'fanval=fanval+STEP' 
     637        fi 
    630638        echo "OK, using $fanval" 
    631639}