At our facility we have a computer room with more users than computers (Ubuntu 12.04). Inevitably, someone will leave their computer and walk away, never intending to return. We need a way to autologout such users so that we can free up the computers for those who need to use them.
In ubuntu 10.04 and 11.04 we used the timeoutd package to provide this functionality. However, timeoutd doesn't work anymore in Ubuntu 12.04. I tracked this down to the fact that X logins no longer create new utmp entries (at least not until the first X terminal is is opened).
The 'autolog' package also fails because it does not seem to be able to handle X logins.
Is there a recommended way to autologout X logins in Ubuntu 12.04? Alternately, is there a good way to determine who is logged into the X console (from this I can roll my own solution) since utmp is not reliable?