From ee5a542b20d588945a5be19005e337df039fc14b Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 11 Feb 2021 14:41:45 +0000 Subject: [PATCH] pwmconfig: Further raise the fan threshold Modern 4-pin fans can have a minimum speed (PWM=0) which is still relatively high. I've seen 4500 RPM fans lower their speed to only 3500 RPM, which is 77% of the maximum speed, above our current detection threshold (3/4 or 75%). Increase the threshold to 5/6 (roughly 83%) to make sure such fans are handled properly. References: boo#1181890 Signed-off-by: Jean Delvare --- prog/pwm/pwmconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index 197e800c..5cb6cee9 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -451,7 +451,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=3*$OS/4 + let threshold=5*$OS/6 if [ $S -lt $threshold ] then echo " It appears that fan $j"