| From 9e54e64180b4b3b3bddb5c035a78b180899d6321 Mon Sep 17 00:00:00 2001 |
| From: Jason Ekstrand <jason@jlekstrand.net> |
| Date: Thu, 2 Jan 2020 14:27:54 -0600 |
| Subject: [PATCH] ACPI: button: Add DMI quirk for Razer Blade Stealth 13 late |
| 2019 lid switch |
| |
| commit 0528904926aab19bffb2068879aa44db166c6d5f upstream. |
| |
| Running evemu-record on the lid switch event shows that the lid reports |
| the first "close" but then never reports an "open". This causes systemd |
| to continuously re-suspend the laptop every 30s. Resetting the _LID to |
| "open" fixes the issue. |
| |
| Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> |
| Reviewed-by: Hans de Goede <hdegoede@redhat.com> |
| Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c |
| index 4a2cde2c536a..7f1eb7e65f6a 100644 |
| --- a/drivers/acpi/button.c |
| +++ b/drivers/acpi/button.c |
| @@ -78,6 +78,17 @@ static const struct dmi_system_id lid_blacklst[] = { |
| DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"), |
| }, |
| }, |
| + { |
| + /* |
| + * Razer Blade Stealth 13 late 2019, notification of the LID device |
| + * only happens on close, not on open and _LID always returns closed. |
| + */ |
| + .matches = { |
| + DMI_MATCH(DMI_SYS_VENDOR, "Razer"), |
| + DMI_MATCH(DMI_PRODUCT_NAME, "Razer Blade Stealth 13 Late 2019"), |
| + }, |
| + .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN, |
| + }, |
| {} |
| }; |
| |
| -- |
| 2.7.4 |
| |