1827980 Members
2226 Online
109973 Solutions
New Discussion

Re: X11 Timeout.

 
SOLVED
Go to solution
Robert Walker_8
Valued Contributor

X11 Timeout.

Gday,

We have X11 running on our servers (I know its not a good idea), however its handy at the console for certain tasks and is really a final solution measure if needed.

One thing we are interested in doing is forcing it to log the user off after a period of inactivity. There is the possibility of a screen saver, however prefer the logoff in case staff go to the console in the computer room and forget to logout.

Have hunted around in google with no real success.

Robert.
3 REPLIES 3
Bill Thorsteinson
Honored Contributor

Re: X11 Timeout.

You may have more luck looking for a tool
to lock the screen.

You may be able to add a custom script to
shutdown the session.

Normal shell timeouts will work for xterm sessions.
Mike Stroyan
Honored Contributor
Solution

Re: X11 Timeout.

There is a note at the bottom of the GnomeScreenSaver FAQ that shows how to watch for dbus notification when the session goes idle.
http://live.gnome.org/GnomeScreensaver/FrequentlyAskedQuestions

You could use that in a session startup script to watch for the idle state and then force a logout with something like "killall gnome-session".
Robert Walker_8
Valued Contributor

Re: X11 Timeout.

Thanks will look down the dbus option it sounds like a good one to me.

Thanks to all.

Robert.