linux/arch/x86/platform/olpc
Daniel Drake d1f42e314c 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 <dsd@laptop.org>
Cc: Andres Salomon <dilinger@queued.net>
Cc: Matthew Garrett <mjg@redhat.com>
[ Fixed sscanf checking]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/n/tip-bgt8hxu2wwe0x5p8edhogtf7@git.kernel.org
[ Did very minor readability tweaks ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2012-03-06 09:57:11 +01:00
..
Makefile x86, olpc: Add XO-1.5 SCI driver 2011-07-06 14:44:43 -07:00
olpc_dt.c x86, olpc: Add missing elements to device tree 2011-07-06 14:44:19 -07:00
olpc_ofw.c x86, olpc: Add OLPC device-tree support 2010-12-15 17:11:30 -08:00
olpc-xo1-pm.c x86: Fix files explicitly requiring export.h for EXPORT_SYMBOL/THIS_MODULE 2011-10-31 19:30:35 -04:00
olpc-xo1-rtc.c x86, olpc: Add XO-1 RTC driver 2011-07-06 14:44:42 -07:00
olpc-xo1-sci.c x86, olpc-xo1-sci: Propagate power supply/battery events 2011-07-06 14:44:40 -07:00
olpc-xo15-sci.c x86/olpc/xo15/sci: Enable lid close wakeup control 2012-03-06 09:57:11 +01:00
olpc.c x86, olpc: Wait for last byte of EC command to be accepted 2011-08-05 23:47:55 +02:00
xo1-wakeup.S x86, olpc: Add XO-1 suspend/resume support 2011-07-06 14:44:32 -07:00