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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux