Quote:
Originally Posted by Aleron Ives
After some tinkering with telnet, I figured out how to make an ugly but functional battery status option with NickelMenu.
Code:
menu_item :main :Battery :cmd_output :500 :cat /sys/class/power_supply/battery/capacity /sys/class/power_supply/battery/voltage_now /sys/class/power_supply/battery/voltage_min /sys/class/power_supply/battery/voltage_max /sys/class/power_supply/battery/charge_now /sys/class/power_supply/battery/charge_full /sys/class/power_supply/battery/charge_full_design
This will generate a pop-up window containing:
- The current charge as a percentage
- The current voltage
- The minimum voltage
- The maximum voltage
- The current capacity (mAh)
- The maximum capacity
- The maximum design capacity
|
Before using this on a different Kobo ereader, check the contents of /sys/class/power_supply/battery/ since they are not the same on all models. A Sage for example only has the first two items listed.