How to detect user activity - for a screensaver for example.
Peter Hansen
peter at engcorp.com
Sun Jul 20 00:04:40 EDT 2003
Hans Deragon wrote:
>
> Greetings.
>
> If I want to write a screensaver for Linux using Python, how can I detect
> that the user has not touched the keyboard or mouse for the last 5 mins?
Simplest trivial way: check /proc/interrupts for relevant activity...
I'm sure there are more standard approaches, but without knowing what
they are, or knowing anything about, say, Google ;-), that's the
approach I'd take.
-Peter
More information about the Python-list
mailing list