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                                [EMAIL PROTECTED]
>  
> Richard-Wagner-Strasse 7                       Tel: +43 699/11093881
> A-9500 Villach                                 Fax: +43 4242 214 855 99
> AUSTRIA / EUROPE
> 
> _______________________________________________
> Newbie mailing list
> [EMAIL PROTECTED]
> *** To unsubscribe , or change message options, see:
> http://XFree86.Org/mailman/listinfo/newbie
> 

_______________________________________________
Newbie mailing list
[EMAIL PROTECTED]
*** To unsubscribe , or change message options, see:
http://XFree86.Org/mailman/listinfo/newbie

Reply via email to