Unverified Commit e8c59736 authored by Krishna Chomal's avatar Krishna Chomal Committed by Ilpo Järvinen
Browse files

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: default avatarArtem S. Tashkinov <aros@gmx.com>
Reported-by: default avatarArtem S. Tashkinov <aros@gmx.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221181


Signed-off-by: default avatarKrishna Chomal <krishna.chomal108@gmail.com>
Link: https://patch.msgid.link/20260403080155.169653-1-krishna.chomal108@gmail.com


Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent 6b0567dc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -399,6 +399,11 @@ static const struct key_entry hp_wmi_keymap[] = {
	{ KE_KEY, 0x21a9,  { KEY_TOUCHPAD_OFF } },
	{ KE_KEY, 0x121a9, { KEY_TOUCHPAD_ON } },
	{ KE_KEY, 0x231b,  { KEY_HELP } },
	{ KE_IGNORE, 0x21ab, }, /* FnLock on */
	{ KE_IGNORE, 0x121ab, }, /* FnLock off */
	{ KE_IGNORE, 0x30021aa, }, /* kbd backlight: level 2 -> off */
	{ KE_IGNORE, 0x33221aa, }, /* kbd backlight: off -> level 1 */
	{ KE_IGNORE, 0x36421aa, }, /* kbd backlight: level 1 -> level 2*/
	{ KE_END, 0 }
};