Determine time of last keystroke and mouse movement

Orion Poplawski orion at cora.nwra.com
Thu May 14 19:53:12 UTC 2009


Tony Breeds wrote:
> On Wed, May 13, 2009 at 02:49:38PM -0600, Orion Poplawski wrote:
>> Is there anyway for periodic (cron like) job running as root on Fedora  
>> 10 (and up) to determine time of the last keypress and mouse movement?  
>> Back in the day I could look at the access time of /dev/tty7, but this  
>> appears to be no longer the case (even when moving to /dev/tty1 to  
>> account for the vt1 X shift).  Any ideas on how to determine this would  
>> be greatly appreciated.
> 
> I'm sure you can write something to read (and log) /dev/input/*  This daemon
> could be started at system boot and /shouldn't/ interfere with system opperation.
> 
> Yours Tony
> 

Thanks, this is the approach I've taken.  Yet Another Daemon.  <sigh>

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inputwatch.c
Type: text/x-csrc
Size: 3072 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090514/372e61c6/attachment.bin>


More information about the fedora-devel-list mailing list