Re: Determine time of last keystroke and mouse movement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adam Jackson wrote:
On Wed, 2009-05-13 at 14:49 -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.

You want the IDLETIME XSync counter in the running X session.  Gnome
already uses this to determine session idleness.

- ajax


That assumes running inside the X session though right? This is a system process started at boot.

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com

--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux