]> asedeno.scripts.mit.edu Git - linux.git/commit
ACPI: button: Add DMI quirk for Asus T200TA
authorHans de Goede <hdegoede@redhat.com>
Sat, 26 Oct 2019 20:24:35 +0000 (22:24 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Oct 2019 14:40:26 +0000 (15:40 +0100)
commit00e250367cc6c4ab80fea6ec605d464e624bd520
tree6d59f11451b6c8dd0aed41bc53cdebd6421842d1
parent932e1ba486117de2fcea3df27ad8218ad6c11470
ACPI: button: Add DMI quirk for Asus T200TA

The Asus T200TA lid has some weird behavior where _LID keeps reporting
closed after every second openening of the lid. Causing immediate
re-suspend after opening every other open.

I've looked at the AML code but it involves talking to the EC and we
have no idea what the EC is doing. Setting lid_init_state to
ACPI_BUTTON_LID_INIT_OPEN fixes the unwanted behavior, so this commit
adds a DMI based quirk to use ACPI_BUTTON_LID_INIT_OPEN on the T200TA.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/button.c