Linux Input/HID development
 help / color / mirror / Atom feed
* [PATCH] Input: i8042 - add Xiaomi Book Pro 14 to dumbkbd quirk list
@ 2026-07-18 12:24 Andrew Zhou
  0 siblings, 0 replies; only message in thread
From: Andrew Zhou @ 2026-07-18 12:24 UTC (permalink / raw)
  To: linux-input; +Cc: linux-kernel, dmitry.torokhov, Andrew Zhou

The Xiaomi Book Pro 14's built-in keyboard doesn't work by default.

Add the device to the quirk table with SERIO_QUIRK_DUMBKBD so the keyboard
works out of the box without needing i8042.dumbkbd on the kernel command line.

Tested on a Xiaomi Book Pro 14.

Signed-off-by: Andrew Zhou <zhoulol888@gmail.com>
---
 drivers/input/serio/i8042-acpipnpio.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/input/serio/i8042-acpipnpio.h b/drivers/input/serio/i8042-acpipnpio.h
index 412f82d7a..6b18014e2 100644
--- a/drivers/input/serio/i8042-acpipnpio.h
+++ b/drivers/input/serio/i8042-acpipnpio.h
@@ -1430,6 +1430,18 @@ static const struct dmi_system_id i8042_dmi_quirk_table[] __initconst = {
 		},
 		.driver_data = (void *)(SERIO_QUIRK_DIRECT)
 	},
+	/*
+	 * Some laptops have a broken keyboard controller that reports
+	 * incorrect data. SERIO_QUIRK_DUMBKBD bypasses the intelligent
+	 * probing and forces a basic PS/2 keyboard assumption.
+	 */
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "XIAOMI"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Xiaomi Book Pro 14"),
+		},
+		.driver_data = (void *)(SERIO_QUIRK_DUMBKBD)
+	},
 	{ }
 };
 
-- 
2.54.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-18 12:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-18 12:24 [PATCH] Input: i8042 - add Xiaomi Book Pro 14 to dumbkbd quirk list Andrew Zhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox