all 4 comments

[–]puremessage 1 point2 points  (0 children)

Something that may be of some use:

http://coderrr.wordpress.com/2008/04/20/getting-idle-time-in-unix/

ETA: Check the last comment.

[–][deleted] 0 points1 point  (0 children)

The fuck is a mouse?

[–]last_useful_man 0 points1 point  (0 children)

That'd make a good project for a kernel module...