Skip to contentSkip to conversation

pwmconfig: Raise the detection threshold

PATCH New Jean Delvare 1 participant 1 message Apr 28, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 2/5 pwmconfig: Raise the detection threshold

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.

---
 prog/pwm/pwmconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
prog/pwm/pwmconfig +1 -1
@@ -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"
Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors