Changeset 5327
- Timestamp:
- 09/09/08 14:14:28 (5 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
prog/pwm/pwmconfig (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r5326 r5327 11 11 Print the revision and date at start-up 12 12 Detect and report obviously incorrect fan speeds 13 Determine MINSTOP automatically 13 14 sensors-detect: Add Intel SCH (bus) support 14 15 Add SMSC EMC6D103 support -
lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/pwmconfig
r5326 r5327 616 616 } 617 617 618 # $1 = fan input to read the fan speed from 618 619 function TestMinStop() 619 620 { 621 local faninput=$1 622 local threshold=100000 623 local fanspeed 624 620 625 echo 621 626 echo 'Now we decrease the PWM value to figure out the lowest usable value.' 622 echo 'Press return as long as the fan spins. When the fan stops spinning,' 623 echo "enter 'y'. We will use a slightly greater value as the minimum speed." 624 let fanok=0 627 echo 'We will use a slightly greater value as the minimum speed.' 625 628 let fanval=$MAX 626 629 627 630 pwmenable $pwms 628 until [ "$fanok" = "1"]631 while [ $fanval -ge 0 ] 629 632 do 633 pwmset $pwms $fanval 634 sleep $PDELAY 635 fanspeed=`cat $faninput | cut -d' ' -f2` 636 if [ $fanspeed -gt $threshold ] 637 then 638 echo " PWM $fanval -> $fanspeed RPM (probably incorrect)" 639 break 640 else 641 echo " PWM $fanval -> $fanspeed RPM" 642 if [ $fanspeed = "0" -o $fanspeed = "-1" ] 643 then 644 break 645 fi 646 let threshold=fanspeed*6/5 647 fi 630 648 if [ $fanval -lt $STEP2_BELOW ] 631 649 then … … 634 652 let fanval=$fanval-$STEP 635 653 fi 636 if [ $fanval -lt 0 ] ; then let fanval=0 ; let fanok=1 ; fi637 echo -n "Setting $pwms to $fanval..."638 pwmset $pwms $fanval639 read FANTEST640 if [ "$FANTEST" != "" ] ; then let fanok=1 ; fi641 654 done 642 655 pwmdisable $pwms … … 798 811 if [ "$XMSTOP" = "t" -o "$XMSTOP" = "T" ] 799 812 then 800 TestMinStop 813 TestMinStop $FAN 801 814 XMSTOP=$fanval 802 815 fi
