You are not logged in.

#1 2020-08-02 19:03:49

lazak
Member
Registered: 2015-02-07
Posts: 10

Touchpad left click becomes right click.

I'm running Arch on a Dell XPS 15. In the last few weeks or so a bug came up. My touchpad left click starts to function as a right-click, I have no idea what triggers this behavior. The left-click works normally on a fresh reboot but may or may not transition to the abnormal behavior described at some point. Exiting and restarting i3 doesn't help, the only thing that helps is restarting the laptop.

Offline

#2 2020-08-02 19:10:14

seth
Member
Registered: 2012-09-03
Posts: 64,244

Re: Touchpad left click becomes right click.

Does "libinput debug-events" report the wrong button?
Does "xev -event mouse"?
Do you only restart i3 or the X11 server as well?

Online

#3 2020-08-02 20:07:47

lazak
Member
Registered: 2015-02-07
Posts: 10

Re: Touchpad left click becomes right click.

I can't trigger this bug on demand. I'll get back to you with more information soon. I tried restarting X11 as well, no luck.

Offline

#4 2020-08-04 12:56:53

superherointj
Member
Registered: 2019-02-28
Posts: 3

Re: Touchpad left click becomes right click.

I am also experiencing some weird issues with the mouse. And it has happened at two different computers running Arch in latest (upgraded). Both have the same mouse, Corsair RGB Glaive.

When I left click in a button like to close a Firefox Tab, it won't register in "libinput debug-events" nor "xev -event mouse" unless I press for a longer than usual time.

Any idea?

Thanks.

Last edited by superherointj (2020-08-04 12:59:53)

Offline

#5 2020-08-04 13:05:47

seth
Member
Registered: 2012-09-03
Posts: 64,244

Re: Touchpad left click becomes right click.

Sounds unrelated and smells like https://wiki.archlinux.org/index.php/Po … utosuspend
Deactivate that.

Online

#6 2020-08-06 14:46:19

lazak
Member
Registered: 2015-02-07
Posts: 10

Re: Touchpad left click becomes right click.

`libinput debug-events` doesn't even detect the left or right touchpad clicks.

`xev -event mouse` shows that both events (left and right-click) are triggered by mouse button 3 when the touchpad is clicked. By comparison, the mouse left button is 1 and right button is 3.

It took a while for this to show up again, even if it's annoying i'll keep my laptop in this state to make debugging easier.

Offline

#7 2020-08-06 14:55:42

seth
Member
Registered: 2012-09-03
Posts: 64,244

Re: Touchpad left click becomes right click.

Did you run libinput as root/sudo?

(We know that it's not a client bug, the server generates the wrong event - the question is whether it also arrives this way on the kernel level)

Online

#8 2020-08-06 15:56:50

lazak
Member
Registered: 2015-02-07
Posts: 10

Re: Touchpad left click becomes right click.

Yes, I ran libinput with sudo. No output of any kind was generated when I clicked on the touchpad.

Offline

#9 2020-08-06 16:01:26

seth
Member
Registered: 2012-09-03
Posts: 64,244

Re: Touchpad left click becomes right click.

Do you get the device in "sudo evtest" and does it generate input there?
Also please post the Xorg log so we can see how the device actually shows up in X11.

Online

#10 2020-08-06 22:27:24

lazak
Member
Registered: 2015-02-07
Posts: 10

Re: Touchpad left click becomes right click.

`sudo evtest` gives a bunch of junk that scrolls by very fast, but it looked like both left and right touchpad buttons were giving the same keys.

Also, I restarted X and now my touchpad doesn't work at all. No events are being registered with the previous commands you mentioned except for evtest, clicking normally has no visible effect.

Here is the Xorg log after I restarted X (but not a reboot): https://gist.github.com/ztasre/d98837f4 … 5c803f2876

The touchpad device is event9, the touchpad doesn't work after restarting X but it looked like evtest was able to pick up my clicks.

Offline

#11 2020-08-07 05:47:39

seth
Member
Registered: 2012-09-03
Posts: 64,244

Re: Touchpad left click becomes right click.

[355807.724] (EE) event9  - SYNA2393:00 06CB:7A13 Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.15.6/touchpad-jumping-cursors.html for details
[355807.848] (EE) event9  - SYNA2393:00 06CB:7A13 Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.15.6/touchpad-jumping-cursors.html for details
[355808.060] (EE) event9  - SYNA2393:00 06CB:7A13 Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.15.6/touchpad-jumping-cursors.html for details
[355810.858] (EE) event9  - SYNA2393:00 06CB:7A13 Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.15.6/touchpad-jumping-cursors.html for details
[355810.931] (EE) event9  - SYNA2393:00 06CB:7A13 Touchpad: kernel bug: Touch jump detected and discarded.
See https://wayland.freedesktop.org/libinput/doc/1.15.6/touchpad-jumping-cursors.html for details
[355810.931] (EE) event9  - SYNA2393:00 06CB:7A13 Touchpad: WARNING: log rate limit exceeded (5 msgs per 7200000ms). Discarding future messages.

and

`sudo evtest` gives a bunch of junk that scrolls by very fast

Sounds like the device generates spurious input events.

https://wiki.archlinux.org/index.php/De … ouchscreen

wiki wrote:

If you experience problems with the touch pad it might be worth disabling psmouse

Ceterum censeo: if you've a parallel windows installation, see the link in my signature ;-)

Online

#12 2020-08-11 16:57:44

lazak
Member
Registered: 2015-02-07
Posts: 10

Re: Touchpad left click becomes right click.

I blacklisted psmouse and the bug came back. I don't think jumping cursors are an issue here, it's a known problem on Dell XPS.

Offline

#13 2020-08-12 06:28:03

seth
Member
Registered: 2012-09-03
Posts: 64,244

Re: Touchpad left click becomes right click.

I'm more concerned w/

`sudo evtest` gives a bunch of junk that scrolls by very fast

https://bbs.archlinux.org/viewtopic.php?id=258092 on a different laptop vendor/model

Does the problem exist w/ the LTS kernel?
What's the output of "lsmod"?

Online

#14 2020-08-15 22:44:58

lazak
Member
Registered: 2015-02-07
Posts: 10

Re: Touchpad left click becomes right click.

So I have an update if the bug triggers and I leave my laptop in that state overnight then it disappears the next morning. I always restarted if it happened so I never noticed this behavior before.

Here is the output of lsmod: https://gist.github.com/ztasre/7031534e … c18f31a9bf

I'll try the LTS kernel soon.

Offline

#15 2020-08-27 02:42:44

lazak
Member
Registered: 2015-02-07
Posts: 10

Re: Touchpad left click becomes right click.

Brief update. 5.4.58-1-lts seems to be working without issues. I have been running the lts kernel for about 4 days now without the bug triggering. I'll update this comment in another week or so with a status update, maybe I just need to wait a little longer for it to trigger.

Update 2020-09-01: The bug came back when using the lts kernel, took 3 days for it to show up this time.

Last edited by lazak (2020-09-01 16:44:41)

Offline

#16 2022-10-14 15:02:26

nassertom
Member
Registered: 2022-10-14
Posts: 1

Re: Touchpad left click becomes right click.

Hi,
I've had the same problem for over a year.

I have a workaround: by shortcut
- deactivate the touchpad via xinput then reactivate it

xinput set-prop 15 "Device Enabled" 0
xinput set-prop 15 "Device Enabled" 1

Offline

Board footer

Powered by FluxBB