Unwanted events from DVB remote

Tony Houghton h at realh.co.uk
Mon Apr 27 06:52:46 PDT 2009


On Sat, 25 Apr 2009 11:37:08 -0700
Dan Nicholson <dbn.lists at gmail.com> wrote:

> >> On Fri, Apr 24, 2009 at 8:59 AM, Tony Houghton <h at realh.co.uk> wrote:
> >> > My DVB card has a remote control which Linux sees as an input device. I
> >> > want to be able to use it by reading its /dev/input/event* node
> >> > directly, but there are unwanted side effects because it also generates
> >> > events on /dev/console for certain keys which have analogues on a
> >> > standard keyboard and pressing its power button causes a shutdown.

[Snip]

> Well, if you're not going to use the device through X, then you can
> just have X ignore it.
> 
> <remove key="input.x11_driver"/>

Thanks, that does just what I want. I was wondering how I managed to
miss that key, but it doesn't seem to be listed in hal-device for any
devices.

> The grab is achieved through an ioctl with EVIOCGRAB (I think).

I can't find documentation for that. Would I just call:

ioctl(fd, EVIOCGRAB, NULL);

-- 
TH * http://www.realh.co.uk


More information about the hal mailing list