Bug 2321
Summary: | No ACPI button after sucessfull S3 resume on L3800C (nb not duplicate of 1409, 1661) | ||
---|---|---|---|
Product: | ACPI | Reporter: | Eric Valette (eric.valette) |
Component: | Power-Sleep-Wake | Assignee: | Robert Moore (Robert.Moore) |
Status: | CLOSED CODE_FIX | ||
Severity: | high | CC: | acpi-bugzilla, cetef62212, i_p_a_u_l, sziwan |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.5-rc1-mm1 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
My config file
my acpid sleep button handling script A patch to fix this issue Updated patch for 2.6.6-rc3-mm1 |
Description
Eric Valette
2004-03-17 05:04:27 UTC
Created attachment 2355 [details]
My config file
Created attachment 2356 [details]
my acpid sleep button handling script
I just noticed that the power button is still generating event but that it is the only one. Did someone miss to reenable other buttons somewhere? Created attachment 2370 [details] A patch to fix this issue Indeed, the patch from bug #1409 does not work with recent kernels (2.6.3 was fine AFAIR). Anyway this patch, originally from Alexander Malysh <a.malysh@centrium.de> and modified by me so it applies against 2.6.5-rc1-mm2 also fixes the problem, though in a different way. Thank you again Karol. It indeed fixes the bug. Could this be applied upstream unless there are some known problem with this fix? Just a few words to say that the proposed patche is broken on 2.6.5-rc3-mm1 because of the recent acpi_hw_enable_non_wakeup_gpes replacement by acpi_hw_restore_gpes_on_wake (). But what is sure is that 2.6.5-rc3-mm1 does not reenable ACPI controlled butons after wakeup. I have tried 2.6.6-rc3-mm1 that contains: ACPI: Subsystem revision 20040326 The updated patch is indeed badly needed to fix this bug. Now, as : 1) this bug is open with several proposed patches for several kernel versions for more than a month and a half, 2) that I never heard anything serious by ACPI developpers about possible issue of irq incorrectly restored because (at least on my ASUS L3800C) after executing of _WAK irq's are enabled, so stored gpe bits (before suspend) will be overwriten and not restored correctly while resume (bug analysis by Alexander Malysh), I would _really_ like to have someone _really_ analyse what happens (I can put any trace in my kernel if you ask for it) and propose a better fix if this one is not the best way to fix it. I suspect the problem exist on other systems but as only _few_ do correctly wakeup from S3, and even _less_ using dedicated ACPI buttons, they are just too many other bugs masking the importance of this one... But not correctly restoring interrupt status is generally a good way to crash a system... Created attachment 2763 [details]
Updated patch for 2.6.6-rc3-mm1
The GPE re-write is almostm complete and should address this. Should be a grand new GPE patch in a few days -- stay tuned. thanks, -Len I'm tuned for about 3 weeks now and still haven't see any new code even in 2.6.7-rc1-mm1 :-( Hi Eric, Is the problem solved for you ? Do you know in which version of kernel is the new GPE included. Thank you. I tested 2.6.7-mm2 with ACPI: Subsystem revision 20040615 and the bug is indeed gone. Feel free to close this bug report once, this version of ACPI subsystem enters the mainline (e. 2.6.8). Thanks the intil people for the good work and Karol for the initial patches. |