On Monday 26 October 2009 23:07:37 Alan McKinnon wrote:
> 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>
> 

Thanks Alan, I can't see mine being that different to be honest, other than 
using the file /../policy/10-xinput-configuration.fdi instead of your 
/../policy/10-x11-input.fdi to make these entries.  Would that be important?  
I can get the: 

<merge key="input.x11_options.XkbOptions" 
type="string">grp:alt_shift_toggle,grp_led:scroll,compose:menu

work, or I can get the:

<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
  
work, but not both at the same time.

Here's my configuration in case you can see something amiss:
============================
# cat /etc/hal/fdi/policy/10-xinput-configuration.fdi
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">

<!-- Keyboard configuration --> 
<device>
   <match key="info.capabilities" contains="input.keys"> [1]
   <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" 
string="Linux">
   <merge key="input.x11_options.XkbModel" type="string">pc105</merge>
   <merge key="input.x11_options.XkbLayout" type="string">gb,el</merge>
   <merge key="input.x11_options.XkbOptions" 
type="string">grp:alt_shift_toggle,grp_led:scroll,compose:menu</merge>
   <merge key="input.xkb.options" [2] 
type="string">terminate:ctrl_alt_bksp</merge>
   </match>
</match>
</device>

<!-- touchpad --> 
<device>
   <match key="info.capabilities" contains="input.touchpad"> 
   <match key="info.product" contains="SynPS/2">
        <merge key="input.x11_driver" type="string">synaptics</merge> 
        <merge key="input.x11_options.SHMConfig" type="string">true</merge>
        <merge key="input.x11_options.VertEdgeScroll" 
type="string">true</merge>
        <merge key="input.x11_options.HorizEdgeScroll" 
type="string">true</merge>
        <merge key="input.x11_options.TapButton1" type="string">1</merge>
        <merge key="input.x11_options.ClickButton1" type="string">1</merge>
   </match> 
   </match> 
</device>
</deviceinfo>
============================

[1] I had this as: <match key="info.capabilities" contains="input.keyboard">
[2] I also tried: <merge key="input.x11_options.XkbOptions" 
type="string">terminate:ctrl_alt_bksp</merge>
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to