[ohm] monitoring INPUT state

Richard Hughes hughsient at gmail.com
Fri Jun 29 03:58:32 PDT 2007


For OLPC, we need to detect inactivity. For the moment (until the
session bits and bobs are connected) I really just want to
monitor /dev/input/event[x] where x = 0 to 4. I'm thinking of using
select() with open fds on each input device, although I'm no expert in
this sort of thing.

Suggestions (or example code) welcome!

Thanks,

Richard.




More information about the Ohm-devel mailing list