linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI button: remove hotkey suspend acpi proc event
@ 2012-07-13  6:13 AceLan Kao
  2012-07-13  6:48 ` Matthew Garrett
  0 siblings, 1 reply; 10+ messages in thread
From: AceLan Kao @ 2012-07-13  6:13 UTC (permalink / raw)
  To: linux-acpi, Len Brown

If user press the suspend hotkey many times quickly, system will keep
entering S3 after wake up as many times as user pressed.
We do not expect the system enter S3 again after wake up, even if we
press the hotkey many times.

This issue comes from the acpi proc event will queue the events that
didn't process yet, and then report the events one by one when available,
so that system will enter S3 after wake up.

I think it's safe not to generate the proc event while pressing the
suspend hotkey, since "/proc/acpi/event" is deprecated. And system can
enter S3 correctly without it.

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
---
 drivers/acpi/button.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index d27d072..e35bd92 100644
--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -298,8 +298,6 @@ static void acpi_button_notify(struct acpi_device *device, u32 event)
 
 			pm_wakeup_event(&device->dev, 0);
 		}
-
-		acpi_bus_generate_proc_event(device, event, ++button->pushed);
 		break;
 	default:
 		ACPI_DEBUG_PRINT((ACPI_DB_INFO,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-08-28  6:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-13  6:13 [PATCH] ACPI button: remove hotkey suspend acpi proc event AceLan Kao
2012-07-13  6:48 ` Matthew Garrett
2012-07-13  7:07   ` AceLan Kao
2012-07-13  7:13     ` Matthew Garrett
2012-07-13 14:12       ` Henrique de Moraes Holschuh
2012-07-16  2:27         ` AceLan Kao
2012-07-23 13:34           ` Matthew Garrett
2012-07-23 14:44             ` Henrique de Moraes Holschuh
2012-07-24  2:52               ` AceLan Kao
2012-08-28  6:36                 ` AceLan Kao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).