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)
commit6544a1df11c48c8413071aac3316792e4678fbfb
tree022cf374a584f891ef0f65d356fd11fe2d0c5952
parent5f7e5445a2de848c66d2d80ba5479197e8287c33
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 3c0213d17a09 ("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
This page took 0.025387 seconds and 5 git commands to generate.