]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elantech - mark protocols v2 and v3 as semi-mt
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 12 Jan 2016 01:35:38 +0000 (17:35 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 Jan 2016 01:45:32 +0000 (17:45 -0800)
commitc9a93f35de73169c9919a2b37a8478caf7024ba3
tree022cf374a584f891ef0f65d356fd11fe2d0c5952
parent82a890b95cc3ae4afc04532868c99b4548a2b398
Input: elantech - mark protocols v2 and v3 as semi-mt

When using a protocol v2 or v3 hardware, elantech uses the function
elantech_report_semi_mt_data() to report data. This devices are rather
creepy because if num_finger is 3, (x2,y2) is (0,0). Yes, only one valid
touch is reported.

Anyway, userspace (libinput) is now confused by these (0,0) touches,
and detect them as palm, and rejects them.

Commit e4ffe1683025 ("Input: elantech - fix semi-mt protocol for v3 HW")
was sufficient enough for xf86-input-synaptics and libinput before it has
palm rejection. Now we need to actually tell libinput that this device is
a semi-mt one and it should not rely on the actual values of the 2 touches.

Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elantech.c