Skip to content

Commit

Permalink
Fix Ryzen 4750U temperature output with zenpower (close #145)
Browse files Browse the repository at this point in the history
* fixes #145

* Update core.py
  • Loading branch information
Red-Eyed authored Jan 20, 2021
1 parent 6f7eec3 commit 81e208f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 81e208f

Please sign in to comment.