I am trying to run a script on-suspend to goto login screen.. so this is what i did
1. created a file called /etc/pm/suspend.d/01_gotologin with code below
2. Made the file executable "sudo chmod +x "
case "$1" in
now when i run the script on its own it works fine..
but on suspend i get this error in pm-suspend.log
What am I doing wrong.. please help...
/usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /etc/pm/sleep.d/01_gotologin suspend suspend:
/etc/pm/sleep.d/01_gotologin suspend suspend: Returned exit code 1.
Mon Apr 29 21:35:42 BST 2013: Inhibit found, will not perform suspend
Mon Apr 29 21:35:42 BST 2013: Running hooks for resume
Running hook /usr/lib/pm-utils/sleep.d/00powersave resume suspend: