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

Postby sachin » Mon Feb 25, 2013 1:27 pm


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/commit/93f58e52f09083e8fd5296ec8abb5484a6249979

Return to “LXDE Development & Programming”

Who is online

Users browsing this forum: No registered users and 3 guests