You are not logged in.
I don't speak English very well .but please help me.
I'm using xfce and xscreensaver.
At first , I tried like this
$ sudo nano /etc/pm/sleep.d/00screensaver-lock
#!/bin/sh
#
# 00screensaver-lock: lock workstation on hibernate or suspend
case "$1" in
hibernate|suspend)
/usr/bin/xscreensaver-command -lock
;;
thaw|resume)
;;
*) exit $NA
;;
esac
$ sudo chmod 755 /etc/pm/sleep.d/00screensaver-lock
but it didn't work at all.
So I changed it
#!/bin/sh
#
# 00screensaver-lock: lock workstation on hibernate or suspend
case "$1" in
hibernate|suspend)
;;
thaw|resume)
/usr/bin/xscreensaver-command -lock
;;
*) exit $NA
;;
esac
Then it works , but the content is displayed momentarily just before the screen is locked.
how can i let it work completely?
I'm sorry about tags.
Last edited by remingtontonpon (2011-09-16 16:14:04)
I am sorry if my English is hard to understand. Please ask if you would like me to explain something again.
Offline
Hi, remingtontonpon, welcome to the forums.
When pasting code, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
like this
It makes the code more readable.
Offline