[comp.windows.x] Detecting idle X server

tim@appensell.cs.wisc.edu (Tim Theisen) (04/28/89)

We have a system which runs jobs on otherwise idle workstations.  I need
a way to determine if a workstation is idle.  One of the important
factors is whether or not there is someone using the keyboard and/or mouse.
Currently, I use the idle time associated with pty's.  However, there
are several programs (e.g. xmh, emacs) which do not use a pty.  I need
some other way to determine if X server is being used.  The screen saver
keeps track of TimeSinceLastInputEvent.  Is there a way get this value
by querying the X server?  Is there some other way I should be doing this?

Thanks in advance, ...Tim

Tim Theisen             Department of Computer Sciences
tim@cs.wisc.edu         University of Wisconsin-Madison
uwvax!tim               1210 West Dayton Street
(608)262-0438           Madison, WI   53706

rws@EXPO.LCS.MIT.EDU (04/28/89)

    Is there a way get this value by querying the X server?

No.  It would require a protocol extension.