View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#3
This script will tell you current charge/votage and voltage at charging.

Code:
hal-device bme | awk '/l.p/ {perc = $3}; /g.c/ {curr = $3}; /e.cu/ {volt = $3}; /s_c/ {isch = $3} END if (isch == "false") {print perc" % ("curr"mAh/"volt"mV)"} else {print "Charging@"volt"mV"}
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following User Says Thank You to vi_ For This Useful Post: