Skip to content

Commit b76e877

Browse files
VulnXgregkh
authored andcommitted
platform/x86: hp-wmi: Ignore backlight and FnLock events
commit e8c5973 upstream. On HP OmniBook 7 the keyboard backlight and FnLock keys are handled directly by the firmware. However, they still trigger WMI events which results in "Unknown key code" warnings in dmesg. Add these key codes to the keymap with KE_IGNORE to silence the warnings since no software action is needed. Tested-by: Artem S. Tashkinov <aros@gmx.com> Reported-by: Artem S. Tashkinov <aros@gmx.com> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221181 Signed-off-by: Krishna Chomal <krishna.chomal108@gmail.com> Link: https://patch.msgid.link/20260403080155.169653-1-krishna.chomal108@gmail.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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 58175e9 commit b76e877

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/platform/x86/hp/hp-wmi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,11 @@ static const struct key_entry hp_wmi_keymap[] = {
261261
{ KE_KEY, 0x21a9, { KEY_TOUCHPAD_OFF } },
262262
{ KE_KEY, 0x121a9, { KEY_TOUCHPAD_ON } },
263263
{ KE_KEY, 0x231b, { KEY_HELP } },
264+
{ KE_IGNORE, 0x21ab, }, /* FnLock on */
265+
{ KE_IGNORE, 0x121ab, }, /* FnLock off */
266+
{ KE_IGNORE, 0x30021aa, }, /* kbd backlight: level 2 -> off */
267+
{ KE_IGNORE, 0x33221aa, }, /* kbd backlight: off -> level 1 */
268+
{ KE_IGNORE, 0x36421aa, }, /* kbd backlight: level 1 -> level 2*/
264269
{ KE_END, 0 }
265270
};
266271

0 commit comments

Comments
 (0)