Skip to content

Commit 444a925

Browse files
Wer-Wolfij-intel
authored andcommitted
platform/x86: acer-wmi: Ignore backlight event
On the Acer Nitro AN515-58, the event 4 - 0 is send by the ACPI firmware when the backlight up/down keys are pressed. Ignore this event to avoid spamming the kernel log with error messages, as the acpi-video driver already handles brightness up/down events. Reported-by: Bugaddr <Bugaddr@protonmail.com> Closes: https://bugaddr.tech/posts/2025-11-16-debugging-the-acer-nitro-5-an515-58-fn-f10-keyboard-backlight-bug-on-linux/#wmi-interface-issues Tested-by: Bugaddr <Bugaddr@protonmail.com> Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://patch.msgid.link/20251117155938.3030-1-W_Armin@gmx.de Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent d8bb447 commit 444a925

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/platform/x86/acer-wmi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ MODULE_ALIAS("wmi:676AA15E-6A47-4D9F-A2CC-1E6D18D14026");
102102

103103
enum acer_wmi_event_ids {
104104
WMID_HOTKEY_EVENT = 0x1,
105+
WMID_BACKLIGHT_EVENT = 0x4,
105106
WMID_ACCEL_OR_KBD_DOCK_EVENT = 0x5,
106107
WMID_GAMING_TURBO_KEY_EVENT = 0x7,
107108
WMID_AC_EVENT = 0x8,
@@ -2369,6 +2370,9 @@ static void acer_wmi_notify(union acpi_object *obj, void *context)
23692370
sparse_keymap_report_event(acer_wmi_input_dev, scancode, 1, true);
23702371
}
23712372
break;
2373+
case WMID_BACKLIGHT_EVENT:
2374+
/* Already handled by acpi-video */
2375+
break;
23722376
case WMID_ACCEL_OR_KBD_DOCK_EVENT:
23732377
acer_gsensor_event();
23742378
acer_kbd_dock_event(&return_value);

0 commit comments

Comments
 (0)