XPS 13 9360 trackpad locks into scroll mode

Bug #1651635 reported by Jesse
106
This bug affects 18 people
Affects Status Importance Assigned to Milestone
Dell Sputnik
Invalid
Undecided
Unassigned
Linux
Invalid
Medium
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hello,

I'm running Linux on a Dell XPS 13 (9360) laptop.

I find that upwards of 10 times per day, my trackpad gets stuck in "scrolling" mode. Moving the trackpad won't move the X windows pointer, but will send scrolling events to the foreground window.

When the trackpad is locked in this mode, the touchscreen will still let me move the mouse cursor, as will an external mouse.

On Ubuntu 16.04 freshly restored from the Dell recovery image, I find that it's often difficult to get the trackpad to recover.

I do find that the issue happens less frequently on Dell's build of Ubuntu 16.04 than on other linux distributions and versions, but it still happens enough to significantly impact my ability to do productive work.

The issue does not occur when running Windows 10 on the same device.

I suspect that the issue may be related to palm detection or misdetecting the user's palm as a gesture to enable scrolling mode, but have no proof for this.

It seems that I'm often able to reproduce the issue by brushing the trackpad with my right palm.

On Ubuntu 16.10, with the latest shipped 4.8 kernel (Linux szx 4.8.0-30-generic #32-Ubuntu SMP Fri Dec 2 03:43:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux), with the extra xinput configuration below, I am able to get the trackpad to recover, simply by clicking the trackpad:

/usr/share/X11/xorg.conf.d/99-libinput.conf:

Section "InputClass"
    Identifier "libinput touchpad catchall"
    Driver "libinput"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Option "Tapping" "True"
    Option "DisableWhileTyping" "True"
    Option "NaturalScrolling" "False"
    Option "AccelProfile" "adaptive"
    Option "AccelSpeed" "0.05"
    Option "MiddleEmulation" "True"
    Option "ScrollMethod" "twofinger"
    # Option "ClickMethod" "clickfinger"
    Option "ClickMethod" "buttonareas"
EndSection

In my experience, the problem manifests using both the Xorg synaptics driver and the Xorg libinput driver.

root@szx:/etc/modprobe.d# xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech M570 id=10 [slave pointer (2)]
⎜ ↳ DLL075B:01 06CB:76AF Touchpad id=13 [slave pointer (2)]
⎜ ↳ ELAN Touchscreen id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ Power Button id=6 [slave keyboard (3)]
    ↳ Video Bus id=7 [slave keyboard (3)]
    ↳ Power Button id=8 [slave keyboard (3)]
    ↳ Sleep Button id=9 [slave keyboard (3)]
    ↳ Integrated_Webcam_HD id=12 [slave keyboard (3)]
    ↳ Intel Virtual Button driver id=14 [slave keyboard (3)]
    ↳ Intel HID events id=15 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard id=16 [slave keyboard (3)]
    ↳ Dell WMI hotkeys id=17 [slave keyboard (3)]
root@szx:/etc/modprobe.d#

Revision history for this message
Stefan (t2000t2000) wrote :

Hello,

this bug also affects me and I am on Arch Linux using libinput on Xorg with my Touchpad. However my Touchpad does not really recover by clicking if I use your configuration. Still it doesnt accept tap to click after recover and 2 or 3 finger gestures dont work either. Randomly touching and clicking eventually fixes it until it locks up in scroll mode again. This makes the touchpad practically unusable on this laptop.

If you need any configuration or debug information please let me know. Although I am not sure how exactly to reproduce the bug but it occurs almost everytime I use the touchpad for longer than 5 minutes so I will be able to reproduce...

Revision history for this message
alex zhang (alex.zhang) wrote :

Hello
  Thanks for the detail bug description and it is so helpful for digging the root cause through a correct direction.
  I also tried to reproduce this issue on XPS 13 (9360) laptop, the result is a little bit different, it can't move the X pointer after palm access to touch pad, and after that, 2 or 3 finger gestures don't work either. But it seems the system can recovery after a while or if switch the working window sometimes. Any way, the problem is confirmed exist and I personally think it is a driver related issue, since touch screen works fine, and the bottom half of pointer moving process touchpad triggered is the same as touch screen did. So the problem is happened in the top half of the pointer move process through X, it is the touchpad driver's responsibility to report pointer moving event though libinput to Xserver, and after that Xserver can generate the following commands to X graphic driver to show the move action to user.
  Sorry for the inconvenience you encounter in the work during using the 9360 xp13. We will update the touch pad driver ASAP.

Revision history for this message
Jesse (jesse-fsck) wrote :

Hi Alex,

I've actually seen it happen with both the libinput and synaptics driver. I also see it some of the time in Windows.

Do you have an estimate on when you might have a new touchpad driver to try?

Revision history for this message
alex zhang (alex.zhang) wrote :

Hi Jesse,
 Sorry for the arbitrary conclusion I made, that's just my personal idea, we are now working on it actually. I have to find the expert to analysis the details, can only answer your question as they reply to us. Hope you can understand :-) ,I will give you the update as I got the reply.

Revision history for this message
Stefan (t2000t2000) wrote :

Hi everyone,

I did the bios update from 1.0.7 to 1.2.3 yesterday and it _FEELS_ like the problem occurs less often. I don't know if thats just my feeling or the reality. What BIOS version are you using Jesse?

Revision history for this message
Jesse (jesse-fsck) wrote :

@Stefan - I'm on 1.2.3. I've seen the issue on 1.0.7 and 1.2.3. I've seen it on Fedora, Debian, Ubuntu and Windows 10, though definitely the least on Windows 10.

Revision history for this message
alex zhang (alex.zhang) wrote :

@Stefan, I am also using bios 1.2.3 to reproduce this issue.
@Jesse, as your experience on so many Linux OS release version, I guess it is a common issue of Xserver-Xorg. But I am not sure, I am going to try a01 manifest newer than a00 which is preload image, see if I can also encounter the problem. Will let you know later.

Revision history for this message
Jesse (jesse-fsck) wrote :

@alex - I see it in Xwayland on Fedora, too. And sometimes on Windows. So probably not an Xorg bug

Revision history for this message
alex zhang (alex.zhang) wrote :

@Stefan @Jesse Got you! Thanks :-)
 I tried to do online update operation, the problem is gone, could you please try it and see if you can still reproduce the issue? Here is the online update step.
   1 apt-get update
   2 apt-get dist-upgrade
   3 reboot.
 The kernel version is update from 4.4.0-23 to 4.4.0-41

Revision history for this message
Jesse (jesse-fsck) wrote :

Alex,

That was the very first thing I tried and did not resolve the issue for me.

Revision history for this message
alex zhang (alex.zhang) wrote :

Hi Jesse,
  You mean after the online update, kernel version is changed to 4.4.0-41, the problem still exist? Actually I did that and tested the touch pad, it was OK. There is one question by me, did you change anything the about the source? I mean the apt source file. Another question is have you ever change any system configuration of any module?

Revision history for this message
Stefan (t2000t2000) wrote :

@alex: As stated above I am running Arch Linux, not Ubuntu. So from what you are saying I get that you have written a kernel patch for the touchpad driver, is that correct? Can you provide the patch files somewhere? Because I need to patch the kernel by myself until your patch hits upstream, I guess...

Revision history for this message
alex zhang (alex.zhang) wrote :

@Stefan: Actually it is my mistake to claim the point that this is a driver related issue, I hadn't talked it over with the touchpad vender when I said that point. It's just my idea. Sorry for the arbitrary conclusion. Right now, I haven't got the touchpad vender's response. I am not sure weather XPS 9360 support Arch Linux or not. As far as I know, officially we support only Ubuntu. Anyway, I will try ways to get in touch with the hardware vender to see what they say and I am also curious about this issue, wanting to know what's going on here.
@Jesse: If I may, could you please do DELL Recovery on the specific machine which your got this issue then do online update? See if the issue can be fixed.:-)

Revision history for this message
Jesse (jesse-fsck) wrote :

Alex,

I have tried that.

It makes the problem happen less often, but the problem does not go away.

Xie xie!

Revision history for this message
alex zhang (alex.zhang) wrote :

@Jesse You are welcome(不客气 bu ke qi) :-). Could you tell me the fail rate? You can do some research about xinput, there are some feature lists and some of them are related to the palm access and touchpad settings, if you have already known that,please just ignore it. Xinput is what I learned from the very issue, just share, hope the configure is useful. It should be a X component. By default, unlike 1 finger point gesture ,the palm access is not supported and can't move the pointer,I think.

@Stefan @Jesse Since we are not sure whether the root cause is the touchpad driver. I will keep touching them and let you fellows know the news.

Revision history for this message
Jesse (jesse-fsck) wrote :

@Alex - The failure rate is different every day. Sometimes I can work for an hour with no problem. Sometimes, it happens so often I have to use an external mouse. (Tonight, I am using an external mouse because I need to get work done and the 9360 keeps getting stuck in "scroll" mode)

I don't think it's the palm settings. It seems more like the trackpad detecting that I have two fingers on it and then never detecting that I raised one or both of them.

I hope you can get some good news from the touchpad vendor before CNY. If we can't solve this, I have to RMA this laptop. It's not usable like this :/

Revision history for this message
alex zhang (alex.zhang) wrote :

Hi Jesse,
 Got you! We have one more question about your action of dell recovery, as you mentioned before, you tried other image on the same machine, this action could be flush dell recovery partition, if that, everything is different, including online update and dell recovery. Could you please clarify those facts?

Revision history for this message
Jesse (jesse-fsck) wrote :

@alex - When I reinstalled Dell's Ubuntu, I used the recovery image from a USB stick to recreate the recovery partition and the Ubuntu install.

ProSupport seems to think that maybe this is a hardware failure

Revision history for this message
Stefan (t2000t2000) wrote :

It's been a while, so what is the status on this bug? I still have it and it is VERY annoying. The laptop is basically UNUSABLE without an external mouse!

I noticed that it can be reproduced quite often if you try to drag a window with the touchpad, i.e. use the left button to click on the window's top border and then move it with another finger.

Revision history for this message
Stefan (t2000t2000) wrote :

Hello?

Seems like no one cares about this problem... I still have it and also tried to use the X11 Synaptics driver instead of libinput. But still the touchpad gets stuck into scroll mode from time to time.

So what is the status on this bug?

Revision history for this message
Grant (grantsewell) wrote :

For what it's worth, this issue is also present on Debian 9, Fedora 25, Arch, and Windows 10.

One interesting thing I noticed - when it's stuck in the "scroll mode", the cursor appears to move semi-normally, but as I move my finger from the left to right, the cursor freezes when I reach the center of the trackpad and only scrolls. While I can't reproduce what causes the initial erratic behavior, I am able to reproduce this action.

Revision history for this message
Paul Menzel (paulmenzel) wrote :

Hi. First of all, we are also experiencing this issue with a Dell XPS 13 9360 *with* a touchscreen. I met another user *with no* touchscreen, who does *not* have this problem.

Everybody in here, do you all have the touchscreen variant?

Secondly, I talked to the Dell support, and they suggested to blacklist the module `psmouse` [1]. We are currently testing this, but it’d be great, if you also tried that.

Under Ubuntu 16.04 in a terminal, you execute the commands below.

```
$ echo blacklist psmouse | sudo tee /etc/modprobe.d/xps13-9360.conf
$ sudo update-initramfs -u
```

During *very* light testing, the issue couldn’t be reproduced.

[1] https://www.dell.com/support/article/de/de/debsdt1/SLN304721/erratic-cursor-movement-on-the-xps-9360-with-ubuntu-1604-installed?lang=EN

Revision history for this message
Stefan (t2000t2000) wrote :

I DO have the touchscreen variant as well.

But blacklisting the psmouse modul does NOT help. I did that a couple of month ago and I am still suffering from the problem, it is really annoying!!!

Revision history for this message
John B (john-john-b) wrote :

I have the non-touch version of the 9360 and regularly hit this issue with Ubuntu 16.10.

One thing that I found is that if it gets stuck in scrolling mode, if I place a finger on the top left corner of the trackpad (with my left hand), I can then move the mouse and scroll like normal with my right hand. As soon as I remove my left finger, the trackpad goes nuts again.

Revision history for this message
Paul Menzel (paulmenzel) wrote :

Has somebody found a way already, on how to produce it reliably. The Dell support (internal ticket(?) number 945231287) asked to install Microsoft Windows 10, and to reproduce it there. Any ideas, how to reproduce it under Microsoft Windows 10? We were unable to reproduce it, in the last 30 minutes.

Revision history for this message
Paul Menzel (paulmenzel) wrote :

My colleague was unable to reproduce the issue with Windows 10 over the weekend.

Revision history for this message
Grant (grantsewell) wrote :

I too have a 9360 with the touchscreen.

The most consistent way I have reproduced the behavior is by putting the laptop into sleep, typically by shutting the lid. Upon resuming, this almost always results in erratic cursor behavior, whether jumping or scroll lock.

Currently observed on Arch Linux 4.10.3-1. I have psmouse blacklisted in modprobe.d.

Revision history for this message
Yuriy Vidineev (adeptg) wrote :

I have the same hardware (Dell 9360) and same (or similar) issue. Can please someone try to fix it when it occurs by:

rmmod i2c_designware_platform
rmmod i2c_designware_core
modprobe i2c_designware_core
modprobe i2c_designware_platform

Just to check if it's the same issue as mine

Revision history for this message
Paul Menzel (paulmenzel) wrote :

@adeptg, do you have a device with or without touchscreen?

Revision history for this message
Paul Menzel (paulmenzel) wrote :

@jesse-fsck, as the original reporter, do you still experience this issue?

Another status report, installing Ubuntu 16.04 LTS from the official Ubuntu sources, as the Dell image [1] is broken, with Linux 4.8.0-41-generic (4.8.0-41.44~16.04.1) and Unity, there hasn’t been one touchpad problem since yesterday evening. I moved windows around, scrolled in the Firefox Web browser, and also suspended and resumed the system.

[1] https://www.dell.com/support/home/us/en/19/Drivers/OSISO/linux

Revision history for this message
Yuriy Vidineev (adeptg) wrote :

@paulmenzel, with touchscreen. And I'm using pre-installed Ubuntu from Dell

Revision history for this message
Grant (grantsewell) wrote :

@adeptg - I just tried this. My cursor had locked into scroll and was jumping erratically. Unfortunately, it did not resolve the problem.

Revision history for this message
Yuriy Vidineev (adeptg) wrote :

@grantsewell - thanks for checking. Looks like I have different issue

Revision history for this message
Amnon Yekutieli (amyekut) wrote :

I am experiencing a somewhat different buggy touchpad behavior: it works most of the time, but quite often I lose response to finger motion.

This is only for moving the pointer and 2 finger scrolling - I disabled all other functions.

My system is a a Dell XPS 13 9360 running KUBUNTU 16.10.

The touchpad driver I have now is
  xserver-xorg-input-libinput

It seems to be less troublesome than the synaptics driver.

Here is the "xinput" information:

Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ DLL075B:01 06CB:76AF Touchpad

Any tips would be very welcome!!!

Revision history for this message
Yuriy Vidineev (adeptg) wrote :

@amyekut, have you tried

rmmod i2c_designware_platform
rmmod i2c_designware_core
modprobe i2c_designware_core
modprobe i2c_designware_platform

when it happened?

Revision history for this message
Amnon Yekutieli (amyekut) wrote :

@adeptg: I am not familiar with these operations. Are they supposed to unload and then reload some kernel modules? Will there be any feedback on the terminal?

Revision history for this message
Yuriy Vidineev (adeptg) wrote :

@amyekut, yes it's just modules reload. There shouldn't be any feedback if there is no errors

Revision history for this message
Amnon Yekutieli (amyekut) wrote :

@adeptg: I ran the two first commmands:
 rmmod i2c_designware_platform
 rmmod i2c_designware_core
just to see the effect, without a touchpad failure.

The result: the touchpad stopped activity altogether.

Then I ran the last two commands:
 modprobe i2c_designware_core
 modprobe i2c_designware_platform

This caused the touchpad to resume. But the activity was jumpy and not reliable:
- one finger movement caused scrolling instead of pointer motion.
- then the pointer got stuck (it is stuck now as I write and I had to connect a mouse).

To summarize: the sequence of commands made the touchpad go from ok to broken.

Revision history for this message
Yuriy Vidineev (adeptg) wrote :

@amyekut maybe it can also do a reverse: from broken to ok :)
As it works in my case

Revision history for this message
Amnon Yekutieli (amyekut) wrote :

@adeptg: I'll try it a few times when there's the malfunction.

Of course this is a totally ersatz trick. No idea how to get a genuine fix?

Grant (grantsewell)
Changed in dell-sputnik:
status: New → Invalid
Grant (grantsewell)
Changed in dell-sputnik:
status: Invalid → New
Esokrates (esokrarkose)
Changed in dell-sputnik:
status: New → Confirmed
117 comments hidden view all 197 comments
Revision history for this message
In , benjamin.tissoires (benjamin.tissoires-linux-kernel-bugs) wrote :

Thanks for raising this issue. I currently have a Dell XPS 9360 as a loaner so the timing is perfect. I haven't used it enough to trigger the issue on a vanilla kernel however.

Given that the scroll lock happens even if the hid-multitouch and i2c-hid modules are removed and re-added, I would *think* the issue is in user space, not in kernel space. The reason is that the last data in comment #110 show that the kernel is behaving properly by rejecting the ghost touches on my system if I replay the data.

Once the bug is triggered, could you ask the user who triggered it to rmmod i2c-hid and modprobe it back with debug=1, and attach the output of dmesg here? This should show the exact starting sequence of the bug, and we will be able to rule out if it is a kernel or a user space issue.

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Created attachment 260527
Scroll lock that vanishes very fast

My touchpad is in the state again that I can trigger the bug deliberately, but not a really nasty lock, only for a few seconds.

I started to load the module with debug mode, started scrolling with two fingers, released one finger and it kept scrolling. I even removed the finger touched again to move the cursor but it still was in scroll mode. The issue resolved itself again without any click.

Hope you can find something in there, at the moment the locks only last very shortly for me.

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Created attachment 260545
kern.log from events in the video

The touchpad started misbehaving again, but not as badly as it could be.
I started to film the problem, see

https://www.youtube.com/watch?v=HpAWC8imIcc

In the video I first show off the scroll lock happening, then I run a script that reloads the i2c-hid module with debug info and shows a timestamp every second, for you to get a better understanding of what happened at which point in time in the attached kern.log file.

You can also see the mouse cursor jumping at 0:50.

Revision history for this message
In , benjamin.tissoires (benjamin.tissoires-linux-kernel-bugs) wrote :

Thanks for both logs and the video. This makes things easier to see and understand.

The first log did show a ghost touch on the upper right corner of the touchpad, but I wasn't sure if you accidentally touched this part of the touchpad or not. With the video, I can see that you are only using one finger on the touchpad, and that the touch that regularly appears on the top right corner is a ghost one.

As far as I can tell, there is no (simple) way from the drier to ignore those. The firmware marks those touches are valid, and it would require far too much processing to eliminate them directly from the driver.

On the 9360 I have been loaned, I do not see such ghosts. Gnome software says that my bios is 0.1.3.5 and that there is an update to 0.2.3.1. Which Bios are you? There might have been an upgrade of the touchpad that broke it. If you do not have gnome-software with fwupd, you can just run "sudo dmidecode -s bios-version" to get the version.

Revision history for this message
In , benjamin.tissoires (benjamin.tissoires-linux-kernel-bugs) wrote :

Created attachment 260547
recording from the video, in the hid-replay format

Just so I do not lose it later, here is the converted data I extracted from the second dmesg. You can replay the data and parse it into a human readable format with https://github.com/bentiss/hid-replay

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

I am using bios 2.2.1. I have seen this issue in different bios versions.

Comment #131 in launchpad says:

"For this particular issue, this information is not useful however because the firmware for the XPS 9360 touchpad is unchanged since it's been on the market."

So I guess the bios version is not relevant!?

I am sure you are having the issue too, it just takes time to see it. When you use the 9360 as your daily driver you will see the issue for sure. It could take a few weeks to first happen, but it does happen unfortunately :-(.

I am speaking out of experience. There can be a long time where the touchpad behaves perfectly and suddenly it goes crazy.

Thanks very much for looking into this. Anything more we could do!?

Revision history for this message
In , campbell (campbell-linux-kernel-bugs) wrote :

@Benjamin thank you for your help on this issue! Your patches to hid have made you a bit of a hero to people with this issue, so I'm just excited to post on a thread with you. :)

I am using bios version 1.3.5 with the same problem (I'm the one who provided the event dumps in the launchpad thread).

I'm currently of the mindset that this is a hardware issue. The last week or so, I've been "curing" my attacks with firm pressure on the space between the trackpad and the space bar. Firm enough to risk a physical click on the touchpad. This seems to solve the episodes for a longer time than my previous method (hard physical click on the right side of the touchpad).

That said, it's only been a week. I've thought I've had a solution before.

Looking at a disassembly of the laptop ( https://www.parts-people.com/blog/wp-content/uploads/2016/12/xps9350touchpadconnector.jpg ) though, I don't see what I could be pressing on. The touchpad connetor is in the middle of the touchpad. Maybe one of the pads that holds it in place is a little too far over and generating a click? I always thought touchpads worked with capacitance though, and it would be a pretty dumb material choice for padding if it changes apparent capacitance where it touches the trackpad. Also, that wouldn't explain the "flickering" effect.

I second Esokrarkose's comment - try using the laptop as a daily driver. I'm sure you'll run into the issue eventually. It very rarely occurs when I start using the machine, usually it pops up over time.

Revision history for this message
In , benjamin.tissoires (benjamin.tissoires-linux-kernel-bugs) wrote :

Right. So if Windows is immune to this problem, there must be some sort of palm rejection mechanism in user space that prevents it to see the issue. I'll check with Peter Hutterer if this is something doable.

Revision history for this message
In , benjamin.tissoires (benjamin.tissoires-linux-kernel-bugs) wrote :

Answer from Peter: https://bugs.freedesktop.org/show_bug.cgi?id=103208
Once this bug is fixed in libinput, you should be fine. But note that this is a firmware issue still :)

Revision history for this message
In , kai.heng.feng (kai.heng.feng-linux-kernel-bugs) wrote :

Some users reported that Windows is also affected [1] in comment #3, #21.

[1] https://bugs.launchpad.net/bugs/1651635

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Regarding Windows being affected: I did some research, but nowhere outside of the launchpad page I could find someone confirming it is an issue there too and I guess there are much more XPS 13 Windows users out there than linux users, but since it is an firmware issue I guess the two comments may be right, still I am a bit surprised it was not mentioned somewhere outside the linux userers world, maybe it's less likely to appear there?

Mario Limonciello from Dell is subscribed here, maybe he could comment whether it is likely that a firmware update is issued?

Benjamin Tissoires: Shall I keep recording the issue to find out if it's always the upper right corner where the ghost touches are coming from?

Revision history for this message
In , peter.hutterer (peter.hutterer-linux-kernel-bugs) wrote :

can you get me an evemu-record output for the ghost touch please? Is it always in the same spot, or roughly the same spot?

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

When it happens again and I have the time I will upload the evemu-record along with the other debug info.

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Created attachment 260565
kern log of the stuck pointer in the video

Touchpad got stuck, the pointer locked completely, I remember dragging one finger from outside the upper right corner to the touchpad when the pointer got stuck. Then I started recording the video:

https://youtu.be/GXw0MVjbn2w

As last time, the script I run reloaded the kernel module with debug info, as can be seen, the pointer was still stuck. The lock was released in 0:51, when I pressed the right button, as can be heard in the video.

The evemu-record will be attached in the next comment.

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Created attachment 260567
evemu-record output of video, as requested

evemu-record output of https://youtu.be/GXw0MVjbn2w

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Created attachment 260569
kern log of right corner triggering

As you told me the upper right corner might trigger this I played around and found I could trigger misbehavior by playing around a bit (but this only works sometimes, not always). I recorded that experience once again:

https://youtu.be/gEYBBP_6Yr0

Right now as I am typing the touchpad is also misbehaving, but I do not have unlimited time to record all the time. I can't tell if it's always related to the upper right corner.

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Created attachment 260571
evemu-record of upper right corner triggering

evemu-record of https://www.youtube.com/watch?v=gEYBBP_6Yr0

If you need snapshots of the evemu-record.log my script took every second to diff what happened at every second in the video let me know. Also available for the prior evemu-record.

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Created attachment 260573
lower corner kern.log

One last time, triggering scroll lock with right lower corner and then with the right upper corner.

Watch closely: In the beginning I trigger a scroll lock with the lower corner.

https://youtu.be/_O6BJQYYY7c

Sometimes though the scroll locking happens although I do not remember getting near a corner, at least I think so, I am not sure.

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Created attachment 260575
lower corner evemu recording

Corresponding evemu recording for https://youtu.be/_O6BJQYYY7c.

Revision history for this message
In , superm1 (superm1-linux-kernel-bugs) wrote :

A few clarification points and thoughts:

1) On the Windows side there is no extra Synaptics driver doing any palm rejection. Windows uses the inbox HID driver. Anything handled in this area would be entirely with the built-in Windows software stack.

2) There haven't been any touchpad firmware updates for the XPS 9360 since launch.

3) Upgrading system firmware (BIOS) I don't believe should have any bearing on this particular issue. I know BIOS update flashes a lot of components, but touchpad is not one of them.

>Mario Limonciello from Dell is subscribed here, maybe he could comment
>>whether it is likely that a firmware update is issued?

As of right now there aren't any touchpad firmware updates in the works.

Although there could be some potential improvements to palm rejection handling in libinput as mentioned above, I'm highly suspicious of a few pieces of defective hardware for those afflicted by this annoying issue. And yes I know that one person on Launchpad mentioned they had TP replaced but issue came back, but it could still be a defective replacement too.

@esokrarkose, since you seem to be able to readily reproduce on your piece of hardware I think it would be ideal if you could set up a dual boot or a Windows to go USB stick (If you have access) that you can experiment with Windows 10's inbox driver. If you can still reproduce problems there I'm going to go on a limb and say it really is defective hardware and not something that should be bandaged by libinput to look for the ghost touches.

Evidence of it happening in both places should make a pretty strong case for repair.

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

"a few pieces of defective hardware for those afflicted by this annoying issue"

That comment is making me quite angry. I am not wasting a lot of time so that it gets rejected by saying: this only affects a few pieces of hardware implying it is not relevant. I spent money for two pieces of this hardware manufactured at different dates (more than a month inbetween) and both have the issue.

Paul Menzel also subscribed to this issue has colleagues with the same problem. One person got a replacement and the issue was still there. A very very unlikely coincidence, isn't it? It's likely that MOST of the touchpads are broken then, if you do not believe that all are affected.

When I have more time I will have a look at Windows, but I have already wasted too much time with that, I do not expect such problems for that price tag.

Revision history for this message
In , superm1 (superm1-linux-kernel-bugs) wrote :

I'm sorry, but I don't have statistics to show number of calls related to touchpad relative to units sold. I don't work in the Dell support organization. I'm trying to add to this issue context that will help get down to a root cause.

My suspicion in it being defective hardware is colored by the fact that I've used both an XPS 9350 and XPS 9360 daily (Which each contain Synaptics I2C TP) for a while now and never experienced this issue myself and know dozens of others who have as well.

As you mentioned: it's also suspicious that a handful of people have the problem, they seem to all be on Linux, and they have congregated on a Launchpad bug. This is the internet, people with similar views, similar problems flock to the same place.

Even if it's defective hardware i'm not saying it can't be helped by libinput adjustments. I'm saying the surface area of afflicted people (appears) small so a hardware problem is a potential root cause and repair may be the quickest solution.

Revision history for this message
In , peter.hutterer (peter.hutterer-linux-kernel-bugs) wrote :

looking at the logs in attachment 260547:
* the ghost touch starts at 1216/0 (xmax/ymin) and is constant
* at 875.329542 it is at 1192/14
* It later *moves* to 1185/18 over several events and stays there. This pattern repeats multiple times

The highest distance from the edge is 1185 and 20, so roughly 3 and 2 mm, respectively. Note: this is from a manual analysis, not a scripted one so I may have missed a value. I'm assuming the others are the same, because in the end they can only be worse, if they're better than the above that's great ;)

For userspace this means:
* there isn't a single coordinate that we can blacklist
* we need some heuristics beyond 'maximum edge of the touchpad' because 3/2mm is a significant distance in. that heuristic runs the danger of interfering with real touches
* we can't just look at a touch and ignore it when it doesn't move - some of them move. Although it looks like they move late enough that we can pick them out before that happens.

Either way, the above would definitely require a model-specific quirk because we don't want to affect other devices. I wouldn't be surprised if windows papers over this accidentally, in the same way as the bug linked in comment 10 would probably paper over this. The windows bit is a guess though.

I'm going with Mario here and suspect this is defective hardware. If every XPS user would have this issue it'd be a different matter but fixing this has a nonzero cost for userspace.

Revision history for this message
In , campbell (campbell-linux-kernel-bugs) wrote :

Voicing my experience here - as someone who thinks it's a hardware issue... I dual boot this machine and play games on the Windows side. I've never had it appear in Windows 10. Also, the couple of comments in Launchpad are the only reports I can find _anywhere on the Internet_ of it happening in Win.

There are many reports from users who have had the touchpad replaced, or reseated. They think it's OK for a week or two, then it returns. I've even read threads from people who have gone through 3 or more replacements this way. :(

I'm inclined to think it's something that the windows driver accidentally papers over. Is the touchpad size detection in Win the same? Is there potentially a small dead zone around the outside, or are we potentially detecting a larger surface than exists?

Revision history for this message
In , peter.hutterer (peter.hutterer-linux-kernel-bugs) wrote :

> Is there potentially a small dead zone around the outside, or are we
> potentially detecting a larger surface than exists?

Thats quite easy to verify, just run the touchpad-edge-detector tool

Revision history for this message
In , campbell (campbell-linux-kernel-bugs) wrote :

I used the measurement from Dell's specs on their website for my service tag number.

```
sudo touchpad-edge-detector 105x60 /dev/input/event16

Touchpad DLL075B:01 06CB:76AF Touchpad on /dev/input/event16
Move one finger around the touchpad to detect the actual edges
Kernel says: x [0..1216], y [0..680]
Touchpad sends: x [3..1216], y [0..680] -|-| \^C

Touchpad size as listed by the kernel: 101x56mm
User-specified touchpad size: 105x60mm
Calculated ranges: 1213/680

Suggested udev rule:
# <Laptop model description goes here>
evdev:name:DLL075B:01 06CB:76AF Touchpad:dmi:bvnDellInc.:bvr1.3.5:bd05/08/2017:svnDellInc.:pnXPS139360:pvr:rvnDellInc.:rn06CC14:rvrA00:cvnDellInc.:ct9:cvr:*
 EVDEV_ABS_00=3:1216:12
 EVDEV_ABS_01=0:680:11
 EVDEV_ABS_35=3:1216:12
 EVDEV_ABS_36=0:680:11
```

Looks like the kernel expected a smaller device. Not sure what to make of that, but I'll give it a try and report back! This week has been pretty calm for me as far as this problem goes, so I'd be interested to see the output/effect of touchpad-edge-detector settings from someone else...

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

It takes a while until it matches what Kernel and Touchpad say, but here it is:

sudo touchpad-edge-detector 105x60 /dev/input/event10
Touchpad DLL075B:01 06CB:76AF Touchpad on /dev/input/event10
Move one finger around the touchpad to detect the actual edges
Kernel says: x [0..1216], y [0..680]
Touchpad sends: x [0..1216], y [0..680] \^C\\|

Touchpad size as listed by the kernel: 101x56mm
User-specified touchpad size: 105x60mm
Calculated ranges: 1216/680

Suggested udev rule:
# <Laptop model description goes here>
evdev:name:DLL075B:01 06CB:76AF Touchpad:dmi:bvnDellInc.:bvr2.2.1:bd08/18/2017:svnDellInc.:pnXPS139360:pvr:rvnDellInc.:rn05JK94:rvrA00:cvnDellInc.:ct9:cvr:*
 EVDEV_ABS_00=0:1216:12
 EVDEV_ABS_01=0:680:11
 EVDEV_ABS_35=0:1216:12
 EVDEV_ABS_36=0:680:11

Revision history for this message
In , pmenzel+bugzilla.kernel.org (pmenzel+bugzilla.kernel.org-linux-kernel-bugs) wrote :

(In reply to Esokrarkose from comment #22)
> "a few pieces of defective hardware for those afflicted by this annoying
> issue"
>
> That comment is making me quite angry. I am not wasting a lot of time so
> that it gets rejected by saying: this only affects a few pieces of hardware
> implying it is not relevant. I spent money for two pieces of this hardware
> manufactured at different dates (more than a month inbetween) and both have
> the issue.
>
> Paul Menzel also subscribed to this issue has colleagues with the same
> problem.

Just a clarification, that we couldn’t reproduce the issue in Microsoft Windows 10 (we reluctantly installed and took some time). After that, we were not able to reproduce it with an Ubuntu installation anymore.

> When I have more time I will have a look at Windows, but I have already
> wasted too much time with that, I do not expect such problems for that price
> tag.

I totally agree, that Dell’s QA failed big time. But please try to reproduce the issue with Microsoft Windows, and to try to get a replacement for both devices.

Revision history for this message
In , superm1 (superm1-linux-kernel-bugs) wrote :

FWIW, touchpad-edge-detector recommends the exact same values on the XPS 9350 as the values recommended by comment #28 and comment #27.
evdev:name:DLL0704:01 06CB:76AE

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

"Just a clarification, that we couldn’t reproduce the issue in Microsoft Windows 10 (we reluctantly installed and took some time). After that, we were not able to reproduce it with an Ubuntu installation anymore."

Right, ok then you still have the issue, it will return eventually, because it wasn't fixed magically.

Yesterday and by the start of today the issue was bugging me extremly, now its all of the sudden gone, I can't trigger it, no matter how hard I try, even the right upper and lower edges behave correctly. There was no reboot inbetween just a couple of suspends.

It's extremely frustrating to convince you guys, but at the end of the day that touchpad is simply unreliable, there is definitely an issue and it will return at a random point.

I mean I'm okay with changing the touchpad, I would even request the guys from Dell to do so, but I am 100% certain, that the problem will return.

I am frustrated, because if I would carry my computer to you guys and try to show the problem it wouldn't work instantly almost certainly. If you would spend a day with me, I could show you when it happens just like in the video. I am sure the same would happen to me when Mario would give me his XPS 13 model. Maybe it's related to usage pattern!?

Revision history for this message
In , peter.hutterer (peter.hutterer-linux-kernel-bugs) wrote :

(In reply to Campbell Vertesi from comment #27)
> Looks like the kernel expected a smaller device.

Rounding error, not to worry about. Kernel provides the resolution in
units/mm as integer, but your touchpad has 11.58 u/mm. Rounding up the
resolution to 12 results in a perceived smaller size (101 vs 105mm). This
doesn't usually matter unless it's out by some significant amount.

Revision history for this message
In , superm1 (superm1-linux-kernel-bugs) wrote :

??Hello,
I will be out of office 11/10 returning 11/13. Expect delayed email responses.

Revision history for this message
In , campbell (campbell-linux-kernel-bugs) wrote :

Thanks @Peter for the explanation.

@Esokrarkose the next time this happens to you.. could you please try putting pressure on some other parts of the case, and see if that resolves it for you? I've found that firm pressure in the space between the trackpad and the space bar resolves it for me. Can you replicate?

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Damn, pressing on the case between the right corner and "Alt Gr" triggered the issue. When moving the finger on the case with pressure (not touching the touchpad) the mouse pointer sometimes moves very slightly :-(.

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Windows 10 also affected. It behaves a little bit better, but I could reproduce the jumping and the lock.

Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

Can others who have the same issue verify that their models have a weak spot on the case between upper right corner and "Alt Gr" key and pressing there makes the trackpad go mad?

Campbell, when was your system manufactured, can you also trigger the issue pressing on the spot I suggest?

Mario, could you somehow help me convince support that it's been verified that a swap is justified in my case? All the stuff they want me to try is obviously just a waste of time.

Revision history for this message
In , harald.oberhofer (harald.oberhofer-linux-kernel-bugs) wrote :

(In reply to Esokrarkose from comment #37)

Hi I have an XPS 13 9360 with the touchpad issue but do not have such a weak spot. Pressing the case between upper right corner and the right Alt key doesn't do a thing.

Revision history for this message
In , campbell (campbell-linux-kernel-bugs) wrote :

Well, it sucks to discover it's a hardware issue for sure. :(

I bought my system in June 2017. Service tag # C3L06H2 so you can look up the specs :)

I don't have a particular weak spot between the trackpad and the right alt key. I can press anywhere above the trackpad and it ends an episode, but I can't seem to trigger an episode that way. I'm continuing to experiment with different spots on the below-keyboard part of the case to see if I can figure out a pattern.

Given that it seems very forgiving about precisely where I press, right now my theory is a charge buildup from improper grounding somewhere.

Further discussion of this really doesn't belong on the kernel bugzilla, but I don't know where else to do it. Is it OK if we continue debugging the issue in this thread?

Revision history for this message
In , superm1 (superm1-linux-kernel-bugs) wrote :

I'm curious to hear, anyone affected who has used the output from touchpad-edge-detector, did you have any positive results?

I believe that's the only potential software change on the table right now as an outcome of this bug. We should probably close it after deciding that.

@esokrakose, Campbell (and any others that this is looking like a HW issue):
Regarding where to take this discussion of a potential HW issue:
You can bring it to the Dell project sputnik forums to openly discuss as a group: http://en.community.dell.com/techcenter/os-applications/f/4613

If you're having a hard time with the phone support group, I'm sorry about that. I talked to one of our web support guys and pre-wired them on the situation going on. You can join the Dell forums and send him a friend request with your service tag through his profile:
http://en.community.dell.com/members/dell_2d00_justin-c

Changed in linux (Ubuntu):
status: New → Confirmed
Esokrates (esokrarkose)
Changed in dell-sputnik:
status: Confirmed → Invalid
Changed in linux (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
In , Esokrarkose (esokrarkose-linux-kernel-bugs) wrote :

This can be closed, it is indeed a hardware issue. Got my touchpad replaced in November and I have never experienced this again ever since. Also the Dell support guys on twitter are amazing!

Changed in linux:
importance: Unknown → Medium
status: Unknown → Invalid
Displaying first 40 and last 40 comments. View all 197 comments or add a comment.
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.