Page 1 of 1

Unable To Lock XScreensaver in XFCE 4.10

Posted: Mon 28 Oct 2013, 11:04
by jimwg
Greetings!

I'm unable to make Xscreensaver lock in XFCE 4.10 in Precise Retro 5.1.1 32bit, despite toggling the lock check. Xscreensaver otherwise works. When I use the panel buttons to drop xscreensaver's function panel another box also drops down stating:

xscreensaver-demo is running as user "root" on host "puppypc8702".
But the xscreensaver managing display ":0.0"
is running as user "nobody" on host "puppypc8702".

Since they are different users, they won't be reading/writing
the same ~/.xscreensaver file, so xscreensaver-demo isn't
going to work right.

You should either re-run xscreensaver-demo as "nobody", or re-run
xscreensaver as "root".

I don't know whether this impacts my locking problem. I was told to use xflock4 with xscreensaver but that locks me out totally because my password doesn't work with it and besides it isn't a timed lock-out like xscreensaver is. As an aside, when I boot-up it's in basic JWM mode with the XFCE session box appearing to pick and launch me into full XFCE mode, though I can switch between them via the Swapicons app hot-corner, in case this might have a bearing on my issue.

Thanks for any input!

Jim in NYC

Posted: Wed 06 Nov 2013, 05:44
by puppyluvr
:D Hello, Try launching it with this script:

#!/ bin/sh
cd /
chmod 777 root
su nobody -c xscreensaver-demo
#exit
cd /
chmod 755 root

Posted: Fri 08 Nov 2013, 21:10
by jimwg
puppyluvr wrote::D Hello, Try launching it with this script:

#!/ bin/ sh
cd /
chmod 777 root
su nobody -c xscreensaver-demo
#exit
cd /
chmod 755 root
Going to give it a whirl tonight! Thanks!

Jim in NYC

Posted: Thu 07 Aug 2014, 00:01
by zandarian
The script has 2 little mistakes (blank spaces), just in the beginning. Instead of ...

Code: Select all

#!/ bin/ sh
it's ...

Code: Select all

#!/bin/sh
If you don't correct it you can't run the program. You get this message:
Failed to execute child process "/root/viendo.sh" (Permission denied)
When you correct the script and run it (before you have to give it the execution permission) you get this message:
Warning: Directory does not exist: "/usr/share/wallpapers"
You can solve it creating it or changing the folder or directory there.

Sometimes you get this:
The XScreenSaver daemon doesn't seem to be running on display ":0". Launch it now?
I think that you have to click on "Yes" then.

This way the XScreenSaver application seems to work well, except for the options "Lock Screen After", "Text Manipulation" and "Image Manipulation" (instead of our images or photos default ones are used by the modes that use them). The "Display Power Management" seems to work OK.

Posted: Thu 07 Aug 2014, 00:03
by zandarian
My last message is for Slacko Puppy version 5.7 on a Live USB.

Posted: Thu 07 Aug 2014, 00:06
by puppyluvr
:D Hello,
A typo corrected 18 months late!!

Posted: Thu 07 Aug 2014, 00:24
by zandarian
Only the half, 9!! :-) I first saw this thread this week ... :-)

OK, and I tested it, and gave more info ...

Posted: Thu 07 Aug 2014, 00:26
by zandarian
In this year's Slacko if you run XScreensaver without the above script you also get the root/nobody error message.

Posted: Thu 07 Aug 2014, 13:08
by zandarian
@puppyluvr: thanks for editing the script. There is still a blank space in "#!/ bin/sh". If you could remove it so it's OK, please.

Posted: Thu 07 Aug 2014, 13:34
by zandarian
In Slacko 5.7 by default we have a very simple screen saver (blank the screen): puxX (GUI for xset). It's in Menu - Desktop - pupX set properties of X - Screensaver.

And we also have by default the ones of xlock (password protected). If you run it with no parameters a random screensaver (animation mode) appears. To choose one we can run:

Code: Select all

xlock -mode goop
or

Code: Select all

xlock -mode matrix
or
...

N.B.: we only have some of the modes of http://linux.die.net/man/1/xlock, seen in http://xlock.free.fr/screen.php3. These ones: http://puppylinuxfaq.org/bundled-softwa ... saver.html (I thiink instead of "You set a hot key" it should say "You set a password").

Posted: Thu 07 Aug 2014, 13:39
by zandarian
xlock locks the local X display (screen) until a password is entered.

Posted: Thu 07 Aug 2014, 13:47
by zandarian
The DPMS parameters (dpmsstandby, dpmssuspend and dpmsoff) don't work, so xlock is not valid to turn the screen off or make it "sleep" or "rest".

Posted: Thu 07 Aug 2014, 13:57
by zandarian
If we run xlock from the desktop (lock) or menu (->System) icons by default it uses the goop mode. We can change it right clicking on the desktop icon - Configure screen locking.

Posted: Thu 07 Aug 2014, 16:32
by zandarian
Just in case: I use the default window manager (only one by default) of Slacko: JWM. I haven't used XFCE with Puppy Linux.