[ohm] monitoring INPUT state

Nils Faerber nils.faerber at kernelconcepts.de
Fri Jun 29 08:05:07 PDT 2007


Ross Burton schrieb:
> On Fri, 2007-06-29 at 11:58 +0100, Richard Hughes wrote:
>> 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.
> Really new X servers have an inactivity counter maintained in the
> server.

Just for the sake of having this mentioned...
For OLPC the X servefr aproach seems valid and appropriate but other
devices might not run X11 but want to use OHM.
So the idle detection module of OHM should be able to have several,
probably configurable, source of idle information so that X11 would
become one optional source. Watching /dev/input/event* could then be
another method.

> Ross
Cheers
  nils faerber

-- 
kernel concepts GbR      Tel: +49-271-771091-12
Sieghuetter Hauptweg 48  Fax: +49-271-771091-19
D-57072 Siegen           Mob: +49-176-21024535
--


More information about the Ohm-devel mailing list