View Single Post
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#3375
Originally Posted by ahmadamaj View Post
i've installed the new kernel and did the command for ulv. is there a way to know if it worked?
I wrote a little helper script that pulls all the important stats & data:

Code:
#!/bin/sh

modprobe bq27x00_battery

echo -n "Temp:"
cat /sys/devices/platform/omap34xx_temp/temp1_input

echo -n "Battery draw: "
cat /sys/class/power_supply/bq27200-0/current_now | perl -e 'printf ("%dmA\n", <> * 0.2);'

echo ''

echo "Frequency stats:"
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
Just fire that into a script (cat > info.sh && chmod 755 info.sh) and give it a run. It shows time in state, temperature, battery draw, etc.
 

The Following 2 Users Say Thank You to nightfire For This Useful Post: