How to read out CPU temperature?

Some AMD EPYC CPUs don't report their temperature in the dev.cpu.*.temperature sysctls even though amdtemp kernel module is loaded. Any other way to do that, or the mentioned CPUs lack temperature sensors?
 
I found a workaround - query MCE network interface sensors)


Code:
dev.mce.3.hw_temperature: 68000
dev.mce.2.hw_temperature: 70000
dev.mce.1.hw_temperature: 57000
dev.mce.0.hw_temperature: 58000
 
In .conkyrc a line

Code:
Temperature ${exec sysctl -a|grep temperature | awk '{print $2}' } Celsius

conky-temperature-celsius.png
 
Back
Top