ACPI reporting discharing, when AC is online and battery is full

Ryan Lortie desrt at desrt.ca
Thu Feb 16 07:34:24 PST 2006


HAL is definitely at fault here.  Ubuntu Dapper has been shipping a
patch against battstat that I wrote to fix this.  It's a hack because it
basically ignores all but the most basic information from HAL and works
everything out for itself.

I'll likely ship the patch in Gnome 2.14 since it's been getting tested
in Dapper and seems to work great.  Of course, ideally, HAL would fix
this itself.

Cheers.

On Thu, 2006-16-02 at 13:24 +0100, Sjoerd Simons wrote:
> Hi,
> 
>   I got some reports from debian users that the gnome battery applet always
>   shows that the machine is on battery even though AC is on. 
> 
>   After some investigation it appears that the applet shows battery mode when
>   at least one battery indicates it's discharging, ignoring whether or not hal
>   reports an ac_adaptor being present. Seems like a valid assumption when
>   trying to support multiple batteries..
> 
>   Unfortunately some acpi implementations apparently report a battery as
>   discharging when the battery is full even if it's on AC. (In both cases this
>   were centrino systems, but maybe it's not limited to them)
> 
>   For reference acpi -V output from one user:
>     Battery 1: discharging, 100%, 10:00:00 remaining
>     Thermal 1: ok, 45.0 degrees C
>     AC Adapter 1: on-line
> 
>   Now the question is: Is the applets logic flawed and should it just look at
>   the ac_adaptors status or should hal work around this in some way by not 
>   reporting discharging if on AC power?
> 
>   Sjoerd



More information about the hal mailing list