Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: alps - fix finger jumps on lifting 2 fingers on v7 touchpad

On v7 touchpads sometimes when 2 fingers are moved down on the touchpad
until they "fall of" the touchpad, the second touch will report 0 for y
(max y really since the y axis is inverted) and max x as coordinates,
rather then reporting 0, 0 as is expected for a non touching finger.

This commit detects this and treats these touches as non touching.

See the evemu-recording here:
https://bugzilla.redhat.com/attachment.cgi?id=1025058

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1221200
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Hans de Goede and committed by
Dmitry Torokhov
72eceab7 3c0213d1

+5
+5
drivers/input/mouse/alps.c
··· 941 941 case V7_PACKET_ID_TWO: 942 942 mt[1].x &= ~0x000F; 943 943 mt[1].y |= 0x000F; 944 + /* Detect false-postive touches where x & y report max value */ 945 + if (mt[1].y == 0x7ff && mt[1].x == 0xff0) { 946 + mt[1].x = 0; 947 + /* y gets set to 0 at the end of this function */ 948 + } 944 949 break; 945 950 946 951 case V7_PACKET_ID_MULTI: