Skip to content

Commit e8c5973

Browse files
VulnXij-intel
authored andcommitted
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>
1 parent 6b0567d commit e8c5973

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
@@ -399,6 +399,11 @@ static const struct key_entry hp_wmi_keymap[] = {
399399
{ KE_KEY, 0x21a9, { KEY_TOUCHPAD_OFF } },
400400
{ KE_KEY, 0x121a9, { KEY_TOUCHPAD_ON } },
401401
{ 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*/
402407
{ KE_END, 0 }
403408
};
404409

0 commit comments

Comments
 (0)