Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2013, 04:01 PM   #1
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
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?
sergeyvl12 is offline   Reply With Quote
Old 09-22-2013, 04:32 PM   #2
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
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.
KevinShort is offline   Reply With Quote
Advert
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.
 
PeterT's Avatar
 
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
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
Old 09-23-2013, 08:37 AM   #4
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
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!
sergeyvl12 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:18 PM.


MobileRead.com is a privately owned, operated and funded community.