]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Force pen out of prox if no events have been received in a while
authorJason Gerecke <killertofu@gmail.com>
Fri, 15 Jul 2022 23:05:19 +0000 (16:05 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 21 Jul 2022 11:49:32 +0000 (13:49 +0200)
commitb529b478d44fd083e1351e1ec985086cb6e53889
treee959d72bf1a008d282674043788656fa822e8208
parent400bf75612f3606a18eb736167f2d4909bbeb3ee
HID: wacom: Force pen out of prox if no events have been received in a while

Prox-out events may not be reliably sent by some AES firmware. This can
cause problems for users, particularly due to arbitration logic disabling
touch input while the pen is in prox.

This commit adds a timer which is reset every time a new prox event is
received. When the timer expires we check to see if the pen is still in
prox and force it out if necessary. This is patterend off of the same
solution used by 'hid-letsketch' driver which has a similar problem.

Link: https://github.com/linuxwacom/input-wacom/issues/310
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom.h
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c