Letux Kernel

Power

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/type
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/voltage_now
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/temp

Read status of backup battery

cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_bk_battery/type
cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_bk_battery/status
cat /sys/bus/platform/devices/twl4030-bci-battery/power_supply/twl4030_bci_bk_battery/voltage_now

Read status of BQ27000 based battery

Note: HDQ driver is not yet working

cat /sys/devices/platform/bq27000-battery/power_supply/bq27000/type
cat /sys/devices/platform/bq27000-battery/power_supply/bq27000/status
cat /sys/devices/platform/bq27000-battery/power_supply/bq27000/present
cat /sys/devices/platform/bq27000-battery/power_supply/bq27000/capacity
cat /sys/devices/platform/bq27000-battery/power_supply/bq27000/voltage_now
cat /sys/devices/platform/bq27000-battery/power_supply/bq27000/current_now
cat /sys/devices/platform/bq27000-battery/power_supply/bq27000/temp
cat /sys/devices/platform/bq27000-battery/power_supply/bq27000/time_to_empty_avg
cat /sys/devices/platform/bq27000-battery/power_supply/bq27000/time_to_empty_now
cat /sys/devices/platform/bq27000-battery/power_supply/bq27000/time_to_full_now