2

I have issue with left click randomly triggering right click action. For example I click with left button in chrome but it opens context menu. This issue happens in any apps.

Ubuntu 20.04. Dell G5 5590

I tried to solve it with multiple advices I found, like:

  • adding this content to /lib/systemd/system-sleep/touchpad file:
#!/bin/sh

case $1 in post) /sbin/rmmod i2c_hid && /sbin/modprobe i2c_hid ;; esac

and sudo modprobe -r psmouse command...

  • or with adding blacklist psmouse to /etc/modprobe.d/blacklist.conf and executing sudo update-initramfs -u or also:
modprobe drm_kms_helper
echo N> /sys/module/drm_kms_helper/parameters/poll
echo 'drm_kms_helper' >> /etc/modules-load.d/local.conf
echo "options drm_kms_helper poll=N" >> /etc/modprobe.d/local.conf

but nothing helped. Do you have any other suggestions? note: I'm sure it's not mouse problem, as I tried 3 different mouses (Microsoft Optical Mouse, B200, Logitech M110s)

Tried xev, at left click I got this log:

ButtonPress event, serial 34, synthetic NO, window 0x4a00001,
    root 0x92b, subw 0x0, time 1882500, (118,76), root:(340,290),
    state 0x110, button 3, same_screen YES

ButtonRelease event, serial 34, synthetic NO, window 0x4a00001, root 0x92b, subw 0x0, time 1882510, (118,76), root:(340,290), state 0x510, button 1, same_screen YES

ButtonRelease event, serial 34, synthetic NO, window 0x4a00001, root 0x92b, subw 0x0, time 1882510, (118,76), root:(340,290), state 0x410, button 3, same_screen YES

ButtonPress event, serial 34, synthetic NO, window 0x4a00001, root 0x92b, subw 0x0, time 1882694, (118,76), root:(340,290), state 0x10, button 1, same_screen YES

ButtonRelease event, serial 34, synthetic NO, window 0x4a00001, root 0x92b, subw 0x0, time 1882840, (118,76), root:(340,290), state 0x110, button 1, same_screen YES

Mlocik97
  • 459

2 Answers2

1

You already confirmed that the issue is not the external mouse (very unlikely with 3 different mouses you have already tested).

So I suspect your integrated touchpad and it's associated buttons is the cause of the spurious clicks.

You may be able to either disable the touchpad driver to check that, or even open your laptop and unplug it mechanically.

As long as you do not de-couple the possible sources of clicks, you won't find the root cause.

datenheim
  • 174
-1

In setting mouse and touchpad, general, primary button, select left.

enter image description here

Ubuntu 22.04

karel
  • 122,292
  • 133
  • 301
  • 332