]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Input: synaptics - use dmax in input_mt_assign_slots
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 3 Feb 2015 23:33:49 +0000 (15:33 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 3 Feb 2015 23:36:32 +0000 (15:36 -0800)
commit6ab17a8484f03c188a93713369912f1545eb26e9
tree484957ae808fcfd62f004c35c714134a6f35e1a7
parentd05426779b96767f0c306cbeb8bb77d7e70eb36e
Input: synaptics - use dmax in input_mt_assign_slots

When tapping a clickpad with two fingers, there is a chance that the sensor
sees first only one finger, and at the next scan only the second one.  In
this case, the sensors says that there has been only one finger on the
clickpad, which moved really fast between two scans.

We can try to counter this by adding a limit to what an actual finger can
move between 2 scans.  A distance of 1cm between two scans for one finger
seems reasonable.  However, this is not really accurate because the
resolution in X and in Y differs. But heh, that's how the in-kernel
tracking works right now, and its job is quite good, even with this
approximation.

This parameter solves most of the jumps observed, not all of them however.
But this is a hardware defect, and we might not be able to get something
better without much heavier computations.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=76722
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/synaptics.c