]> git.baikalelectronics.ru Git - kernel.git/commit
HID: asus: Fix mute and touchpad-toggle keys on Medion Akoya E1239T
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Apr 2020 14:22:54 +0000 (16:22 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 6 May 2020 09:40:03 +0000 (11:40 +0200)
commiteb4f9fe19f02ef4f2c8bb2a863d1f44d5566aef9
tree76cd96dd1c575b207231b05c76078b4c54f8c24b
parent279db1625513874e4980914e59dca026012f9de2
HID: asus: Fix mute and touchpad-toggle keys on Medion Akoya E1239T

The mute key, is broken. All the consumer keys on the keyboard USB
interface work normally, except for mute which only sends press events
and never sends release events.

The touchpad key sends the otherwise unused input report with a report-id
of 5 on the touchpad interface. It too only sends press events. This also
requires extra special handling since the multi-touch touchpad events and
the KEY_F21 events for the touchpad toggle must not be send from the same
input_dev (userspace cannot handle this).

This commit adds special handlig for both, fixing these keys not working.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-asus.c