Ubuntu 13.10: Touchpad Stops Working After Suspend – Solution

I am running Ubuntu 13.10 64bit on my Lenovo G500 laptop. I was facing a strange problem. Whenever my laptop went to the suspended state and I resumed it afterwards, its touchpad was not working. A little bit of Googling returned a simple solution that worked like a charm. I am summarizing that solution here in this post for future reference of me and anyone else facing a similar problem.

Open up the terminal and type following command:

sudo -i gedit /etc/pm/sleep.d/0000trackpad

It will create a new file named “0000trackpad” in the /etc/pm/sleep.d/ directory and subsequently open it for editing in gedit. Paste following code snippet in this window, save the file and close it.

#!/bin/sh
case "$1" in
    suspend|hibernate)
         modprobe -r psmouse ;;
    resume|thaw)
        modprobe psmouse ;;
esac

Back to the terminal, type following command to make the newly created file executable:

sudo chmod +x /etc/pm/sleep.d/0000trackpad

And … that’s it. Above steps solved the problem for me and hopefully will do the same for you too. Suspend/Resume your laptop a few times to make sure that your touchpad no longer gets disabled automatically.

Reference: http://ubuntuforums.org/showthread.php?t=2182922

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.