View Single Post
Old 05-18-2023, 11:42 AM   #999
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,545
Karma: 167913281
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Aleron Ives View Post
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.
DNSB is online now   Reply With Quote