Skip to content

RFC platform/x86: asus-wmi: Only map brightness codes when using asus-wmi backlight control

Hans de Goede platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3platform/x86: asus-wmi: Change ASUS_WMI_BRN_DOWN code from 0x20 to 0x2edrivers/platform/x86/asus-wmi.h+1 -10 replies
2/3platform/x86: asus-wmi: Only map brightness codes when using asus-wmi backlight controldrivers/platform/x86/asus-wmi.c+4 -110 replies
3/3platform/x86: asus-wmi: Map 0x2a code, Ignore 0x2b and 0x2c eventsdrivers/platform/x86/asus-nb-wmi.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/3] platform/x86: asus-wmi: Only map brightness codes when using asus-wmi backlight control

Hi All,

Here is a series to address the issue of some newer Asus laptop models sending 0x2a - 0x2c events for various keys which fall within the NOTIFY_BRNDOWN_MIN - NOTIFY_BRNDOWN_MAX range causing these to wrongly get translated to KEY_BRIGHTNESSDOWN events.

To fix this change the NOTIFY_BRNUP_MIN - NOTIFY_BRNUP_MAX + NOTIFY_BRNDOWN_MIN - NOTIFY_BRNDOWN_MAX key-mapping to only apply to old models which use the vendor specific asus-wmi interface for backlight control.

This series is marked as RFC because I still need to hear back from the reporter if this series actually fixes things.

Regards,

Hans

Hans de Goede (3):
platform/x86: asus-wmi: Change ASUS_WMI_BRN_DOWN code from 0x20 to

    0x2e

platform/x86: asus-wmi: Only map brightness codes when using asus-wmi
backlight control
platform/x86: asus-wmi: Map 0x2a code, Ignore 0x2b and 0x2c events

 drivers/platform/x86/asus-nb-wmi.c |  3 +++
 drivers/platform/x86/asus-wmi.c    | 15 ++++-----------
 drivers/platform/x86/asus-wmi.h    |  2 +-
 3 files changed, 8 insertions(+), 12 deletions(-)
Signature · 1 line
2.41.0