X86 platform drivers
 help / color / mirror / Atom feed
* [RFC 0/3] platform/x86: asus-wmi: Only map brightness codes when using asus-wmi backlight control
@ 2023-10-17  9:07 Hans de Goede
  2023-10-17  9:07 ` [RFC 1/3] platform/x86: asus-wmi: Change ASUS_WMI_BRN_DOWN code from 0x20 to 0x2e Hans de Goede
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Hans de Goede @ 2023-10-17  9:07 UTC (permalink / raw)
  To: Ilpo Järvinen, Andy Shevchenko, Corentin Chary
  Cc: Hans de Goede, Kai Heng Feng, James John, acpi4asus-user,
	platform-driver-x86

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(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-18 10:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-17  9:07 [RFC 0/3] platform/x86: asus-wmi: Only map brightness codes when using asus-wmi backlight control Hans de Goede
2023-10-17  9:07 ` [RFC 1/3] platform/x86: asus-wmi: Change ASUS_WMI_BRN_DOWN code from 0x20 to 0x2e Hans de Goede
2023-10-17  9:07 ` [RFC 2/3] platform/x86: asus-wmi: Only map brightness codes when using asus-wmi backlight control Hans de Goede
2023-10-17  9:07 ` [RFC 3/3] platform/x86: asus-wmi: Map 0x2a code, Ignore 0x2b and 0x2c events Hans de Goede
2023-10-18 10:02 ` [RFC 0/3] platform/x86: asus-wmi: Only map brightness codes when using asus-wmi backlight control Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox