Fix Ryzen 4750U temperature output with zenpower (close #145)

* fixes #145

* Update core.py
This commit is contained in:
Vadym Stupakov 2021-01-20 22:20:49 +02:00 committed by GitHub
parent 6f7eec3b05
commit 81e208f5a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -722,6 +722,9 @@ def sysinfo():
elif "k10temp" in core_temp:
# https://www.kernel.org/doc/Documentation/hwmon/k10temp
temp_per_cpu = [core_temp["k10temp"][0].current] * online_cpu_count
elif "zenpower" in core_temp:
# https://github.com/AdnanHodzic/auto-cpufreq/issues/145#issuecomment-763294009
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
except: