• AceLan Kao's avatar
    asus-wmi: enable resume on lid open · c0b91b6d
    AceLan Kao authored
    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: default avatarAceLan Kao <acelan.kao@canonical.com>
    Signed-off-by: default avatarCorentin Chary <corentin.chary@gmail.com>
    Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
    c0b91b6d
asus-wmi.c 46.1 KB