From: Andrew Zhou <zhoulol888@gmail.com>
To: linux-input@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, dmitry.torokhov@gmail.com,
Andrew Zhou <zhoulol888@gmail.com>
Subject: [PATCH] Input: i8042 - add Xiaomi Book Pro 14 to dumbkbd quirk list
Date: Sat, 18 Jul 2026 20:24:37 +0800 [thread overview]
Message-ID: <20260718122437.11112-1-zhoulol888@gmail.com> (raw)
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
next reply other threads:[~2026-07-18 12:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-18 12:24 Andrew Zhou [this message]
2026-08-01 8:24 ` [PATCH] Input: i8042 - add Xiaomi Book Pro 14 to dumbkbd quirk list Andrew Zhou
2026-08-01 10:30 ` Zhefu Zhang
2026-08-01 11:17 ` Andrew Zhou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260718122437.11112-1-zhoulol888@gmail.com \
--to=zhoulol888@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.