XPS13 L322X Bionic (daily dev) touchpad laggy

Bug #1746740 reported by Bib
46
This bug affects 8 people
Affects Status Importance Assigned to Milestone
libinput
Fix Released
Medium
libinput (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Bionic by Daniel van Vugt

Bug Description

Also, all function keys work as expected, even F6 (keyboard 3-states backlight), but OSD picture for this last feature randomly auto-triggers.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.13.0-25-generic 4.13.0-25.29
ProcVersionSignature: Ubuntu 4.13.0-25.29-generic 4.13.13
Uname: Linux 4.13.0-25-generic x86_64
ApportVersion: 2.20.8-0ubuntu7
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 1876 F.... pulseaudio
CasperVersion: 1.388
CurrentDesktop: ubuntu:GNOME
Date: Thu Feb 1 14:05:22 2018
LiveMediaBuild: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180201)
MachineType: Dell Inc. XPS L322X
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: file=/cdrom/preseed/username.seed boot=casper initrd=/casper/initrd.lz quiet splash --- debian-installer/language=fr keyboard-configuration/layoutcode?=fr keyboard-configuration/variantcode?=oss
RelatedPackageVersions:
 linux-restricted-modules-4.13.0-25-generic N/A
 linux-backports-modules-4.13.0-25-generic N/A
 linux-firmware 1.170
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/28/2013
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A10
dmi.board.name: 0PJHXN
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: 0.1
dmi.modalias: dmi:bvnDellInc.:bvrA10:bd08/28/2013:svnDellInc.:pnXPSL322X:pvr:rvnDellInc.:rn0PJHXN:rvrA00:cvnDellInc.:ct8:cvr0.1:
dmi.product.family: ChiefRiver System
dmi.product.name: XPS L322X
dmi.sys.vendor: Dell Inc.

Revision history for this message
Bib (bybeu) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.15 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Bib (bybeu) wrote :

I have not this issue since original kernel 3.xx series in Trusty up to the current 4.4.0-111.
The issue appeared in the live session (not installed)

Revision history for this message
Bib (bybeu) wrote :

So I don't know howto test the upstream kernel with Bionic in this machine without overwriting my currently installed Trusty. Or is there an available Bionic iso with upstream or a tuto on howto replace the kernel in the iso ?

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Just install the kernel package. You can remove it anytime. It won't affect your installed system.

Revision history for this message
Bib (bybeu) wrote :

Ah, ok, I thought it was a bug with XPS13-AND-BIONIC-AND-K4.13.
I installed in my XPS13 Trusty and I have no issue with the touchpad. Maybe I didn't wait enough to make sure F6-OSD is bug-free. Maybe these 2 problems are only related to live-USB ?

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Do you have the issue on Trusty with Linux kernel v4.15?

Revision history for this message
Bib (bybeu) wrote :

Just tried : neither this issue with Trusty K4.4.0-112 nor K4.15.1 real installs.
Only met it with Bionic-dev-Live-K4

Revision history for this message
Bib (bybeu) wrote :

Just tried : neither this issue with Trusty K4.4.0-112 nor K4.15.1 real installs.
Only met it with Bionic-dev-Live-K4. I also tried the Live USB with acpi_osi=Linux as seen (but not mandatory) in my usual /etc/default/grub, with no difference : touchpad cursor still laggy, often locks for a while. I noticed that when the touchpad is glued in position on the screen, it is still responsive on right and bottom sides, although the option ~scroll on sides~ is disabled by default in Devices settings. Changing the option as no effect, neither as disabling default enabled 2-Fingers-Scroll.
An other strange issue I met with the Live USB : when I reboot from Live, I can't go back in Live with my BIOS F12 Select boot drive: even when I select USB Live, then the usual grub menu is displayed. I have to completely shutdown
the laptop so that USB boot selection works, when this is not the case when I reboot from usual installed Trusty.
I ran these tests with a new Bionic USB stick created from a Live Bionic session, itself running from the first Bionic key (that was created from an real Xenial install on another machine).

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

So it's more likely to be a userspace issue.

Revision history for this message
Bib (bybeu) wrote :

The Eleventh Commandment ?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Bib,

Comment #11 is probably missing because people can hide their own comments if they make a mistake etc.

A laggy touchpad is probably because you have an old version of libinput installed. The lag is mostly fixed in the latest libinput version so please tell us what version of package 'libinput10' you have installed.

If you have an old version then this bug would be a duplicate of bug 1696929.

If you have the current version the this bug may be similar to the touchpad range bug 1586683.

Changed in libinput (Ubuntu):
status: New → Incomplete
Revision history for this message
Bib (bybeu) wrote :

Daniel, comment #11 was probably a double post.
libinput10 is the one in the live

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please tell us the exact version that is problematic:

dpkg -s libinput10 | grep Version

Revision history for this message
Bib (bybeu) wrote :

I read the touchpad range bug 1586683. This is not the same as my laptop is Dell XPS13 developper edition (L322X), and at ~best~ I could say the behaviour is reversed : my TP would have normal sensitivity on right+bottom, and poor on center. Although this doesn't look like a sensitivity issue, merely some usb buffer overflow or irq or I don't know what, as I can move the cursor touching the central part on the touchpad, the cursor moves OK then still sliding my finger as usual the cursor stops moving. I have then to wait for a while to recover the ability to make another move

Revision history for this message
Bib (bybeu) wrote :

dpkg -s libinput10 | grep Version
1.9.4-2ubuntu1

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the information.

So that we can confirm if this is a bug in libinput or the kernel, please try this:

1. sudo apt install xserver-xorg-input-synaptics
2. Log out
3. Log in to "Ubuntu on Xorg".
4. Verify the driver has changed by running "synclient" and you should see lots of information.

Does that fix the issue?

Revision history for this message
Bib (bybeu) wrote :

No, it doesn't : E: unable to find package xserver-xorg-input-synaptics
even after I ran a pass of the updates-manager: e.g there was a kernel update from 4.13.25 to 4.13.32 but once installed an rebooted, no way to select it, and sudo update-grub fails with ~can't find /cow~
Remember this is a live-USB. Also, the startup-disk-creator doesn't allow anymore to create a persistent r/w partition to store files.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

OK then. We can either wait for you to install Ubuntu-proper, or you can progress the issue with libinput developers immediately by going here:

  https://bugs.freedesktop.org/enter_bug.cgi?product=wayland&component=libinput

Please let us know when you have either tested xserver-xorg-input-synaptics, or have logged an upstream bug using the above link.

Revision history for this message
In , Bib (bybeu) wrote :

Hi
From there https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1746740
the touchpad frequently locks
This is with libinput10

Revision history for this message
In , Bib (bybeu) wrote :

THe version is 1.9.4-2

Revision history for this message
Bib (bybeu) wrote :

https://bugs.freedesktop.org/show_bug.cgi?id=104990
I can't proper install before this is fixed because it will break my system. I'd need to buy another M2 SSD to perform this.

Revision history for this message
Bib (bybeu) wrote :

Edit : it seems there are yet other bugs filled about soething around this.

Changed in libinput (Ubuntu):
status: Incomplete → New
Changed in libinput:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Daniel van Vugt (vanvugt) wrote :

Please clarify which version is laggy.

Above you mention "1.9.4-2" however on Launchpad it was said "1.9.4-2ubuntu1" [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1746740/comments/18]

Revision history for this message
In , Bib (bybeu) wrote :

Yes
dpkg -s libinput10 | grep Version
Version: 1.9.4-2ubuntu1

I could not select this version in the droplist above, and also I'm not sure it is Wayland as I read ubuntu 18.04 defaults to Xorg

Changed in libinput:
status: Confirmed → Incomplete
Revision history for this message
In , Bib (bybeu) wrote :

dmesg|grep -i "ps/2"
[ 0.805591] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
[ 0.813505] mousedev: PS/2 mouse device common for all mice
[ 2.008952] input: CyPS/2 Cypress Trackpad as /devices/platform/i8042/serio1/input/input6

Revision history for this message
In , Bib (bybeu) wrote :

[EDIT] Above log if from K4.4.0-generic (ubuntu 14.04.5)

Revision history for this message
In , Bib (bybeu) wrote :

[EDIT] Above log if from K4.4.0-112-generic (ubuntu 14.04.5)

Changed in libinput:
status: Incomplete → Confirmed
Revision history for this message
In , Bib (bybeu) wrote :

I found these additional information in Dell XP13-L322X specifications :

Touchpad
Resolution: 250 cpi
Size:
Width: 96,8 mm (3,81")
Heitgh: 58,8 mm (2,31")

Please notice that I was not able to identify the device on Cypress web site, and that resolution information supplied by Dell for the L322X is very different than the one they give for the next very closely marketed model (XPS13-9333), which is:
Touchpad
Resolution:
Horizontal: 1275 dpi
Vertical: 1656 dpi
Size (same as L322X):
Width: 96,8 mm (3,81")
Heitgh: 58,8 mm (2,31")

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

Can you try with 1.10.3 please, this has had some improvements for the hysteresis that should make the device feel more responsive. If it's not fixed, please specify exactly what 'laggy' means in this context, thanks.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in libinput (Ubuntu):
status: New → Incomplete
Revision history for this message
Silvio Bierman (sbierman) wrote :

I have upgraded to Bionic recently and my touchpad immediately became close to unusable. The sensitivity was WAY too high so the cursor could only be moved with extremely low pressure. Anything beyond seemed to be considered a palm pressure or something. In addition, the touchpad buttons had become unusable wrt. click/hold+swipe to drag stuff around. The problems occurred both in Wayland and XOrg.

I did a clean Bionic reinstall which did not help. Then I reinstalled Artful and the problems where resolved. After a subsequent upgrade to Bionic the problem reappeared.

Revision history for this message
Silvio Bierman (sbierman) wrote :

Sorry for being trigger happy...

I am using a Dell XPS13.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Silvio, unless you're using the L322X model, please log a new bug.

Revision history for this message
Silvio Bierman (sbierman) wrote :

Yes, it is an XPS13 L322X model.

Changed in libinput:
status: Confirmed → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Silvio,

Still, it sounds like you're reporting a different problem. This bug is about the touchpad being laggy (on an older version of libinput).

Please log a new bug for your issue by running this command on the machine:

  ubuntu-bug libinput

Revision history for this message
Silvio Bierman (sbierman) wrote :

Well. I had reverted to Artful so that was easier said than done. I upgraded to Bionic once more. That brought back the problem but "ubuntu-bug libinput" then complained that I did not have that package installed. I did not know what libinputxxx package to use and I got tired of soft-stroking my touchpad and reinstalled Artful once more. I may have more time to spend on this the coming weeks and then I will try again.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sorry, maybe try:

  ubuntu-bug libinput10

Revision history for this message
In , Bib (bybeu) wrote :

Hi. I did the test with latest 18.04 daily ubuntu with libinput10 1.10.3.
After reading the post of Silvio here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1746740/comments/25 I feel I have to reword "laggy": "The sensitivity was WAY too high so the cursor could only be moved with extremely low pressure" he says, far better than I did. Usual pressure seems to lock the cursor in place after a very short movement.
I'd add I didn't reach to start a rectangle selection/capture with the touchpad, what I can usually do with quick double-tap to set the 1srt corner then move the cursor to the opposite corner where I want. I'll give another try within minutes and come back here only to say I succeeded.

Revision history for this message
Bib (bybeu) wrote :

Silvio, I gave a try with latest daily Bionic which comes with libinput10 1.10.3 and the result is exactly the way you describe. My "laggy" word is not accurate.

Revision history for this message
In , Bib (bybeu) wrote :

Please ignore last 2 sentences: I can do selection with touchpad, with double-tap with very ultra-light light pressure : it seem this device has hidden capabilities, pressure dependant, that interfere with simple move feature.

Revision history for this message
Silvio Bierman (sbierman) wrote :

Thank you for this information Bib, saves me a lot of time. And this confirms we are talking about the same bug.

I am using Wayland exclusively and have libinput10 1.8.4-0ubuntu0.17.10.1 installed. Touchpad is working fine. So this is something that was introduced with the version that comes with Bionic (or an intermediate one).

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

Run the libinput measure touch-size tool please, or the libinput measure touchpad-pressure. Both as root, only one is likely to work on your device, depending on hw capabilities.

https://wayland.freedesktop.org/libinput/doc/latest/touchpad_pressure.html

Revision history for this message
Ekinoks (ekinoks) wrote :

Hello,

Same problem here with my XPS13 L322X: I installed the daily dev version yesterday.
The installation of xserver-xorg-input-synaptics reduces the problem (the mouse is a little more fluid, but does not correct it).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Upstream is awaiting feedback to diagnose this problem. Please comment there:

https://bugs.freedesktop.org/show_bug.cgi?id=104990

Revision history for this message
In , Scv-ekinoks-d (scv-ekinoks-d) wrote :

Hello,

I have the same probleme here with my XPS L322X.
Where is the result of touchpad-pressure:

ekinoks@XPS-L322X: sudo libinput measure touchpad-pressure
Using CyPS/2 Cypress Trackpad: /dev/input/event6

Ready for recoding data.
Pressure range used: 25:30
Palm pressure range used: 130
Place a single finger on the touch to measure pressure values.
Ctrl+C to exit

Sequence 2397 pressure: min: 56 max: 159 avg: 101 median 100 tags: down palm
Sequence 2398 pressure: min: 57 max: 154 avg: 111 median 116 tags: down palm
Sequence 2399 pressure: min: 55 max: 146 avg: 101 median 101 tags: down palm
Sequence 2400 pressure: min: 18 max: 117 avg: 72 median 71 tags: down
Sequence 2401 pressure: min: 39 max: 130 avg: 102 median 102 tags: down

I think it's because of "down palm" that the mouse freezes.

Revision history for this message
Bib (bybeu) wrote :

How do I do this ? I booted a live stick but libinput-tools isn't there and there is no way to run tests the good old way when disk-creator allowed to have a user partition or install software in the live session. How can I run these tests please without breaking my Trusty ?

Changed in libinput:
status: Incomplete → Confirmed
Revision history for this message
seanlano (seanlano) wrote :

I've also got an L322X - and am experiencing this same issue, touchpad seems to lock up after some time, and is also impossible to click and drag with.

I've just installed a fresh Bionic system onto my machine, and have the latest updates. That did not seem to help.

I installed "xserver-xorg-input-synaptics" and now the touchpad seems to work fine when I use the Xorg session. I haven't tried the Wayland session.

Revision history for this message
In , Bib (bybeu) wrote :
Download full text (9.0 KiB)

Here my own measures:
ubuntu@ubuntu:~$ sudo libinput measure touch-size
Using CyPS/2 Cypress Trackpad: /dev/input/event6

Error: device does not have ABS_MT_TOUCH_MAJOR
ubuntu@ubuntu:~$ sudo libinput measure touchpad-pressure
Using CyPS/2 Cypress Trackpad: /dev/input/event6

Ready for recording data.
Pressure range used: 25:30
Palm pressure range used: 130
Place a single finger on the touchpad to measure pressure values.
Ctrl+C to exit

Sequence 145 pressure: min: 59 max: 131 avg: 111 median: 122 tags: down palm
Sequence 146 pressure: min: 69 max: 134 avg: 122 median: 125 tags: down palm
Sequence 147 pressure: min: 56 max: 90 avg: 78 median: 88 tags: down
Sequence 148 pressure: min: 31 max: 113 avg: 90 median: 99 tags: down
Sequence 149 pressure: min: 42 max: 120 avg: 94 median: 103 tags: down
Sequence 150 pressure: min: 44 max: 119 avg: 98 median: 109 tags: down
Sequence 151 pressure: min: 76 max: 123 avg: 107 median: 114 tags: down
Sequence 152 pressure: min: 48 max: 119 avg: 95 median: 106 tags: down
Sequence 153 pressure: min: 60 max: 107 avg: 90 median: 98 tags: down
Sequence 154 pressure: min: 77 max: 100 avg: 88 median: 94 tags: down
Sequence 155 pressure: min: 66 max: 94 avg: 83 median: 93 tags: down
Sequence 156 pressure: min: 39 max: 76 avg: 63 median: 70 tags: down
Sequence 157 pressure: min: 39 max: 108 avg: 87 median: 97 tags: down
Sequence 158 pressure: min: 29 max: 89 avg: 69 median: 84 tags: down
Sequence 159 pressure: min: 31 max: 91 avg: 69 median: 81 tags: down
Sequence 160 pressure: min: 10 max: 88 avg: 58 median: 62 tags: down
Sequence 161 pressure: min: 31 max: 87 avg: 66 median: 71 tags: down
Sequence 162 pressure: min: 23 max: 98 avg: 71 median: 80 tags: down
Sequence 163 pressure: min: 52 max: 102 avg: 81 median: 86 tags: down
Sequence 164 pressure: min: 37 max: 80 avg: 61 median: 65 tags: down
Sequence 165 pressure: min: 34 max: 87 avg: 68 median: 77 tags: down
Sequence 166 pressure: min: 42 max: 91 avg: 74 median: 78 tags: down
Sequence 167 pressure: min: 29 max: 97 avg: 76 median: 88 tags: down
Sequence 168 pressure: min: 34 max: 96 avg: 77 median: 88 tags: down
Sequence 169 pressure: min: 36 max: 90 avg: 72 median: 76 tags: down
Sequence 170 pressure: min: 53 max: 93 avg: 79 median: 87 tags: down
Sequence 171 pressure: min: 70 max: 118 avg: 100 median: 108 tags: down
Sequence 172 pressure: min: 40 max: 90 avg: 73 median: 80 tags: down
Sequence 173 pressure: min: 40 max: 94 avg: 76 median: 81 tags: down
Sequence 174 pressure: min: 42 max: 97 avg: 78 median: 86 tags: down
Sequence 175 pressure: min: 31 max: 96 avg: 73 median: 82 tags: down
Sequence 176 pressure: min: 36 max: 94 avg: 70 median: 78 tags: down
Sequence 177 pressure: min: 41 max: 73 avg: 61 median: 66 tags: down
Sequence 178 pressure: min: 10 max: 10 avg: 10 median: 10 tags:
Sequence 179 pressure: min: 25 max: 56 avg: 44 median: 50 tags: down
Sequence 180 pressure: min: 28 max: 69 avg: 54 median: 56 tags: down
Sequence 181 pressure: min: 26 max: 78 avg: 61 median: 72 tags: down
Sequence 182 pressure: min: 41 max: 96 avg: 77 med...

Read more...

Revision history for this message
Bib (bybeu) wrote :

I posted my own touchpad sensitivity measures at freedesktop link above.

@all you guy using a L322X who tried live USB, did you also hit the issue where OSD notice popup for keyboard backlight that triggers on it's own sometimes ?

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

> I think it's because of "down palm" that the mouse freezes.

indeed, that would cause the touch to be ignored.

This is an iterative process and I need you to play around with the touch thresholds until you come up with one that works reliably, both for finger detection and palm detection. Please see https://wayland.freedesktop.org/libinput/doc/latest/touchpad_pressure.html#touchpad_pressure_hwdb for the details.

Ideally, the pressure thresholds should reliably detect touches but ignore accidental light brushes.

Revision history for this message
seanlano (seanlano) wrote :

Yeah I also see the OSD keyboard backlight issue - but I actually have been seeing that from time to time even in Artful and possibly before. I assumed it was my hardware playing up, but seems like maybe not. At any rate, it's not very frequent for me - only a couple of times after boot.

Revision history for this message
Bib (bybeu) wrote :

Hi seanlano. Did you report a bug here for this (I ask to know if I can "me too") ?

Revision history for this message
seanlano (seanlano) wrote :

Hey Bib, I have not filed a bug for the backlight OSD yet - I was too lazy ;) I'll "me too" one if you open it though.

Revision history for this message
seanlano (seanlano) wrote :

I've followed the step linked to in https://bugs.freedesktop.org/show_bug.cgi?id=104990 and have found that using 'libinput measure touchpad-pressure --touch-thresholds=105:60 --palm-threshold=230' seemed to work well.

I was not able to format it into the hwdb file, however, so couldn't actually test it on my machine.

Revision history for this message
In , seanlano (seanlano) wrote :

I also have a Dell XPS13 L322X, I've followed the steps linked to and have found that using 'libinput measure touchpad-pressure --touch-thresholds=105:60 --palm-threshold=230' seemed to work well.

I was not able to format it into the hwdb file, however, so couldn't actually test it on my machine.

Revision history for this message
In , seanlano (seanlano) wrote :

I should note though that I don't really understand the full implications of the lower and upper thresholds - does "down" translate to a click? Or is "down" the minimum pressure required to actually move the cursor? If the latter, the values are much too high - I was thinking it was the former.

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

It's a so-called schmitt trigger, pressure needs to go above "down" to be detected as touch and below "up" to be released again. down > up to make the touch more resilient.

libinput:name:*CyPS/2 Cypress Trackpad:dmi:*svnDell:*pnXPSL322X*
 LIBINPUT_ATTR_PRESSURE_RANGE=105:60
 LIBINPUT_ATTR_PALM_PRESSURE_THRESHOLD=230

Something like this should work. Check /sys/class/dmi/id/modalias and adjust the dmi bit accordingly, make sure the svn and pn bits match. https://wayland.freedesktop.org/libinput/doc/latest/faq.html#faq_hwdb_changes

I'll need you to figure out that hwdb match though, I can't test this locally without the same machine so anything I'd merge is prone to be buggy.

Revision history for this message
In , seanlano (seanlano) wrote :

Created attachment 138752
HWDB entry for XPS13 L322X touchpad

OK, I've done some playing and have the attached config - it seems to work pretty well for me. I've set the "palm detection" to be quite high, I was finding that when I did a click-drag it was triggering the palm detection.

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

Looks correct, thanks. Can you re-attach this as signed-off, git-formatted patch? This way I can directly apply it and you get all the credit and glory that comes with that ;)

Revision history for this message
In , seanlano (seanlano) wrote :

Created attachment 138781
Dell XPS13 L322X touchpad quirks

Sure, I think this should do it - this would be first patch submitted, let me know if it needs to be changed

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

Thanks, pushed

commit 69fe467fbacbc8376d548c335c79cca71b606b07
Author: Sean Lanigan <>
Date: Thu Apr 12 21:17:00 2018 +1000

     Add Dell XPS13 L322X touchpad quirks

https://wayland.freedesktop.org/libinput/doc/latest/reporting_bugs.html#fixed_bugs

Revision history for this message
seanlano (seanlano) wrote :

OK, I've worked with the Freedesktop libinput upstream team and have a patch to fix this issue: https://bugs.freedesktop.org/show_bug.cgi?id=104990

Revision history for this message
In , Bib (bybeu) wrote :

Thank you very much Sean (and freedesktop team), you were faster than I could : I've finished yesterday with fighting to have a persistent live usb key to work on this issue :)

Revision history for this message
In , Bib (bybeu) wrote :

@Sean
I could not have your tweak to work on my own laptop. I had to change it this way so that it matches:

+libinput:name:*CyPS/2 Cypress Trackpad:dmi:*svnDell*:pnXPSL322X*
+ LIBINPUT_ATTR_PRESSURE_RANGE=30:20
+ LIBINPUT_ATTR_PALM_PRESSURE_THRESHOLD=254
+
 ##########################################
 # Elantech
 ##########################################
 (only removed the "DellSystem" substring in :pn....)

Maybe the dmi id was changed in my bios (latest A10 IIRC)

cat /sys/class/dmi/id/modalias
dmi:bvnDellInc.:bvrA10:bd08/28/2013:svnDellInc.:pnXPSL322X:pvr:rvnDellInc.:rn0PJHXN:rvrA00:cvnDellInc.:ct8:cvr0.1:

  Maybe :pn*XPS*L322X* would be wide & precise enough if Dell guys change this in a new bios release, e.g. DellSystemXPS[13]L322X.
Or lighter :pn*L322X*

Revision history for this message
Bib (bybeu) wrote : Re: [Bug 1746740] Re: XPS13 L322X Bionic (daily dev) touchpad laggy

Thank you Sean. I tried and needed to change a bit your tweak so that it
matches :
https://bugs.freedesktop.org/show_bug.cgi?id=104990#c23
Been a pure newb and the trial was so hard for me, I don't feel I'm
courageous enough to push anything in the git.
Can I hope you'll do it or do I have to work this myself for the community?

Best thanks and regards
Fabrice

Le 13/04/2018 à 10:35, seanlano a écrit :
> OK, I've worked with the Freedesktop libinput upstream team and have a
> patch to fix this issue:
> https://bugs.freedesktop.org/show_bug.cgi?id=104990
>

Changed in libinput:
status: Confirmed → Fix Released
Revision history for this message
In , seanlano (seanlano) wrote :

Created attachment 138840
Dell XPS13 L322X touchpad quirks (updated to match more variants)

As requested, I've modified my patch just slightly so that it matches more L322X machines. I've tested it and it still works on my machine.

Revision history for this message
In , seanlano (seanlano) wrote :

Created attachment 138841
Dell XPS13 L322X touchpad quirks (updated to match more variants)

Sorry, uploaded the wrong one - that was just the old patch again. Attached with *this* upload is the more generic version.

Can my previous patch be reverted, and replaced with this one instead?

Revision history for this message
seanlano (seanlano) wrote :

I've updated my patch to libinput, in https://bugs.freedesktop.org/show_bug.cgi?id=104990#c25

Hopefully the devs there will shortly be able to revert the older patch, apply the new one, and then it will make it's way into Bionic.

Revision history for this message
Bib (bybeu) wrote :

I'm not skilled at all with hwdb & libinput syntax : didn't you forget
the "pn" substring before *XPSL322X* ?

Le 15/04/2018 à 05:02, seanlano a écrit :
> I've updated my patch to libinput, in
> https://bugs.freedesktop.org/show_bug.cgi?id=104990#c25
>
> Hopefully the devs there will shortly be able to revert the older patch,
> apply the new one, and then it will make it's way into Bionic.
>

Revision history for this message
seanlano (seanlano) wrote :

On my machine, the complete string is dmi:bvnDellInc.:bvrA08:bd04/18/2013:svnDellInc.:pnDellSystemXPSL322X:pvr:rvnDellInc.:rn0WW7PG:rvrA00:cvnDellInc.:ct8:cvr0.1 - so the *XPSL322X* seems to still match. I'm not sure on the syntax either really, but it seemed to work for me at least - did it work for you?

Revision history for this message
Bib (bybeu) wrote :

It does.
You see, I believe bvr in the string surely stands for BIOS Vendor
Release. You are @A08, and I @A10. This may be the reason for a
different "pn" returned string for the exactly same computer.
Silly Vendor
Thank you Sean

Le 15/04/2018 à 12:24, seanlano a écrit :
> On my machine, the complete string is
> dmi:bvnDellInc.:bvrA08:bd04/18/2013:svnDellInc.:pnDellSystemXPSL322X:pvr:rvnDellInc.:rn0WW7PG:rvrA00:cvnDellInc.:ct8:cvr0.1
> - so the *XPSL322X* seems to still match. I'm not sure on the syntax
> either really, but it seemed to work for me at least - did it work for
> you?
>

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

Yup, all done, thanks for the update.

commit ea52b0d57571bf2ae35c7fc45967a6f804baac22
Author: Peter Hutterer <>
Date: Tue Apr 17 10:06:22 2018 +1000

     Revert "Add Dell XPS13 L322X touchpad quirks"

commit 5aec854ac315d91b284dd6299a1d5e66c62f08d2
Author: Sean Lanigan <>
Date: Sun Apr 15 12:17:00 2018 +1000

     Add Dell XPS13 L322X touchpad quirks

Revision history for this message
seanlano (seanlano) wrote :

I just tried the daily Live CD image for Bionic, but the patch to libinput doesn't seem to have made it in yet. What needs to happen for the fix to make it into Bionic?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It appears the fix is in libinput version 1.10.5, but bionic is shipping version 1.10.4.

https://lists.freedesktop.org/archives/wayland-devel/2018-April/037934.html
https://launchpad.net/ubuntu/+source/libinput

As today is release day for bionic, we can talk about patching the fix in after release. So to answer your question; what needs to happen is:

https://wiki.ubuntu.com/StableReleaseUpdates

Revision history for this message
Bib (bybeu) wrote :

It's a pity remembering this laptop was sold by Dell with Ubuntu 12.04, regards to Sputnik project. Something, anything else was forgotten?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That would have been between 2012 and 2014, during which time Ubuntu did not use libinput at all. We only started using libinput in Ubuntu in 2017.

You can go back to the old touchpad driver (it was sold with) if you're willing to use Xorg sessions only. Just install:

  sudo apt install xserver-xorg-input-synaptics

Revision history for this message
Bib (bybeu) wrote :

Oh, ok. I wasn't skilled enough to run all the tests freedesktop asked. I don't know if a single sample as given there by Sean IIRC is enough accurate for such a HID that may have its sensitivity range spread around some typical value supplied by the manufacturer. Then maybe it would be worth converting the values from xserver-xorg-input-synaptics to libinput as at least in my l322x, the touchpad was really easy to use.
Whatever, Thanks Ubuntu teams

Revision history for this message
seanlano (seanlano) wrote :

Damn, just missed out. :/ Thanks Daniel. :)

Looks like there's only very minor changes in 1.10.5, so judging by the criteria for SRU it shouldn't be too hard. I'll get onto a bug report for that at some point, it at least can (hopefully) make it into the 18.04.2 release Live CD. Will be a bit of a pain in the meantime.

Revision history for this message
seanlano (seanlano) wrote :

Opened a bug here: https://bugs.launchpad.net/ubuntu/+source/libinput/+bug/1767559

Haven't done an SRU request before, so we'll see how it goes.

seanlano (seanlano)
Changed in libinput (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

There doesn't seem to be anything committed yet:
https://launchpad.net/ubuntu/+source/libinput

Changed in libinput (Ubuntu):
status: Fix Committed → Triaged
importance: Undecided → Medium
no longer affects: linux (Ubuntu)
Revision history for this message
Shuhao (shuhao) wrote :

Not 100% certain if this is the right bug for this, but I'm seeing similar behaviour for trackpoints and touchpads on the Thinkpad X230 and Thinkpad X131e for at least Ubuntu (standard) and Ubuntu MATE.

Laggy is a vague term, but for me specifically I'm seeing that the cursor moves in a constant motion until I stop. Then after a small moment, it "jumps" a short/random distance in the direction of motion before I stopped. This is very very pronounced when using the trackpoint.

I see some similar reports on various corners on the internet that is similar to what I'm seeing:

- https://www.reddit.com/r/Ubuntu/comments/8fiiik/touchpad_not_working_properly_on_ubuntu_1804/
  - OP reports "The cursor moves slowly but suddenly very fast."

- https://askubuntu.com/questions/1030847/ubuntu-18-04-lts-intel-graphics-issue
- https://askubuntu.com/questions/1031447/why-is-my-ubuntu-18-04-lagging-and-there-is-also-difficulty-using-mouse-it-is

Revision history for this message
Shuhao (shuhao) wrote :

Just downloaded libinput 1.8.4 from artful-updates, compiled the debian package via debuild and installed it on my bionic system. Rebooted the system and I'm _fairly certain_ the laggy cursor problem gone away.

At this point I might be able to bisect the problem with different versions of libinput, as well as try the new release.

Revision history for this message
Shuhao (shuhao) wrote :

Tried all the way down to 1.9.2 (from https://salsa.debian.org/xorg-team/lib/libinput/tags), as well as 1.10.5. The issue for me on the trackpoint seem to be present on every version there.

I also think I notice a pattern, it seems that the "jump" occurs after I stop going from some coordinate A to B, right as I apply pressure on the trackpoint to move my cursor backwards. However, the jump occurs from B away from A, which is not expected and make it seem laggy/unintuitive.

Additionally, I noticed that the trackpoints with 1.9.2+ libinput are significant faster than 1.8.4.

I have a slow mo video of this that I can upload in the morning.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Shuhao: You are commenting on the wrong bug.

This bug is about Ubuntu 18.04 running on Dell L322X only.

Also, the L322X has no trackpoint.

tags: added: fixed-in-libinput-1.11
Changed in libinput (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libinput - 1.11.1-1

---------------
libinput (1.11.1-1) unstable; urgency=medium

  * New upstream release. (LP: #1764097, #1746740, #1761365)
  * tests: Add a simple smoketest to check that linking to libinput
    works. Thanks, Simon McVittie! (Closes: #893391)
  * watch: Update upstream git repo location.
  * symbols: Updated.

 -- Timo Aaltonen <email address hidden> Thu, 21 Jun 2018 22:14:02 +0300

Changed in libinput (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Ulrich P. Klein (klein) wrote :

Same problem here. Upgraded libinput10 and libinput-bin to 1.11.1-1. Problem still persists.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This bug is closed.

If you would like to discuss any ongoing problems then please create a new bug by running:

  ubuntu-bug libinput10

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Correction:

This bug is closed for users of libinput 1.11. It is still open and unresolved for users of libinput 1.10 (Ubuntu 18.04).

Only if you are already using libinput 1.11 and you still have problems should you open a new bug.

Revision history for this message
yoshiki2 (yoshiki2) wrote :

Would it be possible for this fix to be added to the L321x (the previous version to l322x)
They share the same hardware, Dell just updated the processors once they released the 322x. I upgraded from 17.10 to 18.04 (lts) and I am unable to click and drag, and I need to use the touchpad slowly..

Revision history for this message
In , yoshiki2 (yoshiki2) wrote :

As the L322X and the L321X share the same touchpad. Would it be possible to include this solution for the L321X? I upgraded to ubunu 18.04 from 17.10 and seems like the problem with the touchpad is the same. Exactly as described here..

Revision history for this message
In , yoshiki2 (yoshiki2) wrote :

I am trying to edit the modalias file, I even tried opening it as admin on nautilus.. however I keep getting the eror..
:"
Could not save the file “admin:///sys/devices/virtual/dmi/id/modalias”.
You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again."

Any ideas?

Revision history for this message
In , Peter Hutterer (peter-hutterer) wrote :

For reference, Alfredo's issue has moved to https://gitlab.freedesktop.org/libinput/libinput/issues/276

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It appears the bug fix is unique to the laptop model number "L322X" so won't work on L321X.

Please open a new bug for that by running:

  ubuntu-bug libinput

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Bug 1816947 is now tracking the L321X.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.