Bug 98557 - Two-finger scrolling: delay between finger movement and actual scrolling
Summary: Two-finger scrolling: delay between finger movement and actual scrolling
Status: RESOLVED NOTOURBUG
Alias: None
Product: Wayland
Classification: Unclassified
Component: libinput (show other bugs)
Version: 1.5.0
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-02 21:32 UTC by Eugene G.
Modified: 2016-11-03 22:54 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
two-finger scroll up (16.54 KB, text/plain)
2016-11-02 21:32 UTC, Eugene G.
Details

Description Eugene G. 2016-11-02 21:32:24 UTC
Created attachment 127705 [details]
two-finger scroll up

There is a very noticeable delay between start of two-finger movement and an actual scroll event. This doesn't happen on X11 with synaptics driver.
I'm using Lenovo Thinkpad T440 (OS: Arch, Gnome/Wayland, libinput version: 1.5.0-1).
Attachment is evemu recording in which i place two fingers and move up.

###### udevadm info /sys/class/input/event13 ######

P: /devices/platform/i8042/serio1/input/input13/event13
N: input/event13
E: DEVNAME=/dev/input/event13
E: DEVPATH=/devices/platform/i8042/serio1/input/input13/event13
E: ID_BUS=i8042
E: ID_INPUT=1
E: ID_INPUT_HEIGHT_MM=66
E: ID_INPUT_TOUCHPAD=1
E: ID_INPUT_TOUCHPAD_INTEGRATION=internal
E: ID_INPUT_WIDTH_MM=97
E: LIBINPUT_DEVICE_GROUP=11/2/7/1b1:isa0060/serio1
E: LIBINPUT_MODEL_SYNAPTICS_SERIAL_TOUCHPAD=1
E: MAJOR=13
E: MINOR=77
E: SUBSYSTEM=input
E: USEC_INITIALIZED=2378449


##### cat /sys/class/dmi/id/modalias #####

dmi:bvnLENOVO:bvrGJET84WW(2.34):bd06/22/2015:svnLENOVO:pn20B6005JUS:pvrThinkPadT440:rvnLENOVO:rn20B6005JUS:rvr0B98401PRO:cvnLENOVO:ct10:cvrNotAvailable:


##### physical touchpad dimensions #####

100x70 mm
Comment 1 Peter Hutterer 2016-11-03 00:57:19 UTC
How big do you think the delay is? in mm or time?
Comment 2 Eugene G. 2016-11-03 01:20:11 UTC
Feels like it's around 5-7mm.
Comment 3 Peter Hutterer 2016-11-03 03:17:47 UTC
try the hwdb entry here: https://github.com/systemd/systemd/pull/4149
I have the same laptop (T440s, same touchpad hardware) with this applied and the scroll delay is the intended 2mm only
Comment 4 Eugene G. 2016-11-03 15:37:53 UTC
I tried out the entry you provided as well as the one generated by touchpad-edge-detector.
Cursor speed is bit different but there is still scroll delay compared to synaptics. It feels not as sensitive to small swipes.
Comment 5 Eugene G. 2016-11-03 19:10:24 UTC
Is it possible that this problem is related to gnome? I just tried plasma under wayland and the issue is gone (even cursor movement feels kinda smoother).
Comment 6 Peter Hutterer 2016-11-03 21:33:01 UTC
shouldn't be different, it's libinput that decides when scrolling kicks in. the only difference could be if gnome doesn't immediately forward the scroll events.

grab libinput from git://git.freedesktop.org/git/wayland/libinput and build it with the gtk3-devel package installed. That gives you ./tools/event-gui. Run that as root and scroll. This tool takes events straight from libinput, so if you see the two green bars moving as expected, then the delay really is in gnome somewhere.
Comment 7 Eugene G. 2016-11-03 22:48:25 UTC
Yup, it's definitely somewhere in gnome. Test application responds to scroll immediately.
Comment 8 Peter Hutterer 2016-11-03 22:54:50 UTC
ok. I think we should close this bug now, looks like comment #3 fixes the underlying issue and for the GNOME bug please file one against mutter. Bonus points for pasting the bug link in here afterwards ;)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.