I don't want my IR handset to act like a keyboard

Dan Nicholson dbn.lists at gmail.com
Mon Jan 11 16:07:32 PST 2010


On Sun, Jan 10, 2010 at 10:04 AM, Tony Houghton <h at realh.co.uk> wrote:
> I've got a DVB card with an IR controller which appears as an input
> device. I want my applications to read the input device directly, not as
> a keyboard. Among other reasons, it's because I want to use the "OK"
> button while mplayer is running, but it generates an "Enter" keypress
> which mplayer interprets as "please quit".
>
> After trying various things with xorg.conf which always seemed to have
> unwanted side effects, I solved the problem by creating
> /etc/hal/fdi/policy/20-ir-input.fdi containing:
>
> <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
> <deviceinfo version="0.2">
>  <device>
>    <!-- Stop remote control behaving like a keyboard -->
>    <match key="input.product" contains="saa7146">
>      <remove key="input.x11_driver" />
>      <remove key="input.xkb.rules" />
>      <remove key="input.xkb.model" />
>      <remove key="input.xkb.layout" />
>      <remove key="input.xkb.variant" />
>      <remove key="info.capabilities" type="strlist">input.keys</remove>
>      <remove key="info.capabilities" type="strlist">button</remove>
>    </match>
>  </device>
> </deviceinfo>
>
> but it isn't doing the trick for X any more. I'm now using xserver-xorg
> 1:7.5+1 from Debian unstable. I wondered if xorg is no longer using HAL
> because it's deprecated, but what should I do instead?

Xorg is now picking up devices straight from udev and then configuring
them in xorg.conf{,.d} with InputClass sections. See:

http://who-t.blogspot.com/2010/01/new-configuration-world-order.html

One of the things I'm working on and want to get landed before 1.8 is
the ability to ignore devices. Something like:

Section "InputClass"
    Identifier "Ignore IR"
    MatchProduct "Some IR Handset"
    Ignore "yes"
EndSection

Then Xorg would just skip that device. Would that help?

--
Dan



More information about the xorg mailing list