Skip to content

Commit 06a1642

Browse files
authored
Merge pull request #835 from vsalvador/MaxFanRPM
2 parents 721187f + 0459e76 commit 06a1642

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)