Skip to content

Commit 9aa1868

Browse files
st0niegregkh
authored andcommitted
platform/x86: huawei-wmi: add keys for HONOR models
[ Upstream commit 5c72329 ] HONOR MagicBook X16/X14 models produced in 2025 cannot use the Print Screen and YOYO keys properly, with the system reporting them as unknown key presses (codes: 0x028b and 0x028e). To resolve this, a key_entry is added for both the HONOR Print Screen key and the HONOR YOYO key, ensuring they function correctly on these models. Signed-off-by: Ston Jia <ston.jia@outlook.com> Link: https://patch.msgid.link/20251029051804.220111-1-ston.jia@outlook.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent bc058a8 commit 9aa1868

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/platform/x86/huawei-wmi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ static const struct key_entry huawei_wmi_keymap[] = {
8181
{ KE_KEY, 0x289, { KEY_WLAN } },
8282
// Huawei |M| key
8383
{ KE_KEY, 0x28a, { KEY_CONFIG } },
84+
// HONOR YOYO key
85+
{ KE_KEY, 0x28b, { KEY_NOTIFICATION_CENTER } },
86+
// HONOR print screen
87+
{ KE_KEY, 0x28e, { KEY_PRINT } },
8488
// Keyboard backlit
8589
{ KE_IGNORE, 0x293, { KEY_KBDILLUMTOGGLE } },
8690
{ KE_IGNORE, 0x294, { KEY_KBDILLUMUP } },

0 commit comments

Comments
 (0)