Page 1 of 1

BUG: Battery isn`t properly recognized

Posted: Tue Feb 17, 2009 10:23 am
by qmic
There is a bug in batt plugin - it searches /proc/acpi/battery/BAT* , but batteries are not always named BAT*. Someone can fix this? I can send a patch, but I don`t know for whom.

Re: BUG: Battery isn`t properly recognized

Posted: Sun Mar 01, 2009 2:01 pm
by Twarkie
My battery plugin isn't working and I guess this bug is what causes the problem. My battery is recognized as "C23B" and thus I get the "no batteries found" message by the plugin.

Can we expect this to be fixed soon?

Re: BUG: Battery isn`t properly recognized

Posted: Sun Mar 22, 2009 5:44 pm
by kgas
Hello qmic, If you have a patch please post it under code, those relay want can use it.

Re: BUG: Battery isn`t properly recognized

Posted: Thu Jun 04, 2009 8:53 am
by Claire
Is there any workaround for the battery monitor problem?

I have found mine as C18B, also the ac adapter as /proc/acpi/ac_adapter/C18F/state

and

Code: Select all

ls /sys/class/power_supply/
C18B@  C18F@
Thanks

Re: BUG: Battery isn`t properly recognized

Posted: Mon Jun 08, 2009 10:19 pm
by juergenhoetzel
There are some bad hardcoded pathname assumptions in batt.c, I'm doing a rewrite now...See SourceForge tracker item ID: 2378426

Re: BUG: Battery isn`t properly recognized

Posted: Tue Jun 09, 2009 7:40 am
by Claire
Thankyou, look forward to it. If you need a tester let me know. :)

Re: BUG: Battery isn`t properly recognized

Posted: Fri Jun 12, 2009 8:07 am
by Teric
juergenhoetzel wrote:There are some bad hardcoded pathname assumptions in batt.c, I'm doing a rewrite now...See SourceForge tracker item ID: 2378426
Could you offer a link for that source?

cheers,
Teric

Re: BUG: Battery isn`t properly recognized

Posted: Sat Jun 13, 2009 12:10 pm
by juergenhoetzel
I have not commited to svn trunk yet. Because it will break svn trunk builds.

The new code batt_sys.[ch] is here:

http://github.com/juergenhoetzel/lxde-s ... attery-sys

It is based on the Linux acpi-1.4 package (glibified/simplified).
I now move battery-backend code out of batt.c.

On the long run we are in need of a modern devkit-power battery plugin

Re: BUG: Battery isn`t properly recognized

Posted: Tue Jun 16, 2009 10:10 pm
by juergenhoetzel
Code is in SVN trunk: Please test!