linux/drivers
Henrique de Moraes Holschuh a713b4d7bc ACPI: thinkpad-acpi: wakeup on hotunplug reporting
Handle some HKEY events that the firmware uses to report the reason for a
wake up, and to also notify that the system could go back to sleep (if it
woke up just to eject something from the bay, or to undock).

The driver will report the reason of the last wake up in the sysfs
attribute "wakeup_reason": 0 for "none, unknown, or standard ACPI wake up
event", 1 for "bay ejection request" and 2 for "undock request".

The firmware will also report if the operation that triggered the wake up
has been completed, by issuing an HKEY 0x3003 or 0x4003 event.  If the
operation fails, no event is sent.  When such a hotunplug sucessfull
notification is issued, the driver sets the attribute
"wakeup_hotunplug_complete" to 1.

While the firmware does tell us whether we are waking from a suspend or
hibernation scenario, the Linux way of hibernating makes this information
not reliable, and therefore it is not reported.

The idea is that if any of these attributes are non-zero, userspace might
want to do something at the end of the "wake up from sleep" procedures,
such as offering to send the machine back into sleep as soon as it is safe
to do so.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-02-01 22:26:08 -05:00
..
acorn/char
acpi
amba
ata Blackfin pata-bf54x driver: fix compiling bug - no ata_port struct in struct ata_device any more 2008-02-01 12:26:43 -05:00
atm
auxdisplay
base
block block/sunvdc.c:print_version() must be __devinit 2008-02-01 09:26:32 +01:00
bluetooth
cdrom ide-cd: move lba_to_msf() and msf_to_lba() to <linux/cdrom.h> 2008-02-01 23:09:24 +01:00
char [AUDIT] add session id to audit messages 2008-02-01 14:06:51 -05:00
clocksource
connector
cpufreq
cpuidle
crypto
dca
dio
dma
edac
eisa
firewire
firmware
hid
hwmon
i2c
ide ide: move hwif_register() call out of ide_probe_port() 2008-02-01 23:09:36 +01:00
ieee1394
infiniband
input
isdn
leds
lguest
macintosh
mca
md
media
message
mfd
misc ACPI: thinkpad-acpi: wakeup on hotunplug reporting 2008-02-01 22:26:08 -05:00
mmc
mtd
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2008-02-01 21:06:29 +11:00
nubus
of
oprofile
parisc
parport
pci pci: allow multiple calls to pcim_enable_device() 2008-02-01 12:26:44 -05:00
pcmcia
pnp
power
ps3
rapidio
rtc
s390
sbus
scsi ide: update/add my Copyrights 2008-02-01 23:09:33 +01:00
serial m68knommu: use container_of in mcf.c 2008-02-01 21:00:01 +11:00
sh
sn
spi
ssb
tc
telephony
uio
usb
video
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile