Comment 57 for bug 769435

Revision history for this message
Miklos Juhasz (mjuhasz) wrote :

Luke Scharf: You can create a file /usr/lib/pm-utils/sleep.d/02touchpad with the following content:

---- CUT HERE ----
#!/bin/bash

if [ -e '/usr/lib/pm-utils/functions' ];then
. /usr/lib/pm-utils/functions
fi

suspend_bcm5974() { /sbin/rmmod bcm5974; }
resume_bcm5974() { /sbin/modprobe bcm5974; }

case "$1" in
    suspend|hibernate)
        suspend_bcm5974;
        ;;
    thaw|resume)
        resume_bcm5974;
        ;;
    *)
        ;;
esac

exit $?
---- CUT HERE ----

Make it executable and it will remove/load the module for the touchpad. That's how I did it on my MacBookPro.
This file should better be in /etc/pm/sleep.d/ actually, you can give it a try. I think a file in /etc/pm/config.d/ with a line: SUSPEND_MODULES="bcm5974" would also do the job.