Kernel Bug Tracker – Bug 5643
ac power plug stop any acpi events
Last modified: 2006-07-29 19:54:31 UTC
Most recent kernel where this bug did not occur: not found any
Hardware Environment:Pentium 4HT,Clevo D41EV SIS648FX chipset,ATI Mobility 9700
Software Environment:gcc 3.4.4-r1, glibc 2.3.5-r3
Problem Description:when i plug in the ac adapter i get no acpi event any more.
i have pentium4 HT processor and i have tried with SMP
disabled. i have tried with preempt disabled,
i tried with CONFIG_ACPI_DEBUG=y and
echo "0xFFFFFFFF" > /proc/acpi/debug_level and
echo "0xFFFFFFFF" > /proc/acpi/debug_layer,
but i get no response when i plug in ac adapter.
When i change the state (plugin or plugout) of the ac adapter for the first time
the counter in /proc/interrupts
11: 12 IO-APIC-level acpi
^ is increased by one, and then there is no increase anymore, no
power buttons, lid, sleep.
i am getting events for power button and lid button before
i plug in ac adapter, so i think there is something wrong with ACPI.
i found something similar only there is no report that there is
no events after plugin of ac adapter.
then i have tried to debug DSDT.
i found and corrected two errors, the same as reported here:
recompiled kernel with custom DSDT tables
With no success.
Steps to reproduce:reset notebook, plug in or out ac-adapter
Created attachment 6664 [details]
Created attachment 6665 [details]
DSDT asl file
This file is already corrected. So it compile without any errors or warnings.
See main comment about which error were found in original version.
progress with gentoo kernel 2.6.14-suspend2-r7. now i receive all events,
including battery, ac adapter plugin, until i UNPLUG the ac-adapter. I get no
event for the unplug of ac-adapter. Moreover After i unplug the ac-adapter the
IO-APIC-level number in /proc/interrupts stop to increase.
i finally got it working. i used <a
for bug <a href='http://bugzilla.kernel.org/show_bug.cgi?id=5362'>#5362</a>:
the key to this solution i think is the added two lines
@@ -246,8 +250,8 @@
status = acpi_install_notify_handler(ac->handle,
- ACPI_DEVICE_NOTIFY, acpi_ac_notify,
+ ACPI_DEVICE_NOTIFY | ACPI_SYSTEM_NOTIFY,
+ acpi_ac_notify, ac);
i get now this into kern.log:
Dec 16 16:59:30 localhost kernel: ACPI XXX acpi_battery_notify: event 0x80
Dec 16 16:59:30 localhost kernel: ACPI XXX acpi_ac_notify: event 0x80
the event is 0x80 as it should be (?correct me if i am wrong)
You marked status as NEEDINFO, so the engineers ignored this bug a long time.
Patch from 5362 is a debug patch. Please look into the bug 3241.
Do you have any problems with ac adapter or bug can be closed?
No response from bug submitter, please reopen if problem persists.