Skip to content

Commit 0459e76

Browse files
author
Vicente Salvador
committed
Fan max RPM depends of fan technology: 1500, 2200 or 3000
1 parent 63482af commit 0459e76

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

library/sensors/sensors_python.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,19 @@ def sensors_fans():
8484
for base in basenames:
8585
try:
8686
current_rpm = int(bcat(base + '_input'))
87+
8788
try:
8889
max_rpm = int(bcat(base + '_max'))
8990
except:
90-
max_rpm = 1500 # Approximated: max fan speed is 1500 RPM
91+
max_rpm = False # Real maximum speed not found
92+
if not max_rpm:
93+
if current_rpm > 2200:
94+
max_rpm = 3000 # AIO Pumps are usualy 3000 RPM
95+
elif current_rpm > 1500:
96+
max_rpm = 2200 # High speed fans are usualy 2200 RPM
97+
else
98+
max_rpm = 1500 # Approximated: max fan speed is 1500 RPM
99+
91100
try:
92101
min_rpm = int(bcat(base + '_min'))
93102
except:

0 commit comments

Comments
 (0)