[ltp] T21 battery charging and draining problems
Robert Kleemann
linux-thinkpad@linux-thinkpad.org
Tue, 16 Aug 2005 01:09:59 -0700
Kevin Locke wrote:
>I have had ACPI running on my T21
>since I bought it (about a year ago), and it has been wonderful.
>
Yeah, I've been continuing to explore acpi (gentoo has really good docs
for it http://www.gentoo.org/doc/en/power-management-guide.xml) and have
been seeing temp, cpu speed, button events, lid events, battery charge,
etc. Maybe linux acpi is capable of driving both APM and ACPI bios
specifications...???
The one problem I'm having is that although I'm getting an event when
the battery is added and removed, I'm not getting an event when ac power
is added or removed. The acpi system is still aware of this as
/proc/acpi/ac_adapter/AC/state is updated accordingly but an event is
not sent to acpid. I need these event to trigger a change to and from
the default runlevels to the battery runlevels.
Kevin, if you wouldn't mind trying an experiment:
# tail -f /var/log/acpid
(or whereever your acpi messages are sent)
and then plug in and unplug your ac adapter a few times.
I end up getting a lot of battery status messages but no ac adapter
messages.
One potential problem is that I'm running the ibm-acpid that is built
into the kernel (v0.8) instead of the latest (0.11) I looked at the
code and didn't see anything significant but maybe that's causing the
problem.
Robert.