Here's what I did,
touch /tmp/fixit
cd /usr/lib/pm-utils/sleep.d/
created 80_fixit
#!/bin/sh
case "$1" in
suspend|hibernate) echo "suspend" >> /tmp/fixit ;;
resume|thaw) echo "resume" >> /tmp/fixt ;;
esac
exit 0
sudo chmod +x 80_fixit
Command sudo pm_suspend
... the laptop went to suspend mode (power button is blinking).
Pushed the power button, laptop woke up. Looked at the file /tmp/fixit, it says
suspend
resume
You can also check /var/log/pm-suspend.log
which logs the actions of every script that was in /usr/lib/pm-utils/sleep.d/ If I close the lid of my laptop, nothing happens since I have not defined this event as "suspend" -- probably I have it "do nothing"
I hope this helps.