Command to read CPU, GPU temperature?

Any idea which command should we use to get current temp readings on GPU and CPU?

Thanks

Hi,
please try:
cat /sys/class/thermal/thermal_zone0/temp
cat /sys/class/thermal/thermal_zone1/temp
to get temps from the 2 thermal zones of the soc (they appear to be related)
I don’t know if it’s possible to get either CPU or GPU temp.

You could also try:
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

cat /sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_cur_freq
to get each core frequency and understand if the core is throttling / overheating.

2 Likes

you should note that even though the frequency is dynamic it is kinda of fixed to a few specific freqencies,especially the 100MHz multiples, so you will see frequencies like 2218 MHz, 2118MHz, 2018 Mhz, 1918 MHz etc.