lxpanel battery monitor plugin

Discussion on LXDE releases and Development. This forum is not the best way to contact the developers, please use the Development mailing list and Sourceforge to interact with them.
Posts: 1
Joined: Mon Feb 25, 2013 12:32 pm

lxpanel battery monitor plugin

Post by sachin »


I m trying to modify lxpanel battery plugin to read one single file
'/sys/class/power_suppy/battery/capacity' instead of '/sys/class/power_supply'.

My system don't support ACPI, I just want to read the content of
'capacity' file which is a battery capacity. It is an integer between
1-100 depend on battery charging/discharging.

I modified the source files batt_sys.h, batt_sys.c and batt.c
accordingly, but it shows Segmentation fault.

Can anyone help ?

here is the diff log https://github.com/psachin/lxpanel/comm ... 84a6249979