Mouse stalling in games

Recently, possibly due to a relatively recent update, whenever I hold down left-click/right-click in 3D games the mouse stops moving. This does not always happen immediately, but usually within a couple of seconds.
If I stop holding left-click, then it allows me to move the mouse again.
The game continues receiving clicks while I’m holding the mouse. However, I think that it might not receive new clicks because right click seems to do nothing if the left click is being held. Bit hard to test…

Tried:

  • Messing with game settings
  • Buying a new mouse because it seemed like it might be a broken mouse (Went from wireless Logitech G305 → wired Logitech G403). Nothing changed.
  • Reinstalling manjaro-sway in entirety
  • Swapping from kernel 6.1.62-1 → 6.6.1-1

Games tested: Team Fortress 2 (native), Doom 2016 (proton), Factorio (native)
It is harder to observe in Factorio, but visible in that it doesn’t seem to recognize the mouse being in a different position.
The mouse however does visibly move (Factorio doesn’t seem to draw its own cursor?). The issue also does not appear in other applications like the browser.

WM: sway
GPU: Radeon RX 5600 OEM/5600 XT / 5700/5700 XT
lsb_release -sirc: ManjaroLinux 22.1.2 Talos
Inxi output: https://0x0.st/Hwok.txt
mhwd -l:

> 0000:09:00.0 (0300:1002:731f) Display controller ATI Technologies Inc:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:05:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2023.09.12                true            PCI

libinput --list-devices:

Device:           Power Button
Kernel:           /dev/input/event1
Group:            1
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Power Button
Kernel:           /dev/input/event0
Group:            2
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Hoksi Technology DURGOD Taurus K320
Kernel:           /dev/input/event4
Group:            3
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Hoksi Technology DURGOD Taurus K320 System Control
Kernel:           /dev/input/event5
Group:            3
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Hoksi Technology DURGOD Taurus K320 Consumer Control
Kernel:           /dev/input/event6
Group:            3
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Hoksi Technology DURGOD Taurus K320 Keyboard
Kernel:           /dev/input/event9
Group:            3
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           Hoksi Technology DURGOD Taurus K320 Mouse
Kernel:           /dev/input/event10
Group:            3
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   flat *adaptive custom
Rotation:         0.0

Device:           Logitech G403 HERO Gaming Mouse
Kernel:           /dev/input/event15
Group:            4
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   flat *adaptive custom
Rotation:         0.0

Device:           Logitech G403 HERO Gaming Mouse Keyboard
Kernel:           /dev/input/event16
Group:            4
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           FIFINE Microphones FIFINE K670 Microphone Consumer Control
Kernel:           /dev/input/event3
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

There is no extra output in dmesg / journalctl when the issue occurs.

I’ll also try booting into different manjaro images to see if they have the same issue, I’ll update this post once I get those downloaded/setup.

Hi, I’ve been also struggling with this issue while playing Doom. After bisecting sway for a while, I landed on the commit, which added an option to hide the cursor when typing. After disabling this option, my mouse now works as expected:

$ swaymsg seat '*' hide_cursor when-typing disable

It does not seem that you’re having this issue, based on your libinput output, but this is the only relevant thread I found online that described the issue I had, so for other people who are stuck I’d like to leave a possible solution.

1 Like