]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86: hp-wmi: Ignore backlight and FnLock events
authorKrishna Chomal <krishna.chomal108@gmail.com>
Fri, 3 Apr 2026 08:01:55 +0000 (13:31 +0530)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 9 Apr 2026 12:01:59 +0000 (15:01 +0300)
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>
drivers/platform/x86/hp/hp-wmi.c

index 470c6e48f8e98996163566a91ef98f24749c2df1..851056bee6146c1a30f5c8cc51b4c67a40fcf47b 100644 (file)
@@ -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 }
 };