[comp.windows.x] Screen Lock for X terminals

"\"csdgwh\""@sn070.dnet.ge.COM (03/21/91)

Received: by DniMail (v2.0); Wed Mar 20 12:32:16 1991 EDT
Received: from sn350.uca by sn070 (4.0/SMI-4.0)
	id AA10931; Wed, 20 Mar 91 12:32:09 EST
From: csdgwh (Glenn W. Hoffman)
To: advax::"xpert@expo.lcs.mit.edu"
Subject: Screen Lock for X terminals

I would like to be able to utilize an automatic screen lock utility
from an X terminal.  We have xlocktool at our site, but it only works
correctly when the user is working at the keyboard/mouse that is
attached to the cpu.  If the user is at an X terminal, he gets locked
out after the specified idle time, even when the terminal is not idle.
(Surprise!!)

The apparent cause of this behavior is that xlocktool is using fstat on
the devices /dev/kbd and /dev/mouse to determine their time of last
access.  (I assume these devices are the representations of the local
keyboard/mouse of the cpu, hence the problem.)

Is there some way for xlocktool to get the time of last access of the
keyboard/mouse attached to the X terminal?

xlocktool is v 2.0 - 90/04/05 and xlock is 29-Oct-90

Glenn

csdgwh@sn070.dnet.ge.com
csdgwh@aesd.dnet.ge.com