From 58ec80bf54e21d0c3f402cbd01109ab0860c2a5c Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 1 May 2013 10:29:57 +0000 Subject: [PATCH] pwmconfig: Raise the detection threshold to 3/4 Detection threshold of 2/3 of the maximum speed is too low, some fans will slow down to about that speed so controlled fans may be missed. Use 3/4 as the threshold to avoid these false negatives. --- CHANGES | 1 + prog/pwm/pwmconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 870e3f90..eae6b521 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,7 @@ SVN HEAD sensors.conf.5: Mention "sensors -u" to get the raw feature names sensors: Clarify what option -u is good for pwmconfig: Print the initial PWM values + Raise the detection threshold to 3/4 sensors-detect: Add detection of AMD family 16h power sensors Map IT8771E, IT8772E, IT8782F and IT8783F to it87 Use /sys/module instead of /proc/modules where available diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index 323a6e46..6cf13270 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -449,7 +449,7 @@ do OS=`echo $SPEEDS | cut -d' ' -f$count` S=`echo $CURRENT_SPEEDS | cut -d' ' -f$count` echo " $j ... speed was $OS now $S" - let threshold=2*$OS/3 + let threshold=3*$OS/4 if [ $S -lt $threshold ] then echo " It appears that fan $j"