From: Zekai Xie <zekaixie37@gmail.com>
To: platform-driver-x86@vger.kernel.org
Cc: mpearson-lenovo@squebb.ca, ikepanhc@gmail.com, hansg@kernel.org,
ilpo.jarvinen@linux.intel.com, derekjohn.clark@gmail.com,
linux-kernel@vger.kernel.org, Zekai Xie <zekaixie37@gmail.com>
Subject: [PATCH] platform/x86: ideapad-laptop: Add PrintScreen key on ThinkBook 14 G8+ IPH
Date: Tue, 29 Sep 2026 23:40:23 +0800 [thread overview]
Message-ID: <20260929154023.89492-1-zekaixie37@gmail.com> (raw)
The Fn+F11 (PrintScreen) key on the Lenovo ThinkBook 14 G8+ IPH
(21VG) reports WMI scancode 0x48 (0x148 with the WMI key bit set),
which has no entry in ideapad_keymap[], so userspace only receives
KEY_UNKNOWN:
Event: type 4 (EV_MSC), code 4 (MSC_SCAN), value 148
Event: type 1 (EV_KEY), code 240 (KEY_UNKNOWN), value 1
Map it to KEY_SYSRQ so the key produces the Print keysym as labelled.
Assisted-by: LLM
Signed-off-by: Zekai Xie <zekaixie37@gmail.com>
---
drivers/platform/x86/lenovo/ideapad-laptop.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/platform/x86/lenovo/ideapad-laptop.c b/drivers/platform/x86/lenovo/ideapad-laptop.c
index 8213524..4cae65c 100644
--- a/drivers/platform/x86/lenovo/ideapad-laptop.c
+++ b/drivers/platform/x86/lenovo/ideapad-laptop.c
@@ -1364,6 +1364,8 @@ static const struct key_entry ideapad_keymap[] = {
{ KE_KEY, 0x2d | IDEAPAD_WMI_KEY, { KEY_SELECTIVE_SCREENSHOT } },
{ KE_KEY, 0x29 | IDEAPAD_WMI_KEY, { KEY_TOUCHPAD_TOGGLE } },
{ KE_KEY, 0x2a | IDEAPAD_WMI_KEY, { KEY_ROOT_MENU } },
+ /* PrintScreen (Fn+F11) on ThinkBook 14 G8+ IPH (21VG) */
+ { KE_KEY, 0x48 | IDEAPAD_WMI_KEY, { KEY_SYSRQ } },
{ KE_END },
};
--
2.55.0
next reply other threads:[~2026-09-29 15:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 15:40 Zekai Xie [this message]
2026-09-29 16:58 ` Marco Giunta
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=20260929154023.89492-1-zekaixie37@gmail.com \
--to=zekaixie37@gmail.com \
--cc=derekjohn.clark@gmail.com \
--cc=hansg@kernel.org \
--cc=ikepanhc@gmail.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mpearson-lenovo@squebb.ca \
--cc=platform-driver-x86@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®