You need to sign in or sign up before continuing.
提交 9ffc47ca 编写于 作者: H Hans de Goede 提交者: sanglipeng

platform/x86: asus-nb-wmi: Add alternate mapping for KEY_SCREENLOCK

stable inclusion
from stable-v5.10.166
commit f8ddf7dbf5e79fd3a5e890b6e45e9c51d6397a9e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7TH9O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f8ddf7dbf5e79fd3a5e890b6e45e9c51d6397a9e

--------------------------------

[ Upstream commit db949489 ]

The 0x33 keycode is emitted by Fn + F6 on a ASUS FX705GE laptop.
Reported-by: NNemcev Aleksey <Nemcev_Aleksey@inbox.ru>
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230112181841.84652-1-hdegoede@redhat.comSigned-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: Nsanglipeng <sanglipeng1@jd.com>
上级 15ccc671
...@@ -478,6 +478,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = { ...@@ -478,6 +478,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
{ KE_KEY, 0x30, { KEY_VOLUMEUP } }, { KE_KEY, 0x30, { KEY_VOLUMEUP } },
{ KE_KEY, 0x31, { KEY_VOLUMEDOWN } }, { KE_KEY, 0x31, { KEY_VOLUMEDOWN } },
{ KE_KEY, 0x32, { KEY_MUTE } }, { KE_KEY, 0x32, { KEY_MUTE } },
{ KE_KEY, 0x33, { KEY_SCREENLOCK } },
{ KE_KEY, 0x35, { KEY_SCREENLOCK } }, { KE_KEY, 0x35, { KEY_SCREENLOCK } },
{ KE_KEY, 0x40, { KEY_PREVIOUSSONG } }, { KE_KEY, 0x40, { KEY_PREVIOUSSONG } },
{ KE_KEY, 0x41, { KEY_NEXTSONG } }, { KE_KEY, 0x41, { KEY_NEXTSONG } },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册