View Single Post
Old 12-15-2024, 09:16 AM   #1438
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,964
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by sarigabor View Post
My device is Kobo Aura H2O 1st gen

trying to install the battcalc.sh module

When accessed via Telnet, the ls /sys/class/power_supply/mc13892_bat/ directory will show these:

Code:
[root@kobo mc13892_bat]# ls -l
total 0
-r--r--r--    1 root     root          4096 Dec 10 10:14 capacity
-r--r--r--    1 root     root          4096 Dec 10 10:15 charge_now
-r--r--r--    1 root     root          4096 Dec 10 10:15 current_now
lrwxrwxrwx    1 root     root             0 Dec 10 10:15 device -> ../../../pmic_battery.1
drwxr-xr-x    2 root     root             0 Dec 10 10:15 power
-r--r--r--    1 root     root          4096 Dec 10 10:15 status
lrwxrwxrwx    1 root     root             0 Dec 10 10:15 subsystem -> ../../../../../class/power_supply
-r--r--r--    1 root     root          4096 Dec 10 10:15 type
-rw-r--r--    1 root     root          4096 Dec 10 10:14 uevent
-r--r--r--    1 root     root          4096 Dec 10 10:15 voltage_now

[root@kobo mc13892_bat]# cat capacity charge_now current_now status type uevent voltage_now
100
500000
50000
Discharging
Battery
POWER_SUPPLY_NAME=mc13892_bat
POWER_SUPPLY_VOLTAGE_NOW=100
POWER_SUPPLY_CURRENT_NOW=50000
POWER_SUPPLY_CHARGE_NOW=500000
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_CAPACITY=100
100
How can this become a correct Battery stat?
Are you running the 4.38.23171 firmware?
JSWolf is offline   Reply With Quote