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.
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 pm-utils/ functions
. /usr/lib/
fi
suspend_bcm5974() { /sbin/rmmod bcm5974; }
resume_bcm5974() { /sbin/modprobe bcm5974; }
case "$1" in hibernate)
suspend_ bcm5974;
resume_ bcm5974;
suspend|
;;
thaw|resume)
;;
*)
;;
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. MODULES= "bcm5974" would also do the job.
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_