From: Daniel Drake Date: Mon, 5 Mar 2012 23:01:00 +0000 (-0800) Subject: x86/olpc/xo15/sci: Enable lid close wakeup control X-Git-Tag: v3.4-rc1~149^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1f42e314c9c50541c79a6edf2b4cab63fe02ee3;p=pandora-kernel.git x86/olpc/xo15/sci: Enable lid close wakeup control Like most systems, OLPC's ACPI LID switch wakes up the system when the lid is opened, but not when it is closed. Under OLPC's opportunistic suspend model, the lid may be closed while the system was oportunistically suspended with the screen running. In this event, we want to wake up to turn the screen off. Enable control of normal ACPI wakeups through lid close events through a new sysfs attribute "lid_wake_on_closed". When set, and when LID wakeups are enabled through ACPI, the system will wake up on both open and close lid events. Signed-off-by: Daniel Drake Cc: Andres Salomon Cc: Matthew Garrett [ Fixed sscanf checking] Signed-off-by: Andrew Morton Link: http://lkml.kernel.org/n/tip-bgt8hxu2wwe0x5p8edhogtf7@git.kernel.org [ Did very minor readability tweaks ] Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed