Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 05-14-2007, 10:54 AM   #1
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Xscreensaver & session-lock confusion, using XDM, KDE & Slackware.

The three situations, and their current functionality:

1 - Freshly booted machine sitting at login prompt; eventually the screen blanks and/or DPMS kicks in, but no screensaver ever happens here.
2 - I'm logged into my desktop and leave it idle; xscreensaver kicks in exactly as it should, eventually locks, and works perfectly as I have it configured. The unlock dialogue window is the fancy Xscreensaver one.
3 - Like 2, but instead of leaving it idle, I press 'Lock Session'. It indeed locks, but there's no screensaver, just a black screen, and then a different (plain) unlock dialogue window..

The goal: 1 and 3 above, should work like 2.

I've followed the instructions in the xscreensaver manpages, as well as on LQ here in several threads, for making the xscreensaver start on the initial login screen, but it doesn't work.
For # 3 above, I want to use Xscreensaver, NOT xlock, but cannot figure out what to change/edit to get it to work. Here's (some/all of) the various files I have lying around to get these working:

$HOME/.xscreensaver - my xscreensaver config file, which works perfectly.

/root/.xscreensaver - identical to the above file.

$HOME/.xinitrc AND /root/.xinitrc SYMLINKED to /etc/X11/xinit/xinitrc which contains the following:
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

# merge in defaults and keymaps
if [ -f $sysresources ]; then
    xrdb -merge $sysresources
if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
if [ -f $userresources ]; then
    xrdb -merge $userresources
if [ -f $usermodmap ]; then
    xmodmap $usermodmap
# Start the window manager:
nvidia-settings -l
$HOME/.Xresources contains:
xscreensaver -no-splash &
/usr/bin/kdesktop_lock contains:
# xscreensaver-command -lock
# xscreensaver-command -display :0.0 -lock
xscreensaver-command -lock || xlock $*
exit 0
/usr/lib/X11/xdm/Xsetup contains (among other stuff) the following lines at the top:
xhost +localhost
xscreensaver-command -exit
xscreensaver &
Per instructions elsewhere, I added to /usr/lib/X11/xdm/Xsession AND /usr/X11R6/lib/X11/xdm/Xsession the following lines:
# Section to run xscreensaver on system login screen:
xscreensaver-command -exit
xscreensaver &
# End xscreensaver info.
There are as you may know *numerous* other text files and scripts lying around, dealing with KDE, X and XDM, and I think I've played with all of them at some point over the past few months, but nothing seems to have any effect at all on situations 1 and 3 as I mentioned at the start of this post.
If someone can point me to a(nother) file(s) which need to be edited, or what to do with one of the ones mentioned here, I'd be pleased

PS - Also, I have taken to configuring my $HOME/.xscreensaver file by hand, for much better configurability. There's an option in it named 'memorylimit' which is not explained in the manpage. What's it for, and what units (b, kb, Mb) is it in? Currently it is set to 0 which presumably means unlimited, but if I were to actually set a value there, what would it be 'limiting' ? For example, would it restrict the size of the image-file my screensaver grabs?
Old 05-15-2007, 11:22 AM   #2
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
EDIT: I am stunned

Post contents removed, due to my stunned-ness. Jeez I'm dizzy sometimes!

LOL, just pretend this post is not here. The first post is the relevant one.

Last edited by GrapefruiTgirl; 05-15-2007 at 12:03 PM. Reason: total confusion on my part.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
xdm, xfce4 & xscreensaver mehlkelm Debian 9 03-27-2009 03:19 PM
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 06:10 AM
(FreeBSD && Fedora Core 4 && Slackware 10.0) Filesystem Support taylor_venable *BSD 1 07-14-2005 02:24 PM
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration