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.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5324 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-09-08 13:51:22 +00:00
1 parent 5f9008ddf3
commit 7ca1c39b92
2 files changed
+16 -7

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ SVN-HEAD
pwmconfig: Tell the user about gnuplot if isn't installed
Fix MINSTOP and MINSTART test functions
Test MINSTOP before MINSTART
Use better step values for MINSTOP test
sensors-detect: Add Intel SCH (bus) support
Add SMSC EMC6D103 support
Improve MAX6657, MAX6658, MAX6659 detection
+15 -7
View File
@@ -606,17 +606,21 @@ function TestMinStart()
function TestMinStop()
{
echo
echo 'Now we decrease the PWM value in 10-unit-steps.'
echo 'Let the fan reach full speed, then press return until the'
echo "fan stops spinning. Then enter 'y'."
echo 'We will use this value +20 as the minimum speed.'
echo 'Now we decrease the PWM value to figure out the lowest usable value.'
echo 'Press return as long as the fan spins. When the fan stops spinning,'
echo "enter 'y'. We will use a slightly greater value as the minimum speed."
let fanok=0
let fanval=$MAX
pwmenable $pwms
until [ "$fanok" = "1" ]
do
let fanval=fanval-10
if [ $fanval -lt $STEP2_BELOW ]
then
let fanval=$fanval-$STEP2
else
let fanval=$fanval-$STEP
fi
if [ $fanval -lt 0 ] ; then let fanval=0 ; let fanok=1 ; fi
echo -n "Setting $pwms to $fanval..."
pwmset $pwms $fanval
@@ -625,8 +629,12 @@ function TestMinStop()
done
pwmdisable $pwms
let fanval=fanval+20
if [ $fanval -gt $MAX ] ; then let fanval=$MAX ; fi
if [ $fanval -lt $STEP2_BELOW ]
then
let 'fanval=fanval+2*STEP2'
else
let 'fanval=fanval+STEP'
fi
echo "OK, using $fanval"
}