35

I experience mouse lag although the graphic card is recognized by the os. (I already had it on 15.10 and upgraded to 16.04). The mouse lag is not firefox or browser dependent. Is there anything I can do about it, without doing a clean install of my ubuntu system?

nuc@nuc:~$ sudo lshw -c video
[sudo] password for nuc: 
  *-display               
       description: VGA compatible controller
       product: Haswell-ULT Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:45 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64)
terdon
  • 104,119
empedokles
  • 4,023

15 Answers15

35

I found this solution! Credit goes to the original poster.

https://superuser.com/questions/528727/how-do-i-solve-periodic-mouse-lag-on-linux-mint-mate

To save some peeps the trouble of going to the link here are the specific instructions I followed (copy and paste each line on a terminal):

sudo su -
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
SpikeNaples
  • 414
  • 4
  • 4
15

I tried above commands did not work. I was also having my mouse pointer real slow all of sudden in properly working Ubuntu 18.04. Googled like crazy for about an hour, tried restarting for few times, checked RAM and CPU usage it was not even half, try unplugging the mouse for couple of times, went through the mouse settings,

Finally, found out the Zoom was switched on. Switched it off and worked like a charm.

The option can be found in Settings > Universal access.

screenshot

Pablo Bianchi
  • 17,371
Jay
  • 251
11

One thing worth checking is whether the the mouse is connected to a USB hub that has other devices connected. In my case, my Bluetooth mouse shares a USB hub with an Ethernet adapter.

The solution was to simply move the mouse to a different USB port.

4

I finally found the solution to the mouse lag (I'm using wireless mouse with dongle) in Ubuntu 20.10:

I edited cmdline.txt file in /boot/firmware

Putting usbhid.mousepoll = 0 seems to help.

Pablo Bianchi
  • 17,371
David1029
  • 41
  • 1
4

Here's another thing that happened to me: under Settings -> Displays, the refresh rate somehow ended up at 23.98 Hz, which made my mouse feel very sluggish, even though the mouse settings were fine.

Ulf Adams
  • 141
2

Just use a USB 2.0 Port instead of a USB 3.0.

1

Changing my mouse from a USB 2.0 to USB 3.0 did wonders. I have a yee suspicion that either ubuntu, linux, or gnome is bad at USB 2.0 ports when it comes to latency. I have never had this problem on the same port, same computer in windows.

PyroBlank
  • 11
  • 3
0

In my case with Parrot Linux it was a case of Interrupt conflicts. IRQ#18 kept being disabled by the system. After disabling the EHCI Handoff in the BIOS,ehci_hcd:usb1 was replaced with ehci_hcd:usb2 and the mouse lag after a random period of time stopped.

You can view your interrupt assignments with: cat /proc/interrupts

Mine changed from: 18: IO-APIC 18-fasteoi ehci_hcd:usb1, pata_jmicron, ata_piix, uhci_hcd:usb8 to: 18: IO-APIC 18-fasteoi ehci_hcd:usb2, pata_jmicron, ata_piix, uhci_hcd:usb8

And the problem was resolved.

0

For me the solution was to bring the wireless dongle closer to the mouse (+keyboard) using a USB extension cord.

0

I had the same problem when using Ubuntu 22.04. I tried to use another USB slot but that didn't work.

I did a little research and found a solution that worked:

  • Launch Settings app.
  • Select Displays.
  • Change the Resolution from 1280x768(5:4) to 1024x768(4:3)

screenshot here

karel
  • 122,292
  • 133
  • 301
  • 332
0

Here's what worked for me:

  1. Log out.

  2. After you click on your profile to log in, look for a settings cogwheel in the bottom-right-hand corner.

  3. Click on it and then click on "Ubuntu in Xorg"

0

On my new 2022 HP Envy 16 hp0055cl, for Ubuntu 22.04, I found the Display refresh rate set at 120Hz, so I changed it to 60Hz. Mouse is now movement is now smooth.

Jimw
  • 1
0

I turned off animations in accessibility settings and that seemed to help.

0

2024 answer:

If anyone also "feels" lag like me, it's the refresh rate.

Make sure you choose the right screen, set the right resolution (for me 16:9 works well) and choose refresh rate > 144Hz.

screenshot

karel
  • 122,292
  • 133
  • 301
  • 332
EGT
  • 1
0

I tried the solutions above no no avail. I have a MacBook Air late 2015. The comments got me thinking and I turned off the disable mouse pad while typing and that solved my mouse freezing issue. Hope this helps someone.

enter image description here

karel
  • 122,292
  • 133
  • 301
  • 332
DaveK
  • 1