On Tuesday 27 October 2009 00:45:07 Mick wrote:
> I have been trying to get this to work for some time now.  I have followed
> this upgrade guide and modified my
> 
> /etc/hal/fdi/policy/10-xinput-configuration.fdi
> 
> to include
> 
> <merge key="input.xkb.options"
>  type="string">terminate:ctrl_alt_bksp</merge>
> 
> This didn't work, so I looked further and found out that the
>  input.xkb.options is deprecated and instead I should use:
> 
> <merge key="input.x11_options.XkbOptions"
> type="string">terminate:ctrl_alt_bksp</merge>
> 
> as detailed in here:
> 
> http://cgit.freedesktop.org/xorg/xserver/tree/config/x11-input.fdi
> 
> Anyway, neither will work.  Is there any other syntax I should try, or is
> perhaps 10-xinput-configuration.fdi the wrong file for this?
> 

This config works for me:

$ cat /etc/hal/fdi/policy/10-x11-input.fdi
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>

    <!-- KVM emulates a USB graphics tablet which works in absolute coordinate 
mode -->
    <match key="input.product" contains="QEMU USB Tablet">
       <merge key="input.x11_driver" type="string">evdev</merge>
    </match>

    <!-- 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.tablet">
      <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.touchpad">
      <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">
      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.x11_driver" 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.options" 
type="string">terminate:ctrl_alt_bksp</merge>
      </match>
    </match>
  </device>
</deviceinfo>


-- 
alan dot mckinnon at gmail dot com

Reply via email to