Free Software

Software Engineering with FOSS and Linux

Dealing with mouse and touchpad freezes in Linux

Sometimes the desktop in several Linux distributions freezes for no apparent reason; active windows can still be used, and the mouse pointer can be moved around, but clicking is impossible. Furthermore, your touchpad can no longer be controlled; the ‘Touchpad’ tab disappears from the System / Preferences / Mouse menu. Even if mouse functionality eventually returns, the touchpad remains uncontrollable. This extremely annoying bug occurs randomly and may last for a couple of seconds, or until you restart your X server.

If you check your system’s log after such an event (/var/log/messages) you will notice a few entries similar to these:

Sep  9 09:38:15 umbra kernel: [ 4939.006198] psmouse.c: DualPoint TouchPad at isa0060/serio1/input0 lost sync at byte 1
Sep  9 09:38:15 umbra kernel: [ 4939.012220] psmouse.c: DualPoint TouchPad at isa0060/serio1/input0 - driver resynched.

Basically this indicates an IRQ conflict between your mouse and your touchpad. This is a Linux kernel bug (I am currently using 2.6.28) and as such it affects most distributions. An easy way to recover both mouse and touchpad functionality without having to restart your X server is restarting the mouse driver. Run the following commands on a terminal window:

sudo rmmod psmouse
sudo modprobe psmouse

If there is no terminal window open, you can use one of the following:

  • In Gnome or KDE, press Alt + F2, type gnome-terminal and press Enter
  • Press Control + Alt + F1, login with your username and password, type the commands, then press Control + Alt + F7 to get back to X

Hopefully a future kernel release will fix this problem for good.

September 9, 2009 - Posted by | linux | , , , , , , ,

36 Comments »

  1. The article has been added to the foss library.
    http://fosslib.tsakf.net/record/245

    Comment by tsakf | October 22, 2009 | Reply

  2. Thanks! Been having this problem since doing a fresh install of Ubuntu 9.10 (on Dell Inspiron 1420).

    Comment by RayJ | February 22, 2010 | Reply

  3. Thanks, very informative and helpful.
    Ubuntu 11.04 on Dell V131

    Comment by Dima | January 13, 2012 | Reply

  4. nice & concise. consnice.

    Comment by zpmorgan | January 23, 2012 | Reply

  5. cheer man – I’ve having this exact problem on mint v 12.

    ..and of course your rm then rescan worked a treat…

    +1

    Comment by v | January 29, 2012 | Reply

  6. Thanks aplenty. Been having this problem repeatedly on my Asus netbook when using Ubuntu 11.10. This works great.

    Comment by Joe | June 9, 2012 | Reply

  7. Been having a slightly different but similar issue with my trackpad on my Thinkpad. Thanks for the quick fix that actually WORKS! Much appreciated.

    Comment by caleb | July 17, 2012 | Reply

  8. Thanks so much for this fix. It saved a lot of time!

    Comment by djob82 | July 23, 2012 | Reply

  9. […] in 2009, Xenofon Papadopoulos posted on mice and trackpads not working after a specific error comes up. He was on Linux kernel […]

    Pingback by Cowabuntu! | August 28, 2012 | Reply

  10. Great: no need to end my session and my touchpad works again. Thanks! <3

    Comment by Casey | September 4, 2012 | Reply

  11. great :) it’s a beautiful workaround.. I have been roaming around for past few weeks all the mint forums for a solution.. Thanks a ton

    Comment by sandeep | January 8, 2013 | Reply

  12. Hi.. I’ve had the same problem… I was able to take it one step further.. I placed the following in my /etc/rc.local

    modprobe -r psmouse
    modprobe psmouse proto=imps

    this appears to permanently fix the problem….

    Comment by SammIam | February 28, 2013 | Reply

  13. Thanks so much!

    Comment by Flan | May 19, 2013 | Reply

  14. Superb! Thanks a ton …

    Comment by uego | October 15, 2013 | Reply

  15. Thank you, that worked very well

    Comment by trit | October 31, 2013 | Reply

  16. Brilliant tip :) got my touchpad back with no reboot. Thanks

    Comment by Snapey | February 25, 2014 | Reply

  17. My keyboard freezes as well. I have a fresh install of Av Linux 6. Does anybody know how I can prevent the freezing? I find this very strange for an operating sustem that gets so many ” hallelujahs” for stability etc…hmmmmm…..a bit disappointing to say the least…

    I hope I get this fixed so that I still can enjoy the supposedly nice OS Linux, especially the Av variant with lots of audio and video stuff…;-)

    Comment by John | August 6, 2014 | Reply

  18. What the lightening of happiness has told me.
    Oakley Jupiter Squared http://www.ebuyaccessories.com

    Comment by Oakley Jupiter Squared | September 10, 2014 | Reply

  19. Fantastic workaround thanks! Seems I’ve been having this problem for ages.

    Comment by Gauche | October 5, 2014 | Reply

  20. It’s the first time I encounter the problem on Ubuntu 14.04.1 LTS.
    You saved me a lot of time searching a solution. Thanks guy !!

    Comment by Christophe | November 5, 2014 | Reply

  21. Thanks, but it didn’t work for me.

    Comment by isomorphismes | November 9, 2014 | Reply

  22. WORKED, five years LATER. I am using Ubuntu 14.10. Of course, we don’t know the CAUSE of the problem, but this temporary solution does work perfectly, and has been tested more than five times.

    Comment by David | November 28, 2014 | Reply

  23. […] mas info sobre esto pueden consultar este (inglés) o este otro […]

    Pingback by Problemas con el touchpad en Linux. | el Blog de Gastón | January 7, 2015 | Reply

  24. […] the command sudo rmmod psmouse to prevent a mouse click problem that randomly manifests itself. See https://xpapad.wordpress.com/2009/09/09/dealing-with-mouse-and-touchpad-freezes-in-linux/ for more info on this problem. I got tired of entering it on every […]

    Pingback by How do I start applications automatically on login? - Popular Ubuntu Questions | January 11, 2015 | Reply

  25. […] the command sudo rmmod psmouse to prevent a mouse click problem that randomly manifests itself. See https://xpapad.wordpress.com/2009/09/09/dealing-with-mouse-and-touchpad-freezes-in-linux/ for more info on this problem. I got tired of entering it on every […]

    Pingback by Answer: How do I start applications automatically on login? #it #fix #computers | StackCopy | February 10, 2015 | Reply

  26. Thank you for sharing It was very helpful thank you very much……

    Comment by Kalpesh mestri | June 20, 2015 | Reply

  27. still bug persists in Ubuntu 14.04 / Ubuntu 14.10. Thanks for your quick solution.

    Comment by sifar786 | August 13, 2015 | Reply

  28. […] the command sudo rmmod psmouse to prevent a mouse click problem that randomly manifests itself. See https://xpapad.wordpress.com/2009/09/09/dealing-with-mouse-and-touchpad-freezes-in-linux/ for more info on this problem. I got tired of entering it on every […]

    Pingback by Ubuntu:How do I start applications automatically on login? – Ubuntu Linux Questions | October 13, 2015 | Reply

  29. My mouse stops working at random times, probably due to broken motherboard i/o controller (keyboard keeps working). On Win 7 mouse starts working after short time but in Linux you have to manually reload the driver. Thanks!

    Comment by Saul Dekont | January 26, 2016 | Reply

  30. I have the same problem in Centos could you help me out to sort this problem

    Comment by Abishu | July 21, 2016 | Reply

  31. I still have to do this 7 years later, that’s just sad.

    Comment by Stveen | October 8, 2016 | Reply

  32. 8 years later still having this problem , freaking sad.

    Comment by diegodesiderio | October 30, 2016 | Reply

  33. Funny, it seems to repeat itself all the time. i have this issue, 14.04.5 LTS 2018.. huhhuh…

    Comment by Chris | February 5, 2018 | Reply

  34. Thank you!

    Comment by Arya | October 20, 2018 | Reply

  35. […] încă mai puteți ajunge la o consolă sau la un terminal, poate ați putea încerca această soluție. În caz contrar, cred că soluția lui sebelk este probabil un bun început. Dacă uciderea […]

    Pingback by Cursorul se blochează - taste pentru a elibera? | March 31, 2021 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: