Re: [RFC PATCH 2/2] Add virtual "idle" device

From: Pavel Machek
Date: Fri Mar 06 2009 - 13:44:19 EST


On Mon 2009-03-02 23:42:52, Marcin Slusarz wrote:
> This virtual device can be used to tell user space about periods of time
> when user didn't "touch" input devices (keyboards, mice, touchpads, joysticks,
> etc). For now it supports only keyboard events.
>
> Notification is done through simple select/poll + ioctl interface.
>
> It can be used to implement screen savers, automatic suspend,
> autoaway/autodisconnect (e.g. in instant messangers) without
> any help from X server and its overhead (context switches).

I don't think this is good interface; what if you have more than one
seat? And without mouse handling it is useless anyway, so....

Pavel


--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/