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

Sjoerd Simons sjoerd at luon.net
Thu Feb 16 04:24:53 PST 2006


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
-- 
Life is the living you do, Death is the living you don't do.
		-- Joseph Pintauro


More information about the hal mailing list