How To Find Board Temperature Sensor Readings

Linux temperatures at exposed to userspace through the thermal class. You will find virtual files called temp within the sysfs thermal class directories:

cat /sys/class/thermal/thermal_zone0/temp

Some boards and chips will have multiple temperature sensors enumerated in multiple directories under /sys/class/thermal/ eg thermal_zone1, thermal_zone2, etc.

1 Like

Hi,

When runing

cat /sys/class/thermal/thermal_zone0/temp

or

sudo cat /sys/class/thermal/thermal_zone0/temp

it returns:

cat: /sys/class/thermal/thermal_zone0/temp: No such file or directory

on a fresh install of 2022-09-22-raspbian-bullseye-arm64-lite+aml-s905x-cc.0.img on a LePotato

What could be wrong?

Thank you.

This was a kernel bug. It’s been fixed.