Ubuntu – Linux thermal / temperature sensor

#!/bin/bash
cpu=$(</sys/class/thermal/thermal_zone6/temp)

cpu_temp=$(echo "$cpu/1000" | /usr/bin/bc -l)

echo "CPU_temp $cpu_temp"
root@lp-knode-2:~# cat /sys/class/thermal/thermal_zone*/type
INT3400 Thermal
SEN1
SEN2
SEN3
SEN4
SEN5
pch_cannonlake
B0D4
iwlwifi_1
x86_pkg_temp



root@lp-knode-2:~# cat /sys/class/thermal/thermal_zone*/temp
20000
41050
47050
41050
45050
50
54000
46050
48000
46000

https://askubuntu.com/questions/1110943/what-do-the-different-thermal-zones-actually-correspond-to

Published by

Leave a Reply

Your email address will not be published. Required fields are marked *