2

Suspend script question

view story
linux-howto

http://www.linuxquestions.org – Hello! I'd like to execute a script after suspend to RAM. What I did: Put a test script file into: /usr/lib/pm-utils/sleep.d Set it to executable. The content is: Code: #!/bin/sh case "$1" in     thaw|resume)       /usr/bin/kdialog --msgbox "Boo"       esac If I type into shell: ' /usr/lib/pm-utils/sleep.d/myscript.sh resume ' then it shows the dialog. But not after returning from suspend, although it should, if I know it right. What do I do wrong? System is: Kubuntu 9.10 updated / 2.6.31-19-generic #56 x86_64 Thanks in advance. (HowTos)