Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Use your screensaver as your login screen background
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Thu Feb 26, 2004 1:52 pm    Post subject: Use your screensaver as your login screen background Reply with quote

There's lots of beautiful screensavers in Portage, the best perhaps being skyrocket and the rss-glx collection.
But what's the point of having all this eyecandy if you hardly ever get to see it? Wouldn't it be better to have it waiting for you when you come to log in via GDM? Well, now you can!
Screenshot (afraid that's not a very good one - it's a bit hit-and-miss as PrintScreen doesn't work in gdm, so I had to set xwd on a timer then Ctrl-Alt-F7 back to the login screen)

OK, first thing is to set up gdm (I use 2.5.90.1, but it looks like 2.4.1.7 should work). As root, launch gdmsetup and set local login to standard greeter with no background. Then open xscreensaver-demo, find your favourite screensaver, hit Settings, Advanced, and note down the command line. Convert the program to a full path - if it isn't in your path, it's probably in /usr/lib/xscreensaver.
Then, edit /etc/X11/gdm/gdm.conf, find the BackgroundProgram line and set it to something like:
Code:
BackgroundProgram=/usr/lib/xscreensaver/skyrocket --root


Now restart gdm (/etc/init.d/xdm restart) and watch the screensaver paint the root window behind the login box! What other OS can do that? :P

Problems
If it doesn't work, it's probably because the permisions on your hardware accelerated video driver nodes are too restrictive. Note that the background program will run as gdm, not as root, so if you're using an nvidia card with the binary drivers you need to make sure that gdm can write to /dev/nvidia0 and /dev/nvidiactl. I acheive this by making gdm a member of the video group and making /dev/nvidia* owned by root:video, permissions 660 in /etc/devfs.d/nvidia.conf:
Code:
LOOKUP          ^nvidia           MODLOAD nvidia
REGISTER        ^nvidia           PERMISSIONS root.video 660
and also making sure both columns are 0660 for the <dri> alias in /etc/security/console.perms:
Code:
<xconsole> 0660 <dri>        0660 root.video


Last edited by ecatmur on Thu Mar 11, 2004 9:45 am; edited 3 times in total
Back to top
View user's profile Send private message
snakattak3
Guru
Guru


Joined: 11 Dec 2002
Posts: 468
Location: Seattle

PostPosted: Thu Feb 26, 2004 2:25 pm    Post subject: Reply with quote

Thats really cool, gonna have to try that when I get home tonight. You think it would work with KDM as well?
_________________
Ban Reality TV!
Adopt an Unanswered Post
Back to top
View user's profile Send private message
RedDawn
Guru
Guru


Joined: 22 Sep 2003
Posts: 368
Location: Los Angeles, California

PostPosted: Sun Feb 29, 2004 4:35 am    Post subject: Does it? Reply with quote

Does this work with kde....

I Like it but not enought to use the Gnome gdm crap thingi..

i dont like Gnome...

So does this work on KDM.. :P (kde 3.2 )
Back to top
View user's profile Send private message
sigix
Apprentice
Apprentice


Joined: 25 Jul 2003
Posts: 192

PostPosted: Sun Feb 29, 2004 11:31 am    Post subject: Reply with quote

:)
aah nice!
worked with gnome, not tried with kdm
Back to top
View user's profile Send private message
deadaim
Guru
Guru


Joined: 27 Oct 2003
Posts: 467
Location: Florida

PostPosted: Sun Feb 29, 2004 4:51 pm    Post subject: Reply with quote

Does this work with xdm?
Back to top
View user's profile Send private message
drakos7
Apprentice
Apprentice


Joined: 21 Feb 2003
Posts: 294
Location: Rockville, MD, USA, Earth, Sol

PostPosted: Wed Mar 03, 2004 4:57 pm    Post subject: Reply with quote

Nice work. Now I am greeted with the BSOD: Blue Screen of the Day. :wink:
_________________
"People demand freedom of speech as a compensation for the freedom of thought which they seldom use." Soren Kierkegaard (1813 - 1855)
Back to top
View user's profile Send private message
christsong84
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1003
Location: GMT-8 (Spokane)

PostPosted: Wed Mar 03, 2004 5:54 pm    Post subject: Reply with quote

drakos7 wrote:
Nice work. Now I am greeted with the BSOD: Blue Screen of the Day. :wink:


ahh...good 'ol memories from back in the day when running NT...*lost in memories* ;)
_________________
while(true) {self.input(sugar);} :twisted:
Back to top
View user's profile Send private message
Bastux
Guru
Guru


Joined: 15 Dec 2002
Posts: 369
Location: France - Paris

PostPosted: Wed Mar 03, 2004 6:05 pm    Post subject: Reply with quote

I'm very impressed! 8) 8) 8) 8)
Very very very good idea!
Back to top
View user's profile Send private message
mahir
l33t
l33t


Joined: 05 Dec 2003
Posts: 725
Location: London

PostPosted: Fri Mar 05, 2004 10:23 am    Post subject: mmm Reply with quote

i dont have a gfd.conf
i have a gdm.conf

and there is no background line?

what do i do?
_________________
"wa ma tawfiqi illah billah"
Mahir Sayar
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Fri Mar 05, 2004 11:23 am    Post subject: Reply with quote

Thanks for pointing that out; corrected.
Not sure about the missing line: you could try putting it in or if that doesn't work you may need to upgrade gdm.
Back to top
View user's profile Send private message
NitroPye
Apprentice
Apprentice


Joined: 12 May 2003
Posts: 152
Location: Wish I was in England

PostPosted: Wed Mar 10, 2004 3:07 pm    Post subject: Reply with quote

I think it should also be "-root" instead of "--root". I don't know though, because I cannot get it to work. I created the file /etc/devfs.d/nvidia.conf and added to it [code]/dev/nvidia* root:video 600[code] and I get an error on boot.
_________________
waka waka
me and my fun work
Back to top
View user's profile Send private message
TimG
n00b
n00b


Joined: 03 Jun 2003
Posts: 62
Location: Houston, TX

PostPosted: Wed Mar 10, 2004 3:40 pm    Post subject: Reply with quote

NitroPye wrote:
I created the file /etc/devfs.d/nvidia.conf and added to it
Code:
/dev/nvidia* root:video 600
and I get an error on boot.


I did the same thing. It caused devfs to error out on boot and left me with / mounted read-only and no useful devices. I ended up booting off cd to fix it.

I looked in the devfsd.conf and it appears the line in nvidia.conf should look like this:
Code:
REGISTER       nvidia.*       PERMISSIONS root.video 660


It works for me. Good luck.
Back to top
View user's profile Send private message
agmoe
n00b
n00b


Joined: 01 Apr 2003
Posts: 8
Location: Sweden

PostPosted: Wed Mar 10, 2004 5:04 pm    Post subject: Reply with quote

Great tip!

It works excellent and looks very nice, thanks!
_________________
God apa gavs galna anlag svag apa dog
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Thu Mar 11, 2004 9:48 am    Post subject: Reply with quote

NitroPye wrote:
I think it should also be "-root" instead of "--root". I don't know though, because I cannot get it to work. I created the file /etc/devfs.d/nvidia.conf and added to it [code]/dev/nvidia* root:video 600[code] and I get an error on boot.
No, it definitely is "--root" for skyrocket, though some screensavers use "-root" or something else even.

Sorry for breaking your system, glad you managed to fix it. I guess I should have been more clear that that was the permissions to try to acheive, not the actual code to type in :oops:
Back to top
View user's profile Send private message
Souperman
Guru
Guru


Joined: 14 Jul 2003
Posts: 449
Location: Cape Town, South Africa

PostPosted: Thu Mar 11, 2004 10:54 am    Post subject: Reply with quote

Code:

BackgroundProgram=/usr/lib/xscreensaver/xmatrix -root -small -delay 20000

:mrgreen:
_________________
moo
Back to top
View user's profile Send private message
NitroPye
Apprentice
Apprentice


Joined: 12 May 2003
Posts: 152
Location: Wish I was in England

PostPosted: Thu Mar 11, 2004 11:33 am    Post subject: Reply with quote

Nah, I should have checked devfs.conf instead of just going... "OH my god its broke run away run away!!" ... in a search for the holy grail style. :D
_________________
waka waka
me and my fun work
Back to top
View user's profile Send private message
jkcunningham
l33t
l33t


Joined: 28 Apr 2003
Posts: 649
Location: 47.49N 121.79W

PostPosted: Tue Apr 13, 2004 6:20 pm    Post subject: Reply with quote

Has anyone gotten this to work with xdm?

-jeff
Back to top
View user's profile Send private message
Souperman
Guru
Guru


Joined: 14 Jul 2003
Posts: 449
Location: Cape Town, South Africa

PostPosted: Tue Apr 13, 2004 7:21 pm    Post subject: Reply with quote

jkcunningham wrote:
Has anyone gotten this to work with xdm?

-jeff

It's a feature specific to GDM, so no. Feel free to add support and submit a patch. ;)
_________________
moo
Back to top
View user's profile Send private message
pathose
Retired Dev
Retired Dev


Joined: 08 Nov 2003
Posts: 35
Location: Ohio, USA

PostPosted: Wed Apr 14, 2004 2:32 am    Post subject: Reply with quote

Those of you who've gotten this working, can you answer me this question? Once you've logged in, the xscreensaver continue to run in the background or is that process terminated? I know that when you log into gnome, xscreensaver is started, but it's launched as your user's process, whereas if it's acting as the background for gdm, it would (presumably) be run as gdm's process. I ask because I would be interested in having a glx screensaver (from x11-misc/rss-glx) as my background, but I won't want it constantly running and hogging resources for nothing (while i'm not looking at the login screen).
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Wed Apr 14, 2004 4:53 am    Post subject: Reply with quote

The background program process is terminated on login, with SIGTERM.
This means that you must ensure that any children of the background program have the SIGTERM signal propagated to them - this can be a problem when using a script as the background program.
However for xscreensaver hacks it will work fine.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
timaios
n00b
n00b


Joined: 20 Mar 2004
Posts: 14

PostPosted: Tue Jun 01, 2004 11:55 pm    Post subject: Re: Does it? Reply with quote

RedDawn wrote:
Does this work with kde....

I Like it but not enought to use the Gnome gdm crap thingi..

i dont like Gnome...

So does this work on KDM.. :P (kde 3.2 )



I dont know how it works with kdm, but
when you are running KDE if you disable the icons on your desktop, and run any of the above commands ,you can have a screensaver running as your desktop.
I recomend "/usr/lib/xscreensaver/starwars -root -lines 0", which is a very light one
(3,4%cpu on p4 1.9)!!! :D
Back to top
View user's profile Send private message
MighMoS
Guru
Guru


Joined: 24 Apr 2003
Posts: 416
Location: @ ~

PostPosted: Fri Jun 04, 2004 3:17 am    Post subject: Reply with quote

Is there someway to put this into a theme file?
_________________
jabber: MighMoS@jabber.org

localhost # export HOME=`which heart`
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Fri Jun 04, 2004 4:06 am    Post subject: Reply with quote

Alterations to a config file? I doubt it, sorry.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
peterton
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 110

PostPosted: Fri Jun 04, 2004 9:36 am    Post subject: Reply with quote

Shouldn't editing /etc/X11/xdm/Xsetup_0 and adding a line /usr/lib/xscreensaver/xmatrix -root & be enough to get it working in xdm? Haven't tried it as I've got too many windows open and don't want to log out.
[edit]works :D [/edit]


Last edited by peterton on Tue Jun 29, 2004 2:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
dmitrio
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2002
Posts: 115
Location: Pago Pago

PostPosted: Mon Jun 28, 2004 3:15 pm    Post subject: :. copied to gentoo-wiki.com Reply with quote

I have copied this, with permission of ecatmur, to gentoo-wiki.com
http://gentoo-wiki.com/TIP_Screensaver_in_Background
If you see anything that should be added or changed, feel free to do so.

Thank you for a great HOWTO.
_________________

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum