You are looking at an old revision of the page Power. This revision was created by Nikolaus Schaller.
Table of Content
How to control battery and charging
Read status of USB power and DC-In power
cat /sys/???
Read status of main battery
cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_battery/current_now
cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_battery/online
cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_battery/status
cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_battery/temp
cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_battery/type
cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_battery/voltage_now
Read status of backup battery
cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_battery/type
cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_battery/voltage_now
Read status of BQ27000 based battery
cat /sys/???