How to read thermal values

I found out how to read one of the thermal values from shell:

$ cat 

echo -n 'max170xx_battery: '
cat /sys/devices/platform/soc@0/30800000.bus/30a50000.i2c/i2c-3/3-0036/power_supply/max170xx_battery/temp | sed 's/../&,/' | sed 's/$/°C/'

max170xx_battery: 37,6°C

But, from where are the other values to be read?



tail -n+0 /sys/class/thermal/thermal_zone?/{type,temp}

cpu-thermal, gpu-thermal and vpu-thermal have obvious meaning. max170xx_battery is the temperature of the gauge chip, and bq25890-charger is the temperature of the battery.

Thanks! Or:

for i in /sys/class/thermal/thermal_zone? ; do echo -n `cat $i/type` ': ' ; cat $i/temp ; done
cpu-thermal : 32000
gpu-thermal : 33000
vpu-thermal : 33000
max170xx_battery : 30700
bq25890-charger : 29000

Btw: gthcli segfaults at the end (not always).

That’s been fixed months ago, but it turned out that the fix has never reached byzantium. It’s now part of version 0.0.3-1~pureos1, which should migrate out of landing into byzantium in a few days.

1 Like