OSDN Git Service

HID: asus: filter G713/G733 key event to prevent shutdown
authorLuke D Jones <luke@ljones.dev>
Sun, 18 Apr 2021 09:12:29 +0000 (21:12 +1200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 May 2021 12:40:42 +0000 (14:40 +0200)
commitc980512b4512adf2c6f9edb948ce19423b23124d
treee6a36bb0d006081069ab0d5d4f079936f49083dd
parentedb032033da0dc850f6e7740fa1023c73195bc89
HID: asus: filter G713/G733 key event to prevent shutdown

The G713 and G733 both emit an unexpected keycode on some key
presses such as Fn+Pause. The device in this case is emitting
two events on key down, and 3 on key up, the third key up event
is report ID 0x02 and is unfiltered, causing incorrect event.

This patch filters out the single problematic event.

Signed-off-by: Luke D Jones <luke@ljones.dev>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-asus.c