Linux – How to fix USB mouse freeze in Ubuntu 10.04 or Fedora 13

fedorafreezelinuxmouseUbuntu

I'm just starting out using linux and so I installed Ubuntu to a hard disk.
I noticed that after 30 minutes or so, the mouse pointer would simply stop moving while the keyboard was o.k.
Exact same problem with Fedora as well. (The mouse works fine in Vista (it's a MS Comfort mouse 1000))

I searched and found a suggestion that I should disable the sleep settings, so I did that but no luck.

Interestingly, there is no freezing of the mouse when I use the Ubuntu Live CD – it's only the hard-disk-installed Ubuntu that's having the problem.

Update Found some old links from 2009 that say I should remove the "mouseemu" package. How to remove that package?

Update Unfortunately, that did not help – there is no mouseemu pkg installed. I tried setting kernel boot options noapic, irqpoll etc. – no luck. This is so annoying.

Best Answer

If you are using ArchLinux (could be applicable for other distros too), you need to find your device ID by lsusb and then add it to the blacklist in USB autosuspend by editing:

/etc/laptop-mode/conf.d/usb-autosuspend.conf

Example of the line to add:

AUTOSUSPEND_USBID_BLACKLIST="046d:c025"

USB autosuspend ref: Usb Autosuspend

Don't forget to restart the laptop-mode service afterwards, for the changes to become effective, e.g. by running sudo systemctl restart laptop-mode.service resp. sudo service laptop-mode restart.

Related Question