Bug#234889: Is it a kernel or apcid bug?

Steve Fosdick Steve Fosdick <dbugs@pelvoux.nildram.co.uk>, 234889@bugs.debian.org
Sun, 25 Apr 2004 02:39:59 +0100


I ran 'tail -f' on the log file generated by acpid (/var/log/acpid) and noted that when I disconnect the AC adapter both an AC adaptor and battery event seem to be generated as follows:

[Sun Apr 25 02:12:32 2004] received event "ac_adapter AC 00000080 00000000"
[Sun Apr 25 02:12:32 2004] notifying client 619[1000:1000]
[Sun Apr 25 02:12:32 2004] completed event "ac_adapter AC 00000080 00000000"
[Sun Apr 25 02:12:32 2004] received event "battery BAT0 00000080 00000001"
[Sun Apr 25 02:12:32 2004] notifying client 619[1000:1000]
[Sun Apr 25 02:12:32 2004] completed event "battery BAT0 00000080 00000001"

When I re-connect the AC adaptor, acpid does not log any events at all, so either the kernel is not generating the event or acpid is somehow losing it.  As there is no battery event either I can't see how Ludovic's patch would fix the problem.