asus-wmi: enable resume on lid open
authorAceLan Kao <acelan.kao@canonical.com>
Wed, 13 Jun 2012 07:32:07 +0000 (09:32 +0200)
committerMatthew Garrett <mjg@redhat.com>
Sat, 28 Jul 2012 04:11:49 +0000 (00:11 -0400)
commitc0b91b6d5226247fa4fe894eb592bcc56bc7e9fd
treebdd3cde2c30bdf54a9bd9d287cdd1eb1f2a16925
parent272c77d55672ef92eda9d5e24a5a7ac62df9c431
asus-wmi: enable resume on lid open

According to the ASUS WMI spec., to enable resume on lid open should
use the device ID(0x00120032), but it doesn't work indeed.

After discussing with ASUS' BIOS engineer, they say wake on lid open
doesn't have a uniq device ID(0x00120032) in the BIOS. It shares the same
device ID with deep S3(0x00120031), and the deep S3(resume on lid open)
is disable by default.

Adding this option in asus wmi sysfs
   /sys/devices/platform/<platform>/lid_resume
so that userspace apps can enable/disable this feature by themselves.

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Documentation/ABI/testing/sysfs-platform-asus-wmi
drivers/platform/x86/asus-wmi.c