Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Ctrl+Alt+bksp in Xorg
Date: Tue, 27 Oct 2009 06:40:09
Message-Id: 200910270639.55875.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Ctrl+Alt+bksp in Xorg by Alan McKinnon
1 On Monday 26 October 2009 23:07:37 Alan McKinnon wrote:
2 > On Tuesday 27 October 2009 00:45:07 Mick wrote:
3 > > I have been trying to get this to work for some time now. I have
4 > > followed this upgrade guide and modified my
5 > >
6 > > /etc/hal/fdi/policy/10-xinput-configuration.fdi
7 > >
8 > > to include
9 > >
10 > > <merge key="input.xkb.options"
11 > > type="string">terminate:ctrl_alt_bksp</merge>
12 > >
13 > > This didn't work, so I looked further and found out that the
14 > > input.xkb.options is deprecated and instead I should use:
15 > >
16 > > <merge key="input.x11_options.XkbOptions"
17 > > type="string">terminate:ctrl_alt_bksp</merge>
18 > >
19 > > as detailed in here:
20 > >
21 > > http://cgit.freedesktop.org/xorg/xserver/tree/config/x11-input.fdi
22 > >
23 > > Anyway, neither will work. Is there any other syntax I should try, or is
24 > > perhaps 10-xinput-configuration.fdi the wrong file for this?
25 >
26 > This config works for me:
27 >
28 > $ cat /etc/hal/fdi/policy/10-x11-input.fdi
29 > <?xml version="1.0" encoding="ISO-8859-1"?>
30 > <deviceinfo version="0.2">
31 > <device>
32 >
33 > <!-- KVM emulates a USB graphics tablet which works in absolute
34 > coordinate mode -->
35 > <match key="input.product" contains="QEMU USB Tablet">
36 > <merge key="input.x11_driver" type="string">evdev</merge>
37 > </match>
38 >
39 > <!-- FIXME: Support tablets too. -->
40 > <match key="info.capabilities" contains="input.mouse">
41 > <merge key="input.x11_driver" type="string">mouse</merge>
42 > <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
43 > string="Linux">
44 > <merge key="input.x11_driver" type="string">evdev</merge>
45 > </match>
46 > </match>
47 >
48 > <match key="info.capabilities" contains="input.tablet">
49 > <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
50 > string="Linux">
51 > <merge key="input.x11_driver" type="string">evdev</merge>
52 > </match>
53 > </match>
54 >
55 > <match key="info.capabilities" contains="input.touchpad">
56 > <merge key="input.x11_driver" type="string">mouse</merge>
57 > <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
58 > string="Linux">
59 > <merge key="input.x11_driver" type="string">evdev</merge>
60 > </match>
61 > </match>
62 >
63 > <match key="info.capabilities" contains="input.keys">
64 > <!-- If we're using Linux, we use evdev by default (falling back to
65 > keyboard otherwise). -->
66 > <merge key="input.x11_driver" type="string">keyboard</merge>
67 > <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
68 > string="Linux">
69 > <merge key="input.x11_driver" type="string">evdev</merge>
70 > <merge key="input.xkb.options"
71 > type="string">terminate:ctrl_alt_bksp</merge>
72 > </match>
73 > </match>
74 > </device>
75 > </deviceinfo>
76 >
77
78 Thanks Alan, I can't see mine being that different to be honest, other than
79 using the file /../policy/10-xinput-configuration.fdi instead of your
80 /../policy/10-x11-input.fdi to make these entries. Would that be important?
81 I can get the:
82
83 <merge key="input.x11_options.XkbOptions"
84 type="string">grp:alt_shift_toggle,grp_led:scroll,compose:menu
85
86 work, or I can get the:
87
88 <merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
89
90 work, but not both at the same time.
91
92 Here's my configuration in case you can see something amiss:
93 ============================
94 # cat /etc/hal/fdi/policy/10-xinput-configuration.fdi
95 <?xml version="1.0" encoding="UTF-8"?>
96 <deviceinfo version="0.2">
97
98 <!-- Keyboard configuration -->
99 <device>
100 <match key="info.capabilities" contains="input.keys"> [1]
101 <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
102 string="Linux">
103 <merge key="input.x11_options.XkbModel" type="string">pc105</merge>
104 <merge key="input.x11_options.XkbLayout" type="string">gb,el</merge>
105 <merge key="input.x11_options.XkbOptions"
106 type="string">grp:alt_shift_toggle,grp_led:scroll,compose:menu</merge>
107 <merge key="input.xkb.options" [2]
108 type="string">terminate:ctrl_alt_bksp</merge>
109 </match>
110 </match>
111 </device>
112
113 <!-- touchpad -->
114 <device>
115 <match key="info.capabilities" contains="input.touchpad">
116 <match key="info.product" contains="SynPS/2">
117 <merge key="input.x11_driver" type="string">synaptics</merge>
118 <merge key="input.x11_options.SHMConfig" type="string">true</merge>
119 <merge key="input.x11_options.VertEdgeScroll"
120 type="string">true</merge>
121 <merge key="input.x11_options.HorizEdgeScroll"
122 type="string">true</merge>
123 <merge key="input.x11_options.TapButton1" type="string">1</merge>
124 <merge key="input.x11_options.ClickButton1" type="string">1</merge>
125 </match>
126 </match>
127 </device>
128 </deviceinfo>
129 ============================
130
131 [1] I had this as: <match key="info.capabilities" contains="input.keyboard">
132 [2] I also tried: <merge key="input.x11_options.XkbOptions"
133 type="string">terminate:ctrl_alt_bksp</merge>
134 --
135 Regards,
136 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Ctrl+Alt+bksp in Xorg Alan McKinnon <alan.mckinnon@×××××.com>