Temperature Checking

From odroid US
Revision as of 12:49, 9 February 2014 by Osterluk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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"