ACPI battery driver emits POWER_SUPPLY_STATUS_FULL when power lead plugged in

Richard Hughes
2009-01-23T16:58:04Z

When I insert the power lead or attach my T61 to the powered dock, the
battery power supply status goes like this:

0.00s Discharging
{dock}
0.10s Fully charged
1.00s Charging

This causes userspace (in my case gnome-power-manager) to pop up a
dialog telling me the battery is full, and the icon flickers to fully
green, then 10% green and charging.

This seems to have existed as long as the power supply class was being
used by the acpi battery, but we've always relied on a userspace fudge.

This is tested with 2.6.27.9-159.fc10.i686, although I seem to get the
same thing with git from kernel.org.

Is this a known issue? Does anybody have any insight into what causes
this? I'm fully willing to test patches or debug this further myself.

Thanks,

Richard.