From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-102514-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1N2Yg7-00081R-U8
	for garchives@archives.gentoo.org; Mon, 26 Oct 2009 23:08:45 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B96E2E090E;
	Mon, 26 Oct 2009 23:08:41 +0000 (UTC)
Received: from mail-ew0-f206.google.com (mail-ew0-f206.google.com [209.85.219.206])
	by pigeon.gentoo.org (Postfix) with ESMTP id 5E2ABE090E
	for <gentoo-user@lists.gentoo.org>; Mon, 26 Oct 2009 23:08:41 +0000 (UTC)
Received: by ewy2 with SMTP id 2so179556ewy.34
        for <gentoo-user@lists.gentoo.org>; Mon, 26 Oct 2009 16:08:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:from:to:subject:date
         :user-agent:references:in-reply-to:mime-version:content-type
         :content-transfer-encoding:message-id;
        bh=y6NoIhZ6B/Uqp0ERb4Vb8PrV9xyleghYE2aHDLcAuZY=;
        b=WrIceKica7pYl8kwNLijb3YNerUNU2FBBHCtdX5ukjqn/naoXf0Q8R2R5P5nDvgxNS
         8RjWcKp8zZ4dSVyOacLF9eudFEKjMnZI0+CtBQGssrps2ZFjxRqwZmyYKCUmApuSCq1Q
         y3tNah7pAoqwF/ko15WRUt1YHqY8t2Yo3C2/Q=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=from:to:subject:date:user-agent:references:in-reply-to:mime-version
         :content-type:content-transfer-encoding:message-id;
        b=iNttjMBZYPhpV307ddbJxZe7DURqp/85bbObSbfeH4vRj7HaF7UeV7P1jCo2nPsYqb
         nAurfJDMDi89UeqCov3UpSuWaqAk2fCLzs7mByglhrPG7Il/wDLPfOA5Kugol9ftnm92
         NIMpz/gNWbOlJWJLOvPE6jYq9zLSA6ZSkmlZ8=
Received: by 10.216.86.7 with SMTP id v7mr1628527wee.203.1256598520737;
        Mon, 26 Oct 2009 16:08:40 -0700 (PDT)
Received: from nazgul.localnet (196-210-153-40-rrdg-esr-2.dynamic.isadsl.co.za [196.210.153.40])
        by mx.google.com with ESMTPS id 10sm8451046eyd.6.2009.10.26.16.08.39
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Mon, 26 Oct 2009 16:08:40 -0700 (PDT)
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Ctrl+Alt+bksp in Xorg
Date: Tue, 27 Oct 2009 01:07:37 +0200
User-Agent: KMail/1.12.2 (Linux/2.6.31-zen4; KDE/4.3.2; x86_64; ; )
References: <200910262245.19071.michaelkintzios@gmail.com>
In-Reply-To: <200910262245.19071.michaelkintzios@gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Message-Id: <200910270107.37306.alan.mckinnon@gmail.com>
X-Archives-Salt: a62319ef-c360-4d3f-983a-bdabc49118a1
X-Archives-Hash: 5fbce734a133fc0a18399911e9d4a89a

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