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-102539-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1N2fiy-0005yT-Ri
	for garchives@archives.gentoo.org; Tue, 27 Oct 2009 06:40:09 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id AFEE5E072F;
	Tue, 27 Oct 2009 06:40:06 +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 5E0EFE072F
	for <gentoo-user@lists.gentoo.org>; Tue, 27 Oct 2009 06:40:06 +0000 (UTC)
Received: by ewy2 with SMTP id 2so374609ewy.34
        for <gentoo-user@lists.gentoo.org>; Mon, 26 Oct 2009 23:40:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:from:reply-to:to:subject:date
         :user-agent:references:in-reply-to:mime-version:content-type
         :content-transfer-encoding:message-id;
        bh=bd/lma6d61+nAfm0t7tzo7PAXAY+UM9VTQ5of+3TK2I=;
        b=gcTUiYqwco5iY4kk+S4/s6EH7h/UthVtWLfqEC1gRDNmdVVTDyuDWYWqzDMKG33mDT
         JZ6rYoGIHSXuPHP1WziMLO1BDaTeOWYz8dXof3XiRr165M9WWXIHdQEfsh12bjLVw6Im
         QY25QZcxOYOIl7NIGdDaOgkDOavnE00jKqqN4=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=from:reply-to:to:subject:date:user-agent:references:in-reply-to
         :mime-version:content-type:content-transfer-encoding:message-id;
        b=Rhd7gBKfJt9+Ge+V5tW/9I5Ezl5QArmekkKPyoB6x+jTG3IsO2+hmvvlwDjBH9MFWU
         I5bQieAIChDdUuVl9ZjfjsAHGmt1jHD7a+4gMYNsYIuvqTcYy78oaczmpC/yQbr9uhdf
         cqyGVvfkwF1YhxmXrJn1BFj6ug0o8j3CUqmXg=
Received: by 10.211.147.10 with SMTP id z10mr8394152ebn.61.1256625605840;
        Mon, 26 Oct 2009 23:40:05 -0700 (PDT)
Received: from lappy.localnet (230.3.169.217.in-addr.arpa [217.169.3.230])
        by mx.google.com with ESMTPS id 28sm566493eye.47.2009.10.26.23.40.04
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Mon, 26 Oct 2009 23:40:04 -0700 (PDT)
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Ctrl+Alt+bksp in Xorg
Date: Tue, 27 Oct 2009 06:39:44 +0000
User-Agent: KMail/1.12.1 (Linux/2.6.30-gentoo-r8; KDE/4.3.1; i686; ; )
References: <200910262245.19071.michaelkintzios@gmail.com> <200910270107.37306.alan.mckinnon@gmail.com>
In-Reply-To: <200910270107.37306.alan.mckinnon@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: multipart/signed;
  boundary="nextPart2542917.ubHQ03rKBo";
  protocol="application/pgp-signature";
  micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <200910270639.55875.michaelkintzios@gmail.com>
X-Archives-Salt: d9c8c3b6-f9aa-4162-b138-7afe887fc6c5
X-Archives-Hash: 167830f5867f148ca4c6c8894f2654bb

--nextPart2542917.ubHQ03rKBo
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

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=3D"input.xkb.options"
> >  type=3D"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=3D"input.x11_options.XkbOptions"
> > type=3D"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?
>=20
> This config works for me:
>=20
> $ cat /etc/hal/fdi/policy/10-x11-input.fdi
> <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?>
> <deviceinfo version=3D"0.2">
>   <device>
>=20
>     <!-- KVM emulates a USB graphics tablet which works in absolute
>  coordinate mode -->
>     <match key=3D"input.product" contains=3D"QEMU USB Tablet">
>        <merge key=3D"input.x11_driver" type=3D"string">evdev</merge>
>     </match>
>=20
>     <!-- FIXME: Support tablets too. -->
>     <match key=3D"info.capabilities" contains=3D"input.mouse">
>       <merge key=3D"input.x11_driver" type=3D"string">mouse</merge>
>       <match key=3D"/org/freedesktop/Hal/devices/computer:system.kernel.n=
ame"
>              string=3D"Linux">
>         <merge key=3D"input.x11_driver" type=3D"string">evdev</merge>
>       </match>
>     </match>
>=20
>     <match key=3D"info.capabilities" contains=3D"input.tablet">
>       <match key=3D"/org/freedesktop/Hal/devices/computer:system.kernel.n=
ame"
>              string=3D"Linux">
>         <merge key=3D"input.x11_driver" type=3D"string">evdev</merge>
>       </match>
>     </match>
>=20
>     <match key=3D"info.capabilities" contains=3D"input.touchpad">
>       <merge key=3D"input.x11_driver" type=3D"string">mouse</merge>
>       <match key=3D"/org/freedesktop/Hal/devices/computer:system.kernel.n=
ame"
>              string=3D"Linux">
>         <merge key=3D"input.x11_driver" type=3D"string">evdev</merge>
>       </match>
>     </match>
>=20
>     <match key=3D"info.capabilities" contains=3D"input.keys">
>       <!-- If we're using Linux, we use evdev by default (falling back to
>            keyboard otherwise). -->
>       <merge key=3D"input.x11_driver" type=3D"string">keyboard</merge>
>       <match key=3D"/org/freedesktop/Hal/devices/computer:system.kernel.n=
ame"
>              string=3D"Linux">
>         <merge key=3D"input.x11_driver" type=3D"string">evdev</merge>
>         <merge key=3D"input.xkb.options"
> type=3D"string">terminate:ctrl_alt_bksp</merge>
>       </match>
>     </match>
>   </device>
> </deviceinfo>
>=20

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

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

work, or I can get the:

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

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

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

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

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

--nextPart2542917.ubHQ03rKBo
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iEYEABECAAYFAkrmlbsACgkQVTDTR3kpaLa+xwCggbaXJqVD7svfKltI3QNccmgS
Vx8AoPQhlp3I07uDGJB2p4hZBNBfiD/F
=rOnU
-----END PGP SIGNATURE-----

--nextPart2542917.ubHQ03rKBo--