Touchpad post hibernate on Ubuntu

My touchpad was playing up after resuming from hibernate on ubuntu 13.04 (I use syndaemon to deactivate it whilst typing). To fix it, put a script like the below in /etc/pm/sleep.d/ :


#!/bin/sh
case $1 in
suspend)
## COMMANDS THAT YOU WISH TO RUN BEFORE SUSPEND
#COMMAND1
echo "Suspending ..."
;;
resume)
## COMMANDS THAT YOU WISH TO RUN AFTER RESUME
echo "Resuming ..."
;;
hibernate)
## COMMANDS THAT YOU WISH TO RUN BEFORE HIBERNATE
#COMMAND3
echo "Hibernating ..."
;;
thaw)
## COMMANDS THAT YOU WISH TO RUN AFTER RESUME FROM SUSPEND TO DISK
#COMMAND4
synclient TouchpadOff=0
killall syndaemon; syndaemon -d -i 0.5 -R
#echo thawing > /tmp/powercheck
;;
esac

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>