Skip to contentSkip to conversation

ACPI: resource: Do IRQ override on GMxBGxx (XMG APEX 17 M23)

PATCH Applied Guenter Schafranek 2 participants 2 messages Apr 15, 2024 – Apr 22, 2024 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: resource: Do IRQ override on GMxBGxx (XMG APEX 17 M23)

The XM APEX 17 M23 (TongFang?) GMxBGxx (got using sudo dmidecode -s baseboard-product-name) needs IRQ overriding for the keyboard to work.
Adding an entry for this laptop to the override_table makes the internal
keyboard functional.
See https://www.reddit.com/r/XMG_gg/comments/15kd5pg/xmg_apex_17_m23_keyboard_not_working_on_linux/.
Patch was successfully tested with Arch Linux Kernel v6.8 under
Manjaro Linux v23.1.4.

---
 drivers/acpi/resource.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/acpi/resource.c +6 -0
index 59423fe9d..c9af5d2f4 100644
@@ -533,6 +533,12 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
  * to have a working keyboard.
  */
 static const struct dmi_system_id irq1_edge_low_force_override[] = {
+	{
+		/* XMG APEX 17 (M23) */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "GMxBGxx"),
+		},
+	},
 	{
 		/* TongFang GMxRGxx/XMG CORE 15 (M22)/TUXEDO Stellaris 15 Gen4 AMD */
 		.matches = {

--
2.44.0

maintainer Applied
#1 lore raw
Quoted 22 lines · Guenter Schafranek

The XM APEX 17 M23 (TongFang?) GMxBGxx (got using sudo dmidecode -s baseboard-product-name) needs IRQ overriding for the keyboard to work.
Adding an entry for this laptop to the override_table makes the internal
keyboard functional.
See https://www.reddit.com/r/XMG_gg/comments/15kd5pg/xmg_apex_17_m23_keyboard_not_working_on_linux/.
Patch was successfully tested with Arch Linux Kernel v6.8 under
Manjaro Linux v23.1.4.

---
 drivers/acpi/resource.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/acpi/resource.c +0 -0
index 59423fe9d..c9af5d2f4 100644
@@ -533,6 +533,12 @@ static const struct dmi_system_id irq1_level_low_skip_override[] = {
  * to have a working keyboard.
  */
 static const struct dmi_system_id irq1_edge_low_force_override[] = {

drivers/acpi/resource.c static const struct dmi_system_id irq1_level_low_skip_override[] = {

Quoted 10 lines
drivers/acpi/resource.c +6 -1
+       {
+               /* XMG APEX 17 (M23) */
+               .matches = {
+                       DMI_MATCH(DMI_BOARD_NAME, "GMxBGxx"),
+               },
+       },
        {
                /* TongFang GMxRGxx/XMG CORE 15 (M22)/TUXEDO Stellaris 15 Gen4 AMD */
                .matches = {
--

Applied as 6.10 material, thanks!