Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

getting xscreensaver to run.

3 views
Skip to first unread message

George Hartzell

unread,
Jan 2, 2010, 6:31:28 PM1/2/10
to freebs...@freebsd.org

I rebuilt my desktop machine over the holidays (Mac Pro, running
RELENG_8 with MBR based ZFS mirrored drives, etc...) using the current
version of ports.

I chose to install xscreensaver instead of the gnome screen saver
(which is how I usually do things), but I can't seem to get it to
start. This is how I used to run and I don't know what I've done
differently.

I launch gnome using startx, with an .xinitrc that exec's
gnome-session.

If I go to System->Preferences->Screensaver it warns me that the
screensaver isn't running and gives me the chance to start it. If I
start it then it works as expected. But after logging out and then
restarting an gnome session I find that it is again not running.

I've tried starting it via the Preferences route, then running

gnome-save-session --gui

but it still doesn't get started when I create a session.

If I capture the output from startx I find some messages from
xscreensaver about

initial effective uid/gid was root/hartzell (0/1001)
running as hartzell/hartzell (1001/1001)

Can't open display: :0.0
initial effective uid/gid was root/hartzell (0/1001)
running as hartzell/hartzell (1001/1001)

This is probably because you're logging in as root. You
shouldn't log in as root: you should log in as a normal user,
and then `su' as needed. If you insist on logging in as root, you
will have to turn off X's security features before xscreensaver will
work.

Please read the manual and FAQ for more information:

http://www.jwz.org/xscreensaver/faq.html
http://www.jwz.org/xscreensaver/man.html

I'm running as myself, but /usr/local/bin/Xorg is setuid and owned by
root.

What's the correct way to get xscreensaver to run automagically under
gnome?

Thanks,

g.

Joe Marcus Clarke

unread,
Jan 2, 2010, 7:53:46 PM1/2/10
to hart...@alerce.com, freebs...@freebsd.org

I'm not sure if this option is still valid. You might try simply adding
xscreensaver to the list of Startup Programs in the Startup Applications
capplet.

Joe

--
PGP Key : http://www.marcuscom.com/pgp.asc

signature.asc

George Hartzell

unread,
Jan 2, 2010, 8:48:32 PM1/2/10
to Joe Marcus Clarke, hart...@alerce.com, freebs...@freebsd.org
Joe Marcus Clarke writes:
> On Sat, 2010-01-02 at 15:31 -0800, George Hartzell wrote:
> > I rebuilt my desktop machine over the holidays (Mac Pro, running
> > RELENG_8 with MBR based ZFS mirrored drives, etc...) using the current
> > version of ports.
> >
> > I chose to install xscreensaver instead of the gnome screen saver
> > (which is how I usually do things), but I can't seem to get it to
> > start. This is how I used to run and I don't know what I've done
> > differently.
> >
> > [...]

> >
> > What's the correct way to get xscreensaver to run automagically under
> > gnome?
>
> I'm not sure if this option is still valid. You might try simply adding
> xscreensaver to the list of Startup Programs in the Startup Applications
> capplet.
>
> Joe

Adding it to the startup programs seems to work fine.

I started doing this back in the day because I couldn't get the gnome
screen saver to put my monitor to sleep. Does that work correctly
these days?

Thanks for the help,

g.

Joe Marcus Clarke

unread,
Jan 2, 2010, 11:27:25 PM1/2/10
to hart...@alerce.com, freebs...@freebsd.org
On Sat, 2010-01-02 at 22:53 -0500, Joe Marcus Clarke wrote:
> Gnome-screensaver uses g-p-m to put the display to sleep. This
> currently uses DPMS which _should_ work. However, I haven't yet seen it
> work. Someone else may be able to give some more insight.

Actually, I was going through the g-p-m code, and I think things are
broken given that gnome-screensaver and g-p-m are out of sync. This
should get fixed in GNOME 2.30 now that we have DeviceKit-power, and can
then update g-p-m.

Joe

signature.asc

Joe Marcus Clarke

unread,
Jan 2, 2010, 10:53:24 PM1/2/10
to hart...@alerce.com, freebs...@freebsd.org
On Sat, 2010-01-02 at 17:48 -0800, George Hartzell wrote:

Gnome-screensaver uses g-p-m to put the display to sleep. This


currently uses DPMS which _should_ work. However, I haven't yet seen it
work. Someone else may be able to give some more insight.

Joe

signature.asc

Jerry

unread,
Jan 3, 2010, 6:32:50 AM1/3/10
to freebs...@freebsd.org
On Sat, 02 Jan 2010 23:27:25 -0500
Joe Marcus Clarke <mar...@marcuscom.com> articulated:

> Actually, I was going through the g-p-m code, and I think things are
> broken given that gnome-screensaver and g-p-m are out of sync. This
> should get fixed in GNOME 2.30 now that we have DeviceKit-power, and
> can then update g-p-m.

man xscreensaver:

CONFIGURATION

The easiest way to configure xscreensaver is to simply run the xscreen-
saver-demo(1) program, and change the settings through the GUI. The
rest of this manual page describes lower level ways of changing set-
tings.

I'll repeat that because it's important:

The easy way to configure xscreensaver is to run the xscreensaver-
demo(1) program. You shouldn't need to know any of the stuff
described in this manual unless you are trying to do something
tricky, like customize xscreensaver for site-wide use or something.

--
Jerry
ges...@yahoo.com

|::::=======
|::::=======
|===========
|===========
|

The mosquito exists to keep the mighty humble.

Joe Marcus Clarke

unread,
Jan 4, 2010, 2:08:18 PM1/4/10
to hart...@alerce.com, freebs...@freebsd.org

I have confirmed that this is working in GNOME 2.29.

Joe

--
Joe Marcus Clarke
FreeBSD GNOME Team :: gn...@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

0 new messages