by stronnag » Mon Oct 01, 2012 5:18 pm
$ uname -a
Linux alarmpi 3.2.27-8-ARCH+ #1 PREEMPT Wed Sep 26 22:18:31 UTC 2012 armv6l GNU/Linux
$ cat /sys/class/thermal/thermal_zone0/temp
cat: /sys/class/thermal/thermal_zone0/temp: No such file or directory
Am I missing something (as ever ...)?
$this->bbcode_second_pass_code('', '#!/bin/bash
GOV=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`
MIN=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq`
MAX=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
echo "$GOV $MIN $MAX" | awk '{ printf "Governor: %s\nMin Freq: %4dMhz\nMax Freq: %4dMhz\n\n", $1, $2/1000, $3/1000 }'
while [ true ]; do
C=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
T=`cat /sys/class/thermal/thermal_zone0/temp`
echo "`date +%H:%M:%S` $C $T" | awk '{ printf "%s: %4dMhz, %-.2fC\n",$1, $2/1000,$3/1000 }'
sleep 2
done
')