Skip to content

platform/x86: asus-wmi: fix FA401 series keyboard sleep strobe

Idotoho Reimon Simanjuntak lkml platform-driver-x86 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 3 repliesIn review
  2. v21 patch 4 repliesSuperseded
  3. v11 patch 1 replySuperseded

Changes in v3 from the cover letter

- Split the series into 3 patches: preparatory bitmask cleanup, FA401 DMI quirk, and S0ix sleep re-assertion (per Ilpo Järvinen).
- Use FIELD_PREP() and named GENMASK() definitions consistently (per Ilpo Järvinen).
- Address Denis Benato's feedback regarding userspace policy:
* Check the TUF_RGB_STATE_SLEEP flag so the kernel honors any user decision to disable sleep LEDs.
* Dynamically track the user's active brightness level (kbd_led_last_level) so the sleep strobe preserves dim/bright preferences rather than forcing max brightness.
- Hook into ACPI LPS0 s2idle dev ops (.prepare): ensures brightness and state are re-asserted after the display server and DRM drivers blank the screen, immediately prior to S0ix entry.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3platform/x86: asus-wmi: use named masks for TUF RGB commandsdrivers/platform/x86/asus-wmi.c+38 -102 replies
2/3platform/x86: asus-wmi: enable TUF RGB state for FA401 via DMI quirkdrivers/platform/x86/asus-nb-wmi.c drivers/platform/x86/asus-wmi.c drivers/platform/x86/asus-wmi.h+17 -11 reply
3/3platform/x86: asus-wmi: re-assert FA401 keyboard state before S0ixdrivers/platform/x86/asus-wmi.c+63 -50 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchDenis Benato
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] platform/x86: asus-wmi: fix FA401 series keyboard sleep strobe

This series fixes the keyboard sleep strobe effect on ASUS TUF Gaming FA401 (A14) series laptops and refactors the TUF RGB state/mode interface.

The FA401 does not report the TUF RGB state WMI device (0x00100057) via standard DSTS probing, yet the EC supports the state flags required for the sleep strobe animation. In addition, Modern Standby (S0ix/s2idle) entry requires re-asserting the keyboard backlight and power state at LPS0 prepare time because display servers and DRM drivers blank the backlight to 0 prior to sleep.

Changes in v3:
- Split the series into 3 patches: preparatory bitmask cleanup, FA401 DMI quirk, and S0ix sleep re-assertion (per Ilpo Järvinen).
- Use FIELD_PREP() and named GENMASK() definitions consistently (per Ilpo Järvinen).
- Address Denis Benato's feedback regarding userspace policy:
* Check the TUF_RGB_STATE_SLEEP flag so the kernel honors any user decision to disable sleep LEDs.
* Dynamically track the user's active brightness level (kbd_led_last_level) so the sleep strobe preserves dim/bright preferences rather than forcing max brightness.
- Hook into ACPI LPS0 s2idle dev ops (.prepare): ensures brightness and state are re-asserted after the display server and DRM drivers blank the screen, immediately prior to S0ix entry.

Idotoho Reimon Simanjuntak (3):
platform/x86: asus-wmi: use named masks for TUF RGB commands platform/x86: asus-wmi: enable TUF RGB state for FA401 via DMI quirk platform/x86: asus-wmi: re-assert FA401 keyboard state before S0ix

 drivers/platform/x86/asus-nb-wmi.c |  13 ++++
 drivers/platform/x86/asus-wmi.c    | 120 +++++++++++++++++++++++++----
 drivers/platform/x86/asus-wmi.h    |   1 +
 3 files changed, 118 insertions(+), 16 deletions(-)
Signature · 1 line
2.55.0