Skip to content

Commit 471fd64

Browse files
authored
Merge pull request mathoudebine#835 from vsalvador/MaxFanRPM
2 parents 5cb9617 + c9436b8 commit 471fd64

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

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)