View Single Post
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#72
Sorry.. Try this one.. i copied the former directly from the QBW-conf, but it had added code that should not be there. The below one is directly from CMD and should work.

Code:
echo " Uptime	:" `uptime|cut -d" " -f4-|sed 's/\\, *load.*//'`
echo " Batteri	:" `hal-device bme | awk '/g.c/ {print $3" mAh"}'` @ `cat /sys/class/power_supply/bq27200-0/temp`C
echo " Cpu		:" `awk '{print $1/1000"/"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq``awk '{print $1/1000" Mhz"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
You need to "activate" the battery module if you haven't. You'll need Titans OC-kernel. Open terminal as root and:
Code:
echo bq27x00_battery >> /etc/modules
__________________
You like what i do? Donate!

Make your desktop look awesome - use the AwOken Theme with the AwOken Icon Theme.

Add me on twitter @almehdin
Visit the swedish maemo/meego community forums

Last edited by AlMehdi; 2010-11-24 at 16:58.