]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Bluetooth IRQ for Intuos Pro should handle prox/range
authorJason Gerecke <killertofu@gmail.com>
Sat, 11 Feb 2017 00:14:07 +0000 (16:14 -0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 14 Feb 2017 14:01:29 +0000 (15:01 +0100)
commit23f68744cbe19714c6e2c33bc3767d2d366c6f9d
tree6feb94fdcab9434e8d8160afdb0a7e4875bd8e72
parent5a111814896a63017e4b0514ad5b97128d116014
HID: wacom: Bluetooth IRQ for Intuos Pro should handle prox/range

The prox/range bits included in the Bluetooth reports from the Intuos Pro
were being ignored, leading to two issues. Firstly, the pen would never
announce a BTN_TOOL_PEN event with value 0, leaving userspace to believe
the pen was always active. Secondly, the driver would continue to send
events for data while the packet's "prox" bit was clear. This can lead
to sudden incorrect pointer jumps if the pen is slowly moved away from
the tablet surface.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c