Unable To Lock XScreensaver in XFCE 4.10

Booting, installing, newbie
Post Reply
Message
Author
jimwg
Posts: 121
Joined: Mon 19 Aug 2013, 02:44

Unable To Lock XScreensaver in XFCE 4.10

#1 Post 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

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#2 Post 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
Last edited by puppyluvr on Thu 07 Aug 2014, 00:05, edited 1 time in total.
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

jimwg
Posts: 121
Joined: Mon 19 Aug 2013, 02:44

#3 Post 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

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#4 Post 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.

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#5 Post by zandarian »

My last message is for Slacko Puppy version 5.7 on a Live USB.

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#6 Post by puppyluvr »

:D Hello,
A typo corrected 18 months late!!
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#7 Post by zandarian »

Only the half, 9!! :-) I first saw this thread this week ... :-)

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

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#8 Post by zandarian »

In this year's Slacko if you run XScreensaver without the above script you also get the root/nobody error message.

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#9 Post 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.

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#10 Post 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").

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#11 Post by zandarian »

xlock locks the local X display (screen) until a password is entered.

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#12 Post 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".

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#13 Post 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.

zandarian
Posts: 117
Joined: Wed 14 Oct 2009, 21:10

#14 Post 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.

Post Reply