View Single Post
garen's Avatar
Posts: 156 | Thanked: 27 times | Joined on Jun 2010 @ Los Angeles
#4
Originally Posted by vi_ View Post
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"}
The thing is my phone's USB port broke, so i bought a spare bootleg battery and a charger that you plug the battery into. So technically can't check while charging.