How can I get rid of mouse lag under Ubuntu?

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)
4

8 Answers

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

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/modprobe.d/local.conf
echo 'drm_kms_helper' >> /etc/modules-load.d/local.conf
echo "options drm_kms_helper poll=N" >> /etc/modprobe.d/local.conf
7

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

5

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.

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.

1

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

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.

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.

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like