HAL and INPUT

Daniel Stone daniel.stone at nokia.com
Sun Jul 8 10:07:15 PDT 2007


On Sun, Jul 08, 2007 at 01:40:16PM +0100, ext Bastien Nocera wrote:
> Until evdev is used as a default (I'm sure Daniel and Adam have their
> opinions on this), pushing the events through HAL as we do know would be
> best.

Hopefully this can be as early as X.Org 7.3 (released next month).  I'm
just finishing the patches up at the moment, but ITMT, here's the FDI
I'm running with for your comments/amusement/derision.

Cheers,
Daniel
-------------- next part --------------
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <!-- FIXME: Support tablets too. -->
    <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_driver" type="string">mouse</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
      </match>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb_rules" type="string">base</merge>

      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.x11_driver" type="string">keyboard</merge>
      <merge key="input.xkb_model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
        <merge key="input.xkb_model" type="string">evdev</merge>
      </match>

      <merge key="input.xkb_layout" type="string">us</merge>

      <merge key="input.xkb_variant" type="string" />
    </match>
  </device>
</deviceinfo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/hal/attachments/20070708/bc050a42/attachment.pgp 


More information about the hal mailing list