public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <200910270639.55875.michaelkintzios@gmail.com> (raw)
In-Reply-To: <200910270107.37306.alan.mckinnon@gmail.com>

[-- Attachment #1: Type: Text/Plain, Size: 5148 bytes --]

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 #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2009-10-27  6:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-26 22:45 [gentoo-user] Ctrl+Alt+bksp in Xorg Mick
2009-10-26 22:55 ` Zeerak Waseem
2009-10-26 23:04   ` Mick
2009-10-26 23:07 ` Alan McKinnon
2009-10-26 23:24   ` Dale
2009-10-26 23:30     ` Denis
2009-10-26 23:50     ` Alan McKinnon
2009-10-27  0:17       ` Sebastian Beßler
2009-10-27  0:27         ` Dale
2009-10-27  0:44           ` Sebastian Beßler
2009-10-27  1:03             ` Dale
2009-10-27  9:09               ` Sebastian Beßler
2009-10-27  9:31                 ` he zhitong
2009-10-27  9:44                   ` Sebastian Beßler
2009-10-27 11:09                 ` Alex Schuster
2009-10-27  6:39   ` Mick [this message]
2009-10-27  9:42     ` Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200910270639.55875.michaelkintzios@gmail.com \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox