RockPi 4 CPU Temperature

I am using RockPi4 running Ubuntu 20.04 server (no desktop or screen).

How do I get the the CPU temperature ?

I installed package lm-sensors, but sensors-detect could not find any sensors.

htop does not show any cpu temperature info

Any other ideas?

# paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/'
soc-thermal  62.2°C
gpu-thermal  61.1°C

I have the same issue on my 4c+

cat: /sys/class/thermal/thermal_zone0/temp: Invalid argument
cat: /sys/class/thermal/thermal_zone1/temp: Invalid argument

‘temp’ always returns and invalid arguments thus cannot be read

I even updated to the latest release:
Linux rockpi-4cplus 5.15.86-rockchip64 #trunk SMP PREEMPT Sun Jan 1 08:44:21 UTC 2023 aarch64 GNU/Linux

any suggestion? what’s missing in my 4c+?

Hi Stegg.

For me, using Armbian, the device tree for Rock 4c+ has the &tsadc disabled.
I had to add an overlay to enable it, in order to get CPU/GPU (SoC) temperature.

I’m not sure why this and also mali-supply (GPU regulator) are disabled by radxa. Without mali-supply, the panfrost driver doesn’t seem to load, and GPU works very badly / not much at all.
Maybe there is a reason why these are left disabled, but I have ~25 of these 4C-plus in use as RDP thin clients using Wayland, and they seem to work pretty well to me, once everything is figured out and enabled etc.

The overlays I’m talking about are mentioned in the comments here:

1 Like