/sys/class/power_supply/battery/charge_now

Timo Juhani Lindfors timo.lindfors at iki.fi
Sat Feb 5 00:07:12 CET 2011


Martin Jansa <martin.jansa at gmail.com> writes:
> quick find shows similar nodes in
> /sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/hdq/bq27000-battery.0/power_supply/battery/

News flash: you don't need to track these changing sysfs paths
yourself :-) There's this great command called "om battery
consumption" that works with 2.6.29, 2.6.34 and 2.6.37 :-)




More information about the devel mailing list