Bug 3241
Summary: | ac module not being notified of power status change | ||
---|---|---|---|
Product: | ACPI | Reporter: | Christian Lupien (lupien) |
Component: | BIOS | Assignee: | Vladimir Lebedev (vladimir.p.lebedev) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | acpi-bugzilla, brewt-bugzilla.kernel.org, bricem13, gurkan.vural |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.7 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
Here is the patch again as an attachment
device/bus events are added to ac/battery notification method Version for 2.6.17, ac adapter Version for 2.6.17, battery |
Description
Christian Lupien
2004-08-19 01:26:39 UTC
Created attachment 3527 [details]
Here is the patch again as an attachment
That patch also works on my Fujitsu S6010 notebook, except I had to add to the patch a bit to get it to correctly get the ac offline event. My notebook seems to do a device check instead of a bus check on ac offline (but does a bus check on ac online). I don't know much about the acpi internals, so I don't know if this is correct behaviour or what. All I did was add ACPI_NOTIFY_DEVICE_CHECK to the case statement. The relevant part of my dsdt: Method (ACHK, 0, NotSerialized) { Store (ACPW, Local0) If (LNot (LEqual (Local0, ACPS))) { Sleep (0x28) If (Local0) { Notify (\_SB.AC, Zero) } Else { Notify (\_SB.AC, One) } Store (Zero, DVID) Store (0x8D, CMD) Store (Zero, SSMI) Notify (\_PR.CPU0, 0x80) Store (Local0, ACPS) } } PS: anyone have a clue why it would make that CPU0 notify? > Notify (\_PR.CPU0, 0x80)
This is the BIOS telling the OS to re-evaluate _PPC,
presumably because it is advertising different processor
performance states.
Created attachment 6886 [details]
device/bus events are added to ac/battery notification method
This checked on my laptop.
*** Bug 5362 has been marked as a duplicate of this bug. *** Created attachment 8420 [details]
Version for 2.6.17, ac adapter
Created attachment 8421 [details]
Version for 2.6.17, battery
Please use the patches from comments #6 & #7 instead of patch from comment #4 - patch is obsolete. applied patch in comment #6 and patch in comment #7 to acpi-test *** Bug 5305 has been marked as a duplicate of this bug. *** shipped at linux-2.6.17-git25 in time for 2.6.18-rc1 |