Skip to content

platform/x86: asus-wmi: fix screenpad backlight regression

Denis Benato lkml platform-driver-x86 stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4platform/x86: asus-wmi: fix unclear usage of bd->props.powerdrivers/platform/x86/asus-wmi.c+9 -30 replies
2/4platform/x86: asus-wmi: fix screenpad power state detectiondrivers/platform/x86/asus-wmi.c+15 -70 replies
3/4platform/x86: asus-wmi: use backlight_is_blank() for screenpad powerdrivers/platform/x86/asus-wmi.c+9 -230 replies
4/4platform/x86: asus-wmi: remove unused screenpad_brightnessdrivers/platform/x86/asus-wmi.c drivers/platform/x86/asus-wmi.h+0 -30 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchHugo BaiguePonali
1/4T-b T-b
2/4T-b
3/4
4/4

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

Read the v1 thread

Cover letter [PATCH v1 0/4] platform/x86: asus-wmi: fix screenpad backlight regression

Hi all,

I have touched ScreenPad handling code based on latest Luke's work and in doing so I caused some regressions in the screenpad backlight handling.

This patchset attempts to amend those regressions while also improving the support based on feedbacks and suggestions I have received.

The screenpad backlight regression introduced by 130d29c5627c ("platform/x86: asus-wmi: adjust screenpad power/brightness handling") left the ScreenPad panel unusable on several models: the panel is powered off at probe time or bl_power writes have inverted effects. Patches 1 and 2 fix the regression, patch 3 makes the screenpad backlight honor the core blank and suspend states and patch 4 removes dead code left behind by the same rework.

I would ask everybody involved to test these changes again and provide feedback.

Thanks to everyone who provided feedback and helped identify the regressions, especially Hugo Baigue that also provided values straight from the hardware and suggestions.

The use of AI here is to review the content and to research relevant links, putting the correct tags at the end of each patch and referencing the correct people,
the rest comes either from me or from Hugo.

Honestly I am a bit unsure on what older DUO models might make of these changes, but it's impossible for them to work worse than they are doing now due to me inverting the backlight logic, so I'm willing to hear any brightness misbehavior and to resolve them on a per-model basis if this works well in newer laptops.

Best regards,
Denis Benato

Denis Benato (4):
platform/x86: asus-wmi: fix unclear usage of bd->props.power platform/x86: asus-wmi: fix screenpad power state detection platform/x86: asus-wmi: use backlight_is_blank() for screenpad power platform/x86: asus-wmi: remove unused screenpad_brightness

 drivers/platform/x86/asus-wmi.c | 50 ++++++++++++++++-----------------
 drivers/platform/x86/asus-wmi.h |  1 -
 2 files changed, 24 insertions(+), 27 deletions(-)
Signature · 1 line
2.47.3