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

Re: [Condor-users] KeyBoard Idle Time infinite



David McBride wrote:
Todd Tannenbaum wrote:

Anybody else have solutions?

Greetings,

I've found a way that only requires Condor configuration, at least on our
Ubuntu-based Linux desktops.  By doing a quick brute-force search of all of the
/dev nodes on a test X desktop, I discovered that the atime of the /dev/ttyN
node that is running the X session is updated when keypress / keyrelease events
occur.

So all I've needed to do is add the first 10 or so of the /dev/ttyN device nodes
to the CONDOR_DEVICES configuration pragma


Does this really work? Seems like the /dev/ttyN atime's will only get updated when a pseudo terminal is in use. So if users are typing away at shell prompts (in an xterm window or whatever), no problem. But what is a user is just clicking with a mouse for 30 minutes in firebird... seems like there would be no pty/tty activity, so I wonder if the atimes on any ttyX files would change. Ditto for if a user was typing up a long message in a "pure" X11 window, like a Thunderbird message compose window, I wonder if any of the CONSOLE_DEVICES you list below would have their atimes change.

With non-USB keyboard, Condor would catch that activity by atime changes on /dev/keyboard and /dev/mouse, but atimes do not change with USB devices on an unpatched kernel....


 -- which, here, currently looks like
this:

	CONSOLE_DEVICES = mouse, console, psaux, input/mice, tty0, tty1, tty2,
		tty3, tty4, tty5, tty6, tty7, tty8, tty9

This has proven very effective in practice; we've been running Condor on Ubuntu
in this way without special kernel patches for a good few months now.

Cheers,
David


------------------------------------------------------------------------

_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at: https://lists.cs.wisc.edu/archive/condor-users/


--
Todd Tannenbaum                       University of Wisconsin-Madison
Condor Project Research               Department of Computer Sciences
tannenba@xxxxxxxxxxx                  1210 W. Dayton St. Rm #4257
Phone: (608) 263-7132                 Madison, WI 53706-1685