Hi All,
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
Code:
#!/bin/bash
case "$1" in
suspend)
/usr/lib/lightdm/lightdm/gdmflexiserver
;;
esac
2. Made the file executable "sudo chmod +x "
now when i run the script on its own it works fine..
but on suspend i get this error in pm-suspend.log
Code:
/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:
What am I doing wrong.. please help...