diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index 1ee9a179..73406cf2 100644 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -27,7 +27,6 @@ warnings.filterwarnings("ignore") # ToDo: -# - re-enable CPU fan speed display and make more generic and not only for thinkpad # - replace get system/CPU load from: psutil.getloadavg() | available in 5.6.2) SCRIPTS_DIR = Path("/usr/local/share/auto-cpufreq/scripts/") @@ -1146,9 +1145,10 @@ def sysinfo(): global avg_all_core_temp avg_all_core_temp = float(avg_cores_temp / online_cpu_count) - # print current fan speed | temporarily commented - # current_fans = psutil.sensors_fans()['thinkpad'][0].current - # print("\nCPU fan speed:", current_fans, "RPM") + # print current fan speed + current_fans = list(psutil.sensors_fans()) + for current_fan in current_fans: + print("\nCPU fan speed:", psutil.sensors_fans()[current_fan][0].current, "RPM") def no_stats_msg():