Skip to content

Instantly share code, notes, and snippets.

@chaeya
Created November 29, 2022 05:10
Show Gist options
  • Save chaeya/0db77ba33056619ba3ac030e8f644b9c to your computer and use it in GitHub Desktop.
Save chaeya/0db77ba33056619ba3ac030e8f644b9c to your computer and use it in GitHub Desktop.
linux kernel v6.0.10 ASUS VivoBook S5402ZA keyboard disable patch
diff -crB a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
*** a/drivers/gpio/gpiolib-acpi.c 2022-11-28 20:03:26.825171988 +0900
--- b/drivers/gpio/gpiolib-acpi.c 2022-11-28 20:18:28.049389594 +0900
***************
*** 1590,1595 ****
--- 1590,1609 ----
.ignore_interrupt = "AMDI0030:00@18",
},
},
+ {
+ /*
+ * Asus Vivobook S5402ZA
+ * https://bugzilla.kernel.org/show_bug.cgi?id=216158
+ */
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "VivoBook_ASUSLaptop S5402ZA_S5402ZA"),
+ DMI_MATCH(DMI_BOARD_NAME, "S5402ZA"),
+ },
+ .driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+ .ignore_interrupt = "AMDI0030:00@18",
+ },
+ },
{} /* Terminating entry */
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment