Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86: hp-wmi: Ignore backlight and FnLock events

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>

authored by

Krishna Chomal and committed by
Ilpo Järvinen
e8c59736 6b0567dc

+5
+5
drivers/platform/x86/hp/hp-wmi.c
··· 399 399 { KE_KEY, 0x21a9, { KEY_TOUCHPAD_OFF } }, 400 400 { KE_KEY, 0x121a9, { KEY_TOUCHPAD_ON } }, 401 401 { KE_KEY, 0x231b, { KEY_HELP } }, 402 + { KE_IGNORE, 0x21ab, }, /* FnLock on */ 403 + { KE_IGNORE, 0x121ab, }, /* FnLock off */ 404 + { KE_IGNORE, 0x30021aa, }, /* kbd backlight: level 2 -> off */ 405 + { KE_IGNORE, 0x33221aa, }, /* kbd backlight: off -> level 1 */ 406 + { KE_IGNORE, 0x36421aa, }, /* kbd backlight: level 1 -> level 2*/ 402 407 { KE_END, 0 } 403 408 }; 404 409