03-08-2017, 12:54 PM
03-08-2017, 03:34 PM
You can read battery status running Linux just by reading info from sysfs (/sys/class/....) files. You get current, voltage, remaining percentage (the PMIC has a learning battery gauge) and other things...
03-08-2017, 06:30 PM
I wrote this script a while ago to show the various battery bits... if you ignore the colour bits, it shows the sysfs paths for the different stats you can show. It uses bc (sudo apt-get install bc) to show the battery voltage as a decimal number.