ACPI: button: Add lid disable DMI quirk for Nextbook Ares 8A
authorHans de Goede <hdegoede@redhat.com>
Sat, 29 Apr 2023 10:38:41 +0000 (12:38 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 17 May 2023 18:26:43 +0000 (20:26 +0200)
The LID0 device on the Nextbook Ares 8A tablet always reports lid
closed causing userspace to suspend the device as soon as booting
is complete.

Add a DMI quirk to disable the broken lid functionality.

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

index 475e1eddfa3b4ae162bb88157a29619ca58a2290..ef77c14c72a92eb337d3c94c76b69ff299c8a963 100644 (file)
@@ -77,6 +77,15 @@ static const struct dmi_system_id dmi_lid_quirks[] = {
                },
                .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_DISABLED,
        },
+       {
+               /* Nextbook Ares 8A tablet, _LID device always reports lid closed */
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
+                       DMI_MATCH(DMI_BIOS_VERSION, "M882"),
+               },
+               .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_DISABLED,
+       },
        {
                /*
                 * Lenovo Yoga 9 14ITL5, initial notification of the LID device