View previous topic :: View next topic |
Author |
Message |
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Thu Feb 26, 2004 1:52 pm Post subject: Use your screensaver as your login screen background |
|
|
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?
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 |
|
|
snakattak3 Guru
Joined: 11 Dec 2002 Posts: 468 Location: Seattle
|
Posted: Thu Feb 26, 2004 2:25 pm Post subject: |
|
|
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 |
|
|
RedDawn Guru
Joined: 22 Sep 2003 Posts: 368 Location: Los Angeles, California
|
Posted: Sun Feb 29, 2004 4:35 am Post subject: Does it? |
|
|
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.. (kde 3.2 ) |
|
Back to top |
|
|
sigix Apprentice
Joined: 25 Jul 2003 Posts: 192
|
Posted: Sun Feb 29, 2004 11:31 am Post subject: |
|
|
aah nice!
worked with gnome, not tried with kdm |
|
Back to top |
|
|
deadaim Guru
Joined: 27 Oct 2003 Posts: 467 Location: Florida
|
Posted: Sun Feb 29, 2004 4:51 pm Post subject: |
|
|
Does this work with xdm? |
|
Back to top |
|
|
drakos7 Apprentice
Joined: 21 Feb 2003 Posts: 294 Location: Rockville, MD, USA, Earth, Sol
|
Posted: Wed Mar 03, 2004 4:57 pm Post subject: |
|
|
Nice work. Now I am greeted with the BSOD: Blue Screen of the Day. _________________ "People demand freedom of speech as a compensation for the freedom of thought which they seldom use." Soren Kierkegaard (1813 - 1855) |
|
Back to top |
|
|
christsong84 Veteran
Joined: 06 Apr 2003 Posts: 1003 Location: GMT-8 (Spokane)
|
Posted: Wed Mar 03, 2004 5:54 pm Post subject: |
|
|
drakos7 wrote: | Nice work. Now I am greeted with the BSOD: Blue Screen of the Day. |
ahh...good 'ol memories from back in the day when running NT...*lost in memories* _________________ while(true) {self.input(sugar);} |
|
Back to top |
|
|
Bastux Guru
Joined: 15 Dec 2002 Posts: 369 Location: France - Paris
|
Posted: Wed Mar 03, 2004 6:05 pm Post subject: |
|
|
I'm very impressed!
Very very very good idea! |
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Fri Mar 05, 2004 10:23 am Post subject: mmm |
|
|
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 |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Fri Mar 05, 2004 11:23 am Post subject: |
|
|
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 |
|
|
NitroPye Apprentice
Joined: 12 May 2003 Posts: 152 Location: Wish I was in England
|
Posted: Wed Mar 10, 2004 3:07 pm Post subject: |
|
|
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 |
|
|
TimG n00b
Joined: 03 Jun 2003 Posts: 62 Location: Houston, TX
|
Posted: Wed Mar 10, 2004 3:40 pm Post subject: |
|
|
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 |
|
|
agmoe n00b
Joined: 01 Apr 2003 Posts: 8 Location: Sweden
|
Posted: Wed Mar 10, 2004 5:04 pm Post subject: |
|
|
Great tip!
It works excellent and looks very nice, thanks! _________________ God apa gavs galna anlag svag apa dog |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Thu Mar 11, 2004 9:48 am Post subject: |
|
|
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 |
|
Back to top |
|
|
Souperman Guru
Joined: 14 Jul 2003 Posts: 449 Location: Cape Town, South Africa
|
Posted: Thu Mar 11, 2004 10:54 am Post subject: |
|
|
Code: |
BackgroundProgram=/usr/lib/xscreensaver/xmatrix -root -small -delay 20000
|
_________________ moo |
|
Back to top |
|
|
NitroPye Apprentice
Joined: 12 May 2003 Posts: 152 Location: Wish I was in England
|
Posted: Thu Mar 11, 2004 11:33 am Post subject: |
|
|
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. _________________ waka waka
me and my fun work |
|
Back to top |
|
|
jkcunningham l33t
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Tue Apr 13, 2004 6:20 pm Post subject: |
|
|
Has anyone gotten this to work with xdm?
-jeff |
|
Back to top |
|
|
Souperman Guru
Joined: 14 Jul 2003 Posts: 449 Location: Cape Town, South Africa
|
Posted: Tue Apr 13, 2004 7:21 pm Post subject: |
|
|
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 |
|
|
pathose Retired Dev
Joined: 08 Nov 2003 Posts: 35 Location: Ohio, USA
|
Posted: Wed Apr 14, 2004 2:32 am Post subject: |
|
|
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 |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
Posted: Wed Apr 14, 2004 4:53 am Post subject: |
|
|
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 |
|
|
timaios n00b
Joined: 20 Mar 2004 Posts: 14
|
Posted: Tue Jun 01, 2004 11:55 pm Post subject: Re: Does it? |
|
|
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.. (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)!!! |
|
Back to top |
|
|
MighMoS Guru
Joined: 24 Apr 2003 Posts: 416 Location: @ ~
|
Posted: Fri Jun 04, 2004 3:17 am Post subject: |
|
|
Is there someway to put this into a theme file? _________________ jabber: MighMoS@jabber.org
localhost # export HOME=`which heart` |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
peterton Tux's lil' helper
Joined: 20 Aug 2003 Posts: 110
|
Posted: Fri Jun 04, 2004 9:36 am Post subject: |
|
|
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 [/edit]
Last edited by peterton on Tue Jun 29, 2004 2:08 pm; edited 1 time in total |
|
Back to top |
|
|
dmitrio Tux's lil' helper
Joined: 10 Dec 2002 Posts: 115 Location: Pago Pago
|
Posted: Mon Jun 28, 2004 3:15 pm Post subject: :. copied to gentoo-wiki.com |
|
|
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 |
|
|
|