09-22-2013, 04:01 PM | #1 |
ebook fan
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
How to get the battery charge level
Hi!
Do anybody know how to get the battery charge level on kobo? |
09-22-2013, 04:32 PM | #2 |
Addict
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
In the directory "/sys/devices/platform/pmic_battery.1/power_supply/mc13892_bat" you can get various info on the battery. Both voltage_now and capacity seem to contain the percentage of battery left.
|
Advert | |
|
09-22-2013, 04:36 PM | #3 |
Grand Sorcerer
Posts: 12,159
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
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 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 Code:
cat /sys/devices/platform/pmic_battery.1/power_supply//mc13892_bat/status Discharging Code:
cat /sys/devices/platform/pmic_battery.1/power_supply//mc13892_bat/status Charging |
09-23-2013, 08:37 AM | #4 |
ebook fan
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
Kevin, Peter, thanks a lot!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Battery Will Not Charge | w1ksz | enTourage eDGe | 19 | 04-10-2013 10:12 AM |
Glo GLO: Watching battery level drop | Droid | Kobo Reader | 3 | 10-12-2012 09:03 PM |
PRS-T1 How to check battery level on T1 | caribbean_spur | Sony Reader | 9 | 12-18-2011 04:56 PM |
At what battery level do you charge your Nook? | flyash | Barnes & Noble NOOK | 21 | 01-25-2011 08:17 AM |
Can't Charge My Battery | Lady Fitzgerald | Astak EZReader | 8 | 06-22-2010 05:09 PM |