ssleert / zfxtop

[WIP] fetch top for gen Z with X written by bubbletea enjoyer
BSD 2-Clause "Simplified" License
367 stars 13 forks source link

Add support for AMD CPUs temperature reading #4

Closed mxmvncnt closed 1 year ago

mxmvncnt commented 1 year ago

AMD CPUs use a different kernel driver, so the content in the "name" file does not say coretemp, instead it says k10temp. This resulted in AMD processors showing 0 instead of the actual temperature. This PR fixes that.

Should fix #2, but after reading it, maybe it is more complicated than just changing a string as the issue mentions

https://www.kernel.org/doc/html/latest/hwmon/k10temp.html