You are not logged in.
After resuming, I noticed that mail-notification was not working, so I have to restart it everytime. Any way to do this automatically?
I put this into /etc/pm/sleep.d/10mail-notification:
#!/bin/bash
case $1 in
hibernate)
echo "Hey guy, we are going to suspend to disk!"
;;
suspend)
echo "Oh, this time we are doing a suspend to RAM. Cool!"
;;
thaw)
echo "oh, suspend to disk is over, we are resuming..."
;;
resume)
echo "hey, the suspend to RAM seems to be over..."
mail-notification -q && mail-notification
;;
*) echo "somebody is calling me totally wrong."
;;
esac
Issue seems to be solved. Thanks a lot, mrshu!
Last edited by awayand (2011-11-04 11:59:30)
Offline
It should not be a problem to create a custom hook to restart mail-notification on resume.
In case you are using pm-suspend you can simply customize this script from the wiki
Offline
thanks for the pointer! Exactly what I was looking for without knowing what I was looking for.
Offline