Difference between revisions of "Temperature Checking"

From odroid US
Jump to: navigation, search
(Created page with "= Execute this in a shell = <pre>watch "echo -n 'Hostname: ' && hostname && echo -n 'CPU Frequency: ' && cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq && echo -n ...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
= Execute this in a shell =
 
= Execute this in a shell =
  
<pre>watch "echo -n 'Hostname: ' && hostname && echo -n 'CPU Frequency: ' && cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq && echo -n 'TEMP: ' && cat /sys/devices/platform/tmu/temperature"</pre>
+
The path to the temperature reading can be different, depending on the kernel version.  This work for 3.0.x kernels:
 +
 
 +
<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/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>

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"