View Single Post
Old 09-22-2013, 04:36 PM   #3
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,446
Karma: 78880114
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
On my Glo at least, I seem to see it at
Code:
cat /sys/devices/platform/pmic_battery.1/power_supply//mc13892_bat/capacity
94
Other pieces there are
Code:
ls -l /sys/devices/platform/pmic_battery.1/power_supply//mc13
892_bat
total 0
-r--r--r--    1 root     root          4096 Sep 22 16:26 capacity
-r--r--r--    1 root     root          4096 Sep 22 16:31 charge_now
-r--r--r--    1 root     root          4096 Sep 22 16:31 current_now
lrwxrwxrwx    1 root     root             0 Sep 22 16:31 device -> ../../../pmic_battery.1
drwxr-xr-x    2 root     root             0 Sep 22 16:31 power
-r--r--r--    1 root     root          4096 Sep 22 16:26 status
lrwxrwxrwx    1 root     root             0 Sep 22 16:31 subsystem -> ../../../../../class/power_supply
-r--r--r--    1 root     root          4096 Sep 22 16:31 type
-rw-r--r--    1 root     root          4096 Sep 22 16:26 uevent
-r--r--r--    1 root     root          4096 Sep 22 16:31 voltage_now
For instance
Code:
cat /sys/devices/platform/pmic_battery.1/power_supply//mc13892_bat/status
Discharging
With the unit plugged in and charging, it changes to
Code:
cat /sys/devices/platform/pmic_battery.1/power_supply//mc13892_bat/status
Charging
PeterT is offline   Reply With Quote