Andi, Take a look at the source code for xscreensaver. It looks for keyboard/mouse events at the /proc/interrupts pseudo-file. --Joel > Hi everybody, > > I would like to code a little Screen-Saver > program. How can I get the Idle time of the > user to start my screen-saver ? Is there any > other way to start an action (for example printf("TEST")) > after a specified idle time ? > > Thanks > > Andi > > -- > ----------------------------------------------------------------------- > LISCON GmbH http://www.liscon.com/ > Kersche Andreas andi@liscon.com > > Richard-Wagner-Strasse 7 Tel: +43 699/11093881 > A-9500 Villach Fax: +43 4242 214 855 99 > AUSTRIA / EUROPE > > _______________________________________________ > > Newbie@XFree86.Org > *** To unsubscribe , or change message options, see: > http://XFree86.Org/mailman/listinfo/newbie >