Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!uwvax!appensell!tim From: tim@appensell.cs.wisc.edu (Tim Theisen) Newsgroups: comp.windows.x Subject: Detecting idle X server Message-ID: <7456@spool.cs.wisc.edu> Date: 27 Apr 89 19:40:03 GMT Sender: news@spool.cs.wisc.edu Reply-To: tim@appensell.cs.wisc.edu (Tim Theisen) Organization: U of Wisconsin CS Dept Lines: 15 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