#1108441 xserver-xorg-input-libinput: Left clicks stop working every few hours, freezes for a minute or two

Package:
xserver-xorg-input-libinput
Source:
xserver-xorg-input-libinput
Description:
X.Org X server -- libinput input driver
Submitter:
Leszek Dubiel
Date:
2025-07-01 11:15:02 UTC
Severity:
normal
#1108441#5
Date:
2025-06-28 17:58:53 UTC
From:
To:
Dear Maintainer,

Laptop Dell XPS 15 9530,
and also the same bug on Dell Precission 5570.


While normal work during whole day, left mouse button stops working.
I try to debug problem, it takes a few minutes, and button starts
working again.


For example I run as root:

     evemu-record /dev/input/event4 | grep BTN --line-buffered | grep -v
'BTN_TOUCH|BTN_TOOL_FINGER'  -E

and I get:

     #     Event code 272 (BTN_LEFT)
     #     Event code 328 (BTN_TOOL_QUINTTAP)
     #     Event code 333 (BTN_TOOL_DOUBLETAP)
     #     Event code 334 (BTN_TOOL_TRIPLETAP)
     #     Event code 335 (BTN_TOOL_QUADTAP)
     E: 0.694903 0001 014d 0001    # EV_KEY / BTN_TOOL_DOUBLETAP 1
     E: 1.072529 0001 014d 0000    # EV_KEY / BTN_TOOL_DOUBLETAP 0
     E: 2.109761 0001 0110 0001    # EV_KEY / BTN_LEFT 1
     E: 2.178465 0001 0110 0000    # EV_KEY / BTN_LEFT 0


BTN_LEFT doesn't occur, left button doesn't work,
and after a minute or two i see BTN/LEFT again occuring.



Other people also have this problem:


https://www.linux.org/threads/mouse-issues-left-button-stops-working.57160/

https://stackoverflow.com/questions/62260260/erratic-cursor-movement-and-clicks-on-dell-laptop-with-ubuntu-20-04

https://forums.linuxmint.com/viewtopic.php?t=318465

https://unix.stackexchange.com/questions/369097/mouse-left-click-stops-working#448898


They report that if left button stops working,
you just stwitch to another virtual terminal Ctrl+Alt+F3,
then go back again to X Window system and left click works again.




# xinput
⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                  id=4    [slave
pointer  (2)]
⎜   ↳ VEN_04F3:00 04F3:32AA Mouse                 id=10    [slave
pointer  (2)]
⎜   ↳ PS/2 Generic Mouse                          id=16    [slave
pointer  (2)]
⎜   ↳ VEN_04F3:00 04F3:32AA Touchpad              id=11    [slave
pointer  (2)]
⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
     ↳ Virtual core XTEST keyboard                 id=5    [slave
keyboard (3)]
     ↳ Video Bus                                   id=6    [slave
keyboard (3)]
     ↳ Power Button                                id=7    [slave
keyboard (3)]
     ↳ Intel HID events                            id=12    [slave
keyboard (3)]
     ↳ Intel HID 5 button array                    id=13    [slave
keyboard (3)]
     ↳ Dell WMI hotkeys                            id=14    [slave
keyboard (3)]
     ↳ AT Translated Set 2 keyboard                id=15    [slave
keyboard (3)]
     ↳ Integrated_Webcam_HD: Integrate             id=8    [slave
keyboard (3)]
     ↳ Integrated_Webcam_HD: Integrate             id=9    [slave
keyboard (3)]







*** Reporter, please consider answering these questions, where
appropriate ***

    * What led up to the situation?
    * What exactly did you do (or not do) that was effective (or
      ineffective)?
    * What was the outcome of this action?
    * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#1108441#10
Date:
2025-07-01 11:06:51 UTC
From:
To:
Some more testing...


Switchijng to another console with Ctrl+Alt+F3 doesn't solve the problem.

Logging on text console maybe solves.
Maybe? Because mouse clicking hangs for one minute and maybe I'm not
fast enough.





My curent solution is to:

1. open terminal
2. switch to root user
3. run command, and click, tap, double click, double tap:

# evemu-record /dev/input/event4 | grep BTN --line-buffered | grep -v
'BTN_TOUCH|BTN_TOOL_FINGER|myszbuttontest'  -E
#     Event code 272 (BTN_LEFT)
#     Event code 328 (BTN_TOOL_QUINTTAP)
#     Event code 333 (BTN_TOOL_DOUBLETAP)
#     Event code 334 (BTN_TOOL_TRIPLETAP)
#     Event code 335 (BTN_TOOL_QUADTAP)
E: 7.296402 0001 014d 0001    # EV_KEY / BTN_TOOL_DOUBLETAP   1
E: 7.303560 0001 014d 0000    # EV_KEY / BTN_TOOL_DOUBLETAP   0
E: 7.303560 0001 014e 0001    # EV_KEY / BTN_TOOL_TRIPLETAP   1
E: 7.617556 0001 014d 0001    # EV_KEY / BTN_TOOL_DOUBLETAP   1
E: 7.617556 0001 014e 0000    # EV_KEY / BTN_TOOL_TRIPLETAP   0
E: 7.624073 0001 014d 0000    # EV_KEY / BTN_TOOL_DOUBLETAP   0
E: 10.745921 0001 0110 0001    # EV_KEY / BTN_LEFT             1
E: 10.876437 0001 0110 0000    # EV_KEY / BTN_LEFT             0
E: 14.987414 0001 0110 0001    # EV_KEY / BTN_LEFT             1
E: 15.097463 0001 0110 0000    # EV_KEY / BTN_LEFT             0


When I see "BTN_LEFT", then touchpad starts clicking properely.