Re: Running a command on wake-up from suspend
Hey, I don't really understand this stuff, but I'd like to run a command every time the computer wakes from sleep or hibernate. Should I modify #2 in this thread and save it as "/etc/pm/sleep.d/90_psmouse" ?
It would be great if I understood what was happening here too.
Thanks for any answers to this question.
Code:
#!/bin/sh
# Arguments can be:
# "suspend suspend"
# "resume suspend"
# "thaw hibernate"
case "$1" in
"suspend"
sudo modprobe -r psmouse; sleep 2; sudo modprobe psmouse
;;
"resume"
sudo modprobe -r psmouse; sleep 2; sudo modprobe psmouse
esac
theWrk@Lh-owon-sun:~$ ssh larry@192.168.1.36
larry@192.168.1.36's password:
Last login: Fri Jan 16 01:07:10 2009
larry@zapcon:~$ music123 ~/Music/Abba/"Dancing Queen.mp3"
Bookmarks