1 |
On Wednesday 21 April 2010 01:44:15 Harry Putnam wrote: |
2 |
> Mick <michaelkintzios@×××××.com> writes: |
3 |
> > I think you did not read the link properly. You are meant to copy |
4 |
> > the relevant .fdi file from |
5 |
> > /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi to |
6 |
> > /etc/hal/fdi/policy/10-keymap.fdi and then modify the last |
7 |
> > paragraph: |
8 |
> |
9 |
> Yes, I did misread apparently... it doesn't say that at all... maybe |
10 |
> that is why. |
11 |
> |
12 |
> http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.6-upgrade-guide.x |
13 |
> ml |
14 |
|
15 |
The penultimate paragraph says that you should copy _some_ file from |
16 |
/usr/share/hal/fdi/policy/10osvendor/ to /etc/hal/fdi/policy/ |
17 |
|
18 |
> There is no mention of copying: |
19 |
> /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi |
20 |
> to |
21 |
> /etc/hal/fdi/policy/10-keymap.fdi |
22 |
|
23 |
The file that I mentioned is the one relevant to key inputs, but you could |
24 |
have used say the 10-input.fdi or made one up yourself that ends in fdi. |
25 |
|
26 |
|
27 |
> I'm sorry to be so dense here... but I'm missing something still. |
28 |
|
29 |
No, I was rather incomplete in my reply, which ended up confusing the matter. |
30 |
|
31 |
> > <merge key="input.xkb.layout" type="string">us</merge> |
32 |
> > <merge key="input.xkb.options" |
33 |
> |
34 |
> That second line above is not present in my copy of: |
35 |
> /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi |
36 |
> |
37 |
> Mick wrote: |
38 |
> > type="string">terminate:ctrl_alt_bksp</merge> |
39 |
> > <merge key="input.xkb.variant" type="string" /> |
40 |
> > |
41 |
> > by the adding the above line starting with type= ... |
42 |
> |
43 |
> I see (showing line numbers |
44 |
> from:[...]10osvendor/10-x11-input.fdi |
45 |
> |
46 |
> [...] |
47 |
> 17 </match> |
48 |
> 18 |
49 |
> 19 <merge key="input.xkb.layout" type="string">us</merge> |
50 |
> 20 <merge key="input.xkb.variant" type="string" /> |
51 |
> 21 </match> |
52 |
> [...] |
53 |
> |
54 |
> So do you mean to replace 19 and 20 with: |
55 |
> |
56 |
> ,---- |
57 |
> |
58 |
> | <merge key="input.xkb.layout" type="string">us</merge> |
59 |
> | <merge key="input.xkb.options" |
60 |
> | type="string">terminate:ctrl_alt_bksp</merge> |
61 |
> |
62 |
> `---- |
63 |
> |
64 |
> Or add the two in box quote after 19... or what? |
65 |
|
66 |
This is mine: |
67 |
============================================ |
68 |
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> |
69 |
<deviceinfo version="0.2"> |
70 |
<device> |
71 |
<match key="info.capabilities" contains="input.keymap"> |
72 |
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append> |
73 |
</match> |
74 |
|
75 |
<match key="info.capabilities" contains="input.keys"> |
76 |
<merge key="input.xkb.rules" type="string">base</merge> |
77 |
|
78 |
<!-- If we're using Linux, we use evdev by default (falling back to |
79 |
keyboard otherwise). --> |
80 |
<merge key="input.xkb.model" type="string">keyboard</merge> |
81 |
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" |
82 |
string="Linux"> |
83 |
<merge key="input.xkb.model" type="string">evdev</merge> |
84 |
</match> |
85 |
|
86 |
<merge key="input.xkb.layout" type="string">gb,se</merge> |
87 |
<merge key="input.xkb.options" |
88 |
type="string">grp:alt_shift_toggle,grp_led:scroll,compose:menu,terminate:ctrl_alt_bksp</merge> |
89 |
<merge key="input.xkb.variant" type="string" /> |
90 |
</match> |
91 |
</device> |
92 |
</deviceinfo> |
93 |
============================================ |
94 |
|
95 |
Now, if you are only using one language, you only need line 19 in your example |
96 |
and insert a new line between your 19 and 20 that says: <merge |
97 |
key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge> |
98 |
|
99 |
(all on one line) |
100 |
|
101 |
HTH and sorry for giving an incomplete answer at the start. |
102 |
-- |
103 |
Regards, |
104 |
Mick |