BUG: Battery isn`t properly recognized

Problems with hardware & laptops not being detected or supported during or after install.
Locked
qmic
Posts: 1
Joined: Tue Feb 17, 2009 10:19 am

BUG: Battery isn`t properly recognized

Post 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.
Twarkie
Posts: 1
Joined: Sun Mar 01, 2009 1:58 pm

Re: BUG: Battery isn`t properly recognized

Post 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?
kgas
Posts: 45
Joined: Sat Dec 27, 2008 12:32 pm

Re: BUG: Battery isn`t properly recognized

Post by kgas »

Hello qmic, If you have a patch please post it under code, those relay want can use it.
Claire
Posts: 2
Joined: Thu Jun 04, 2009 8:50 am

Re: BUG: Battery isn`t properly recognized

Post 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
juergenhoetzel
Posts: 6
Joined: Fri Mar 27, 2009 6:07 am

Re: BUG: Battery isn`t properly recognized

Post by juergenhoetzel »

There are some bad hardcoded pathname assumptions in batt.c, I'm doing a rewrite now...See SourceForge tracker item ID: 2378426
Claire
Posts: 2
Joined: Thu Jun 04, 2009 8:50 am

Re: BUG: Battery isn`t properly recognized

Post by Claire »

Thankyou, look forward to it. If you need a tester let me know. :)
Teric
Posts: 3
Joined: Sun May 31, 2009 5:38 am

Re: BUG: Battery isn`t properly recognized

Post 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
juergenhoetzel
Posts: 6
Joined: Fri Mar 27, 2009 6:07 am

Re: BUG: Battery isn`t properly recognized

Post 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
juergenhoetzel
Posts: 6
Joined: Fri Mar 27, 2009 6:07 am

Re: BUG: Battery isn`t properly recognized

Post by juergenhoetzel »

Code is in SVN trunk: Please test!
Locked