Page 1 of 2

Screen won't lock in Mate (Also, LXDE)

Posted: 22 Aug 2013, 04:08
by dochood
I am not able to get the screen to lock in Mate in Porteus v2.1. I had the same problem in LXDE v2.1RC. When I try to lock the screen immediately from the Control Center -> Screen Saver section, I get the message:

Code: Select all

Error: xscreensaver-demo: locking not enabled
I was finally able to install a package called "xlock", that prompts for a different password, then locks the screen. However, that is not as seamless as just entering your login password.

I did some Googling when 2.1RC came out, and I thought I saw some stuff on permissions to access the password file, but I don't remember what it was, or where I found it.

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 22 Aug 2013, 12:44
by brokenman
I can't reproduce this on the 2 laptops I have here at the moment. In MATE under Porteus v2.1 clicking on the System menu and then 'Lock Screen' locks the screen and entering the guest password unlocks it.

1) Are you booting into a guest account?
2) Does: ls -l /usr/bin/xscreensaver show this: -rwxr-s--x ?

Please boot into freshmode (with base_only cheatcode) and confirm.

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 22 Aug 2013, 23:52
by dochood
I have followed these instructions, and I can confirm that it is still a problem. I have seen this on two different computers:

1) AMD Phenom IIx6 1090T Desktop with NVidia GTX 460 video card
2) AMD A8-4500M Laptop (from Acer)

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 23 Aug 2013, 17:33
by brokenman
Please confirm:

You are booting into a guest account (not root).
The menu item (at the top of the desktop) System/Lock Screen doesn't work.

I just tried on a third machine and this worked on all machines. I'd like to reproduce it so I can troubleshoot it.

Can anyone else confirm this please?

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 25 Aug 2013, 10:30
by sean
@dochood,

Could you please tell us the exact "mode" and/or "screensaver" you have selected under Screensaver Preferences.

@brokenman,

I can not confirm this either, on my Dell Optiplex desktop. ls -l /usr/bin/xscreensaver shows exactly this: -rwxr-s--x. Using guest user.

Is it possible dochood has selected a screensaver which is not installed or has some permission of it's own which gives his error message?

Sean

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 25 Aug 2013, 22:13
by brokenman
Without an answer from dochood confirming he is not running as root then to be honest I don't know what the problem is. xscreensaver is not designed (and I would always advise against it) to be run in root mode.

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 26 Aug 2013, 01:03
by dochood
brokenman wrote:Without an answer from dochood confirming he is not running as root then to be honest I don't know what the problem is. xscreensaver is not designed (and I would always advise against it) to be run in root mode.
I was in the guest account. None of the screen savers would lock (although they would go into screensaver mode). I have seen this on three different computers now.

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 26 Aug 2013, 01:03
by dochood
I have also verified that the permissions on the file were correct.

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 27 Aug 2013, 03:06
by brokenman
Thanks dochood.

Please give the output from a guest console of:
xscreensaver-command -exit
xscreensaver &
xscreensaver-command -lock

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 31 Aug 2013, 19:49
by dochood

Code: Select all

guest@porteus:~$ xscreensaver-command -exit
xscreensaver-command: exiting.

guest@porteus:~$ xscreensaver &
[1] 3531
guest@porteus:~$ xscreensaver: 14:48:41: couldn't get password of "guest"
xscreensaver: 14:48:41: couldn't get password of "root"
xscreensaver: 14:48:41: locking is disabled (error getting password).
xscreensaver: 14:48:41: does xscreensaver need to be setuid?  consult the manual.

guest@porteus:~$ xscreensaver-command -lock
xscreensaver-command: locking not enabled.

guest@porteus:~$ 

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 31 Aug 2013, 20:12
by dochood
The above output was booting from the CD, selecting "Copy to RAM".

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 01 Sep 2013, 13:40
by brokenman
So you're booting from a stock standard Porteus with no additions,and nothing in modules folder or rootcopy folder. All permissions should be ok.
Did you download the ISO through the web wizard of download directly from server?

Just to be sure about permissions, please check that /etc/shadow is part of the shadow group and also xscreensaver:

-rwxr-s--x 1 root shadow 235560 Aug 8 10:44 /usr/bin/xscreensaver*

If /usr/bin/xscreensaver is like this then permissions to have access to password should be ok.

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 01 Sep 2013, 14:40
by francois
I am not able to get the screen to lock in Mate in Porteus v2.1. I had the same problem in LXDE v2.1RC. When I try to lock the screen immediately from the Control Center -> Screen Saver section
There is no problem for me here in guest mode.

@dochood:
Did you tried this in guest mode always fresh?

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 02 Sep 2013, 00:42
by dochood
francois wrote:
I am not able to get the screen to lock in Mate in Porteus v2.1. I had the same problem in LXDE v2.1RC. When I try to lock the screen immediately from the Control Center -> Screen Saver section
There is no problem for me here in guest mode.

@dochood:
Did you tried this in guest mode always fresh?
Yes... logged in as guest, selected "always fresh" from my USB boot. Same thing. Locking does not work for me.

Re: Screen won't lock in Mate (Also, LXDE)

Posted: 03 Sep 2013, 23:18
by brokenman
Please confirm permissions of xscreensaver and /etc/shadow (as mentioned above). If the error is that the password can't be accessed then I originally saw this when xscreensaver binary was not a part of the shadow group.