[PATCH v4 3/3] platform: lenovo: wmi-fn-keys: ignore the keyboard backlight level events
From: David Cemin
Date: Sun Nov 29 2026 - 23:33:04 EST
The Yoga 9 2-in-1 16 reports the keyboard backlight level selected with
Fn+Space on the Fn key event GUID: 0x40 for off, 0x41 for low, 0x42 for
high, and 0x43 was seen once while cycling. The firmware changes the
backlight itself, so these events carry no action for the OS; add them
as KE_IGNORE entries so they stop being logged as unknown key codes.
Reviewed-by: Rong Zhang <i@xxxxxxxx>
Signed-off-by: David Cemin <dcemin@xxxxxxxxxx>
---
drivers/platform/lenovo/wmi-fn-keys.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/platform/lenovo/wmi-fn-keys.c b/drivers/platform/lenovo/wmi-fn-keys.c
index 7c701e6dd255..95be423e57c8 100644
--- a/drivers/platform/lenovo/wmi-fn-keys.c
+++ b/drivers/platform/lenovo/wmi-fn-keys.c
@@ -71,6 +71,14 @@ static const struct key_entry lwmi_fn_keys_keymap[] = {
{ KE_IGNORE, 0x02 | LWMI_FN_KEY },
/* Esc (handled by the firmware) */
{ KE_IGNORE, 0x03 | LWMI_FN_KEY },
+ /*
+ * Keyboard backlight level after Fn+Space, handled by the firmware:
+ * 0x40 off, 0x41 low, 0x42 high
+ */
+ { KE_IGNORE, 0x40 | LWMI_FN_KEY },
+ { KE_IGNORE, 0x41 | LWMI_FN_KEY },
+ { KE_IGNORE, 0x42 | LWMI_FN_KEY },
+ { KE_IGNORE, 0x43 | LWMI_FN_KEY },
/*
* WMI keys
--
2.56.1