When using Wayland with touchpad, mouse jitters at the end of a motion

Asked by Simon

I first recorded this on askubuntu.com, and was told there to take this to launchpad.

https://askubuntu.com/questions/1014356/touchpad-pointer-jitters-shakes-when-done-moving

I feel like this is a touchpad sensitivity issue, but it's a bit weird to me.

This is happening on 18.04 (was trying it out to figure out an other bug, somehow still using it), Lenovo Thinkpad T440s

When I move my pointer using my touchpad, the pointer jitters if I leave my fingers resting on the touchpad after the move. If I lift my fingers up after the mouse move, the motion is smooth.

I've got a screen recording: https://i.imgur.com/A1HmjUa.mp4

Everything else about the touchpad motion is fine. It doesn't jump, it might be a bit slow, but it tracks fine. It's just this shaking thing that happens at the end of me moving the mouse. It has as cascading effect that if I am scrolling with the mouse sometimes the entire window that is being scrolled on shakes at the end of the motion.

When I plug in a USB mouse the shaking doesn't happen, which makes me think that it's a sensitive touchpad.

Switching to Xorg still has the problem, but there I can fix it by tweaking the VertHysteresis and HortHysteresis. I don't know how to do the same for Wayland (and questions on askubuntu seem to imply it's not possible because Wayland is jittery). Am I then stuck with a jittery mouse if I want to use Wayland?

Switching to Xorg loads me with different problems like the mouse being clicked while I'm typing.

sudo libinput list-devices
Device: SynPS/2 Synaptics TouchPad
Kernel: /dev/input/event5
Group: 8
Seat: seat0, default
Size: 108x95mm
Capabilities: pointer gesture
Tap-to-click: disabled
Tap-and-drag: enabled
Tap drag lock: disabled
Left-handed: disabled
Nat.scrolling: disabled
Middle emulation: disabled
Calibration: n/a
Scroll methods: *two-finger edge
Click methods: *button-areas clickfinger
Disable-w-typing: enabled
Accel profiles: none
Rotation: n/a

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Simon
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Do you have the latest BIOS?
Does it happen with a USB mouse?

Revision history for this message
Simon (simsamsom) said :
#2

Hey actionparsnip, thanks for responding.

When I use a USB mouse it does not happen. It also doesn't happen with the built in Thinkpad Track Point (the little red ball in the keyboard)

BIOS info (let me know if you need more):

$ sudo dmidecode --type 0
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x003B, DMI type 0, 24 bytes
BIOS Information
 Vendor: LENOVO
 Version: GJET78WW (2.28 )
 Release Date: 07/29/2014
 Address: 0xE0000
 Runtime Size: 128 kB
 ROM Size: 16 MB
 Characteristics:
  PCI is supported
  PNP is supported
  BIOS is upgradeable
  BIOS shadowing is allowed
  Boot from CD is supported
  Selectable boot is supported
  ACPI is supported
  USB legacy is supported
  BIOS boot specification is supported
  Targeted content distribution is supported
  UEFI is supported
 BIOS Revision: 2.28
 Firmware Revision: 1.9

And then additionally, for built-in pointing device :

$ sudo dmidecode --type 21
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0027, DMI type 21, 7 bytes
Built-in Pointing Device
 Type: Track Point
 Interface: PS/2
 Buttons: 3

Handle 0x0028, DMI type 21, 7 bytes
Built-in Pointing Device
 Type: Touch Pad
 Interface: PS/2
 Buttons: 2

Revision history for this message
Simon (simsamsom) said :
#3

Some more info: This is happening in both Wayland and in Xorg, but in Xorg if I use synaptics and set HorizHysteresis and VertHysteresis than it's not an issue. However, if I use libinput (which is _much_ better for other things) than I can't figure out how to set those values.

Revision history for this message
Simon (simsamsom) said :
#4

This is fixed for me in the latest set of downloaded updates.