From 5d24f0e451c6889b3b1c4b48e92982a5bd35b322 Mon Sep 17 00:00:00 2001 From: alexmak23 Date: Sun, 10 Oct 2021 14:20:33 +0800 Subject: [PATCH] Add temperature readings in thinkpad (#252) --- auto_cpufreq/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index b297eb0..de7d416 100644 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -998,6 +998,8 @@ def sysinfo(): temp_per_cpu = [core_temp["zenpower"][0].current] * online_cpu_count elif "acpitz" in core_temp: temp_per_cpu = [core_temp["acpitz"][0].current] * online_cpu_count + elif "thinkpad" in core_temp: + temp_per_cpu = [core_temp["thinkpad"][0].current] * online_cpu_count except Exception as e: print(repr(e)) pass