Difference between revisions of "Temperature Checking"
From odroid US
Line 1: | Line 1: | ||
= Execute this in a shell = | = Execute this in a shell = | ||
+ | |||
+ | The path to the temperature reading can be different, depending on the kernel version. This work for 3.0.x kernels: | ||
<pre> | <pre> | ||
Line 5: | Line 7: | ||
&& echo $((`sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq` /1000))'Mhz' \ | && echo $((`sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq` /1000))'Mhz' \ | ||
&& echo -n 'TEMP: ' && sudo cat /sys/devices/platform/tmu/temperature" | && echo -n 'TEMP: ' && sudo cat /sys/devices/platform/tmu/temperature" | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | Try this for 3.8.x kernels: (thanks suriyan) | ||
+ | |||
+ | <pre> | ||
+ | watch "echo -n 'Hostname: ' && hostname && echo -n 'CPU Frequency: ' \ | ||
+ | && echo $((`sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq` /1000))'Mhz' \ | ||
+ | && echo -n 'TEMP: ' && sudo cat /sys/devices/virtual/thermal/thermal_zone0/temp" | ||
</pre> | </pre> |
Latest revision as of 13:49, 9 February 2014
Execute this in a shell
The path to the temperature reading can be different, depending on the kernel version. This work for 3.0.x kernels:
watch "echo -n 'Hostname: ' && hostname && echo -n 'CPU Frequency: ' \ && echo $((`sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq` /1000))'Mhz' \ && echo -n 'TEMP: ' && sudo cat /sys/devices/platform/tmu/temperature"
Try this for 3.8.x kernels: (thanks suriyan)
watch "echo -n 'Hostname: ' && hostname && echo -n 'CPU Frequency: ' \ && echo $((`sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq` /1000))'Mhz' \ && echo -n 'TEMP: ' && sudo cat /sys/devices/virtual/thermal/thermal_zone0/temp"