Skip to contentSkip to conversation

ACPI: EC: Add quirk for the HP Pavilion Gaming 15-dk1xxx

PATCH Applied Hans de Goede 2 participants 2 messages Sep 20, 2023 – Sep 21, 2023 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: EC: Add quirk for the HP Pavilion Gaming 15-dk1xxx

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.

---
 drivers/acpi/ec.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/acpi/ec.c +11 -0
index 660834a49c1f..c95d0edb0be9 100644
@@ -1913,6 +1913,17 @@ static const struct dmi_system_id ec_dmi_table[] __initconst = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "HP 15-cx0041ur"),
 		},
 	},
+	{
+		/*
+		 * 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
Signature · 1 line
2.41.0
maintainer Applied
#1 lore raw
Quoted 27 lines · Hans de Goede

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.

---
 drivers/acpi/ec.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/acpi/ec.c +5 -0
index 660834a49c1f..c95d0edb0be9 100644
@@ -1913,6 +1913,17 @@ static const struct dmi_system_id ec_dmi_table[] __initconst = {
                        DMI_MATCH(DMI_PRODUCT_NAME, "HP 15-cx0041ur"),
                },
        },
+       {
+               /*
+                * HP Pavilion Gaming Laptop 15-dk1xxx
+                * https://github.com/systemd/systemd/issues/28942
+                */

drivers/acpi/ec.c static const struct dmi_system_id ec_dmi_table[] __initconst = {

Quoted 10 lines
drivers/acpi/ec.c +6 -1
+               .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
--

Applied as 6.7 material, thanks!