You are not logged in.

#1 2011-09-16 11:04:52

remingtontonpon
Member
Registered: 2011-09-16
Posts: 24

The screen will not locked well after suspend

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

#2 2011-09-16 15:23:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: The screen will not locked well after suspend

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

Board footer

Powered by FluxBB