Finding Battery Level


chris_c

Member
Joined
Jun 25, 2010
Messages
393
Age
56
llooks like I'm going to have to hack together some kind of battery monitor for LXDE

II looked in /proc but couldn't seem to find what I was expecting there ;)

The wiki doesn't seem to document any kind of kernel interface...
 
chris_c said:
llooks like I'm going to have to hack together some kind of battery monitor for LXDE

II looked in /proc but couldn't seem to find what I was expecting there ;)

The wiki doesn't seem to document any kind of kernel interface...

Have a look at the XFCE battery plugin code ;)
 
Last edited by a moderator:
/sys/class/power_supply/bq27500-0/capacity
also "time_to_empty_now", "time_to_empty_avg", and "time_to_full_now" if you're charging.
 
And here's what they did to the default xfce4-battery-plugin:
http://git.openpandora.org/cgi-bin/gitweb.cgi?p=openembedded.git;a=blob;f=recipes/xfce-extras/xfce4-battery-plugin/xfce4-battery-plugin-0.5.1-pandora-hack.patch
 
Back
Top