ACPI: EC: Add quirk for the HP Pavilion Gaming 15-dk1xxx
authorHans de Goede <hdegoede@redhat.com>
Wed, 20 Sep 2023 13:05:06 +0000 (15:05 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 21 Sep 2023 18:59:14 +0000 (20:59 +0200)
Added GPE quirk entry for the HP Pavilion Gaming 15-dk1xxx.
There is a quirk entry for 2 15-c..... laptops, this is
for a new version which has 15-dk1xxx as identifier.

This fixes the LID switch and rfkill and brightness hotkeys
not working.

Closes: https://github.com/systemd/systemd/issues/28942
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c

index 660834a..c95d0ed 100644 (file)
@@ -1915,6 +1915,17 @@ static const struct dmi_system_id ec_dmi_table[] __initconst = {
        },
        {
                /*
+                * HP Pavilion Gaming Laptop 15-dk1xxx
+                * https://github.com/systemd/systemd/issues/28942
+                */
+               .callback = ec_honor_dsdt_gpe,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "HP"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion Gaming Laptop 15-dk1xxx"),
+               },
+       },
+       {
+               /*
                 * Samsung hardware
                 * https://bugzilla.kernel.org/show_bug.cgi?id=44161
                 */