platform/x86: acer-wmi: Add 4-zone RGB keyboard backlight support for Nitro AN515-58
Subsystems (2)
PATCH 1/1 platform/x86: acer-wmi: Add 4-zone RGB keyboard backlight support for Nitro AN515-58
Add support for the 4-zone RGB keyboard backlight found on the Acer Nitro AN515-58 laptop.
To establish userspace control, an initial static mode preamble via Method 20 is sent during probe and resume to prepare for cases where the firmware may already be running a dynamic lighting effect that would otherwise interfere with the driver's static per-zone control. Subsequent per-zone color and brightness
adjustments are handled via ACPI Method 6.
The keyboard backlight consists of four evenly divided zones without a dedicated "middle" or "wasd" zone. Therefore, the zones are exposed as left, center-left, center-right, and right to match the physical layout.
The 4-zone RGB implementation in this patch is derived from the character-device-based approach in JafarAkhondali's acer-predator-turbo-and-rgb-keyboard-linux-module
adapted here to the standard Linux LED multicolor class. Zone bitmask encoding and the WMI enable-method discovery additionally draw on an unmerged RFC by Dirga Yuza for the same hardware
https://lore.kernel.org/all/[email protected]/
--- drivers/platform/x86/Kconfig | 1 + drivers/platform/x86/acer-wmi.c | 343 +++++++++++++++++++------------- 2 files changed, 208 insertions(+), 136 deletions(-)
drivers/platform/x86/Kconfig +1 -0
@@ -180,6 +180,7 @@ config ACER_WMI select INPUT_SPARSEKMAP select LEDS_CLASS select NEW_LEDS + imply LEDS_CLASS_MULTICOLOR select ACPI_PLATFORM_PROFILE help This is a driver for newer Acer (and Wistron) laptops. It adds
drivers/platform/x86/acer-wmi.c +207 -136
441 lines not on this page · raw message
Signature · 1 line
2.55.0