Re: input: evdev.c EVIOCGRAB semantics question

From: Dmitry Torokhov
Date: Mon Aug 14 2006 - 11:12:54 EST


Hi Mattia,

On 8/14/06, Mattia Dongili <malattia@xxxxxxxx> wrote:

pbbuttonsd is a nice utility that (between the other things) monitors
keyboard and mouse activity and eventually sends the laptop to sleep.
The synaptics driver uses EVIOCGRAB and they don't work nice together
(eg: laptop goes to sleep even if actively using your touchpad)...

Now, with your proposal a user not using the synaptics driver and would
lose multiplexing to /dev/input/mice.


Yes, you are right, it won't work.

So why not just make EVIOCGRAB mean "don't send events to
mousedev but still report data to others opening the device"?


That darn layering thing. We don't want evdev to know about all other
handlers there are.

--
Dmitry
-
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/