USB mouse get laggy

Hi !
I’m on a laptop with a strong config : 8core i7@2.9GHz, 32GB of RAM, Nvidia Quadro M1200, but my USB mouse sometimes get really laggy, there is like one second between each position update, it’s verry annoying.
Note that there is no issue when I use the trackpad. My load is verry low, it’s lagging a bit now and I’m at (0.9, 1.14, 1.41)…

The mouse works properly on others computer and on my Windows dual boot.
I have tried to switch USB ports, doesn’t changes anything.
I’m using GNOME.
My laptop brand : Dell Precision 7520.

Reboot or session logout fix the problem for like 45 minutes but it always reappears.

Any ideas ? Thanks.

This is an Optimus GPU setup you need to install bumblebee do deal with this. Note if you install the NVIDIA driver uninstall before doing the bumblebee procedure completly and exactly.

https://en.opensuse.org/SDB:NVIDIA_Bumblebee

I have had that happen. When it has happened here, it has been a resource shortage.

Maybe when this is happening, try:

free

at a terminal, to see if you are paging (using swap). And then run

top

at the same terminal, or check what is running with whatever Gnome application lists processes.

I used to see this with an older computer, when I was copying an iso to a USB. I suspect the problem was with the high I/O rate. On my current computer, when this happens, it usually indicates that “firefox” is being a memory hog.

Such problems are often related to graphics drivers, but you mentioned that the trackpad doesn’t cause trouble, so it would seem to be either hardware or perhaps libinput related? I note that you’re using Gnome…assuming Gnome on Wayland?

This will help confirm…

loginctl show-session "$XDG_SESSION_ID" -p Type

Open a terminal and run

dmesg --follow

then plug in the mouse, capture the output.

With your USB mouse connected, what is reported by the following command?

libinput list-devices

*You may need to install the ‘libinput-tools’ package first. You can do that with

sudo zypper in libinput-tools

Wayland does not get on well with NVIDIA. try booting to the X stack You still need Bumblebee because of Optimus (hybrid graphics)

loginctl show-session "$XDG_SESSION_ID" -p Type

Right, I’m on Wayland.

dmesg --follow

Here is the output :

  805.681063] usb 1-3: new full-speed USB device number 8 using xhci_hcd  805.830413] usb 1-3: New USB device found, idVendor=046d, idProduct=c332
  805.830419] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  805.830424] usb 1-3: Product: Gaming Mouse G502
  805.830428] usb 1-3: Manufacturer: Logitech
  805.830431] usb 1-3: SerialNumber: 038236793330
  805.832830] input: Logitech Gaming Mouse G502 as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:046D:C332.0008/input/input29
  805.833317] hid-generic 0003:046D:C332.0008: input,hidraw0: USB HID v1.11 Mouse [Logitech Gaming Mouse G502] on usb-0000:00:14.0-3/input0
  805.835127] input: Logitech Gaming Mouse G502 as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:046D:C332.0009/input/input30
  805.893487] hid-generic 0003:046D:C332.0009: input,hiddev96,hidraw1: USB HID v1.11 Keyboard [Logitech Gaming Mouse G502] on usb-0000:00:14.0-3/input1

libinput list-devices

Here is my mouse related output :


Device:           Logitech Gaming Mouse G502
Kernel:           /dev/input/event2
Group:            7
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
Accel profiles:   flat *adaptive
Rotation:         n/a


Device:           Logitech Gaming Mouse G502
Kernel:           /dev/input/event3
Group:            7
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
Accel profiles:   n/a
Rotation:         n/a

I will try to install NVIDIA Bumblebee, excuse my ignorance but what does “booting to the X stack” means ?

He meant to login to Gnome-X11 instead of to Gnome-Wayland. If you are using GDM for login, that’s a menu choice during login.