summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorDavid Cemin <dcemin@nvidia.com>2026-10-20 15:09:19 -0700
committerJiri Kosina <jkosina@suse.com>2026-11-20 14:59:25 +0100
commit92cbe1442b0980dcc96f2d1d71049a18b044cb51 (patch)
tree78e08d1f5b4d5ab9cc588c01ab6ffa221e9d4d8e /tools/perf/scripts/python/libxed.py
parent6f8fb7acb3848dcb094ab22053b4194e12dc8aee (diff)
HID: asus: map Consumer brightness usages on I2C keyboards
Several ASUS laptops carry their keyboard on an I2C-HID device with ID 0B05:4B42, the same ID as the Zenbook A16 (UX3607OA), so they bind to hid-asus with I2C_KEYBOARD_QUIRKS since commit 206107536018 ("HID: asus: support the Zenbook A16 (UX3607OA) keyboard"). Unlike the A16, which reports its brightness hotkeys on the ASUS vendor page, these keyboards report them as the standard Consumer usages Display Brightness Decrement (0x70) and Display Brightness Increment (0x6f) on report 3. I2C_KEYBOARD_QUIRKS includes QUIRK_NO_CONSUMER_USAGES, whose input mapping ignores every Consumer usage except mute and volume, so the brightness keys never produce input events. The keys work when the keyboard happens to be bound to hid-generic, which maps those usages by default, and stop working as soon as hid-asus claims the device. Let the two display brightness usages through the filter so hid-input maps them to KEY_BRIGHTNESSUP and KEY_BRIGHTNESSDOWN. Keyboards that do not report them are unaffected. Tested on two ASUS laptop models with this keyboard: with the keyboard bound to hid-asus, the brightness keys now adjust the panel brightness. Signed-off-by: David Cemin <dcemin@nvidia.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions