Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1491525 - Touchpad tap timestamps can confuse some applications
Touchpad tap timestamps can confuse some applications
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libinput (Show other bugs)
7.4
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Peter Hutterer
Desktop QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-14 01:25 EDT by Peter Hutterer
Modified: 2018-04-10 07:51 EDT (History)
2 users (show)

See Also:
Fixed In Version: libinput-1.6.3-3.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-10 07:50:39 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0736 None None None 2018-04-10 07:51 EDT

  None (edit)
Description Peter Hutterer 2017-09-14 01:25:38 EDT
Description of problem:
libinput's timestamps for press and release events on 2-finger touchpad taps are identical. Some applications (e.g. some run under wine) get confused because they cannot order the events correctly. 

This only affects 2 and 3 finger tap, single-finger taps are fine.

Version-Release number of selected component (if applicable):
libinput-1.6.*

How reproducible:
sudo libinput-debug-events --enable-tap

Then do a two-finger tap and observe the timestamps:
-event20  POINTER_BUTTON    +1.43s	BTN_RIGHT (273) pressed, seat count: 1
 event20  POINTER_BUTTON    +1.43s	BTN_RIGHT (273) released, seat count: 0
 event20  POINTER_BUTTON    +2.65s	BTN_RIGHT (273) pressed, seat count: 1
 event20  POINTER_BUTTON    +2.65s	BTN_RIGHT (273) released, seat count: 0
 event20  POINTER_BUTTON    +4.39s	BTN_RIGHT (273) pressed, seat count: 1
 event20  POINTER_BUTTON    +4.39s	BTN_RIGHT (273) released, seat count: 0
 event20  POINTER_BUTTON    +5.46s	BTN_MIDDLE (274) pressed, seat count: 1
 event20  POINTER_BUTTON    +5.46s	BTN_MIDDLE (274) released, seat count: 0


Actual results:
The timestamps should differ slightly between the press and release events.
Comment 1 Peter Hutterer 2017-09-25 23:37:13 EDT
libinput-1.6.3-3.el7 is available in brew
Comment 4 Michael Boisvert 2018-01-09 16:13:32 EST
Using the reproducer in the description, I am able to see that the timestamps differ slightly between the press and release events:

-event4  POINTER_BUTTON    +1.24s	BTN_RIGHT (273) pressed, seat count: 1
 event4  POINTER_BUTTON    +1.34s	BTN_RIGHT (273) released, seat count: 0
 event4  POINTER_BUTTON    +2.22s	BTN_RIGHT (273) pressed, seat count: 1
 event4  POINTER_BUTTON    +2.29s	BTN_RIGHT (273) released, seat count: 0
 event4  POINTER_BUTTON    +3.15s	BTN_RIGHT (273) pressed, seat count: 1
 event4  POINTER_BUTTON    +3.18s	BTN_RIGHT (273) released, seat count: 0
 event4  POINTER_BUTTON    +6.07s	BTN_MIDDLE (274) pressed, seat count: 1
 event4  POINTER_BUTTON    +6.16s	BTN_MIDDLE (274) released, seat count: 0
Comment 7 errata-xmlrpc 2018-04-10 07:50:39 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0736

Note You need to log in before you can comment on or make changes to this bug.