1 |
** (Tue, Apr 07, 2009 at 09:39:45AM +0100) Mick wrote: |
2 |
> Hi All, |
3 |
> |
4 |
> I've emerged the new xorg-server-1.5.3-r5, removed my xorg.conf as advised |
5 |
> and noticed two things which I am not sure how to fix: |
6 |
> |
7 |
> My keyboard layout is no longer UK, but US (I think); i.e. the # symbol is not |
8 |
> next to the return key, but at Shift+3. How can I change it back to UK? |
9 |
> |
10 |
> I used to have this stanza in my xorg.conf to be able to switch languages: |
11 |
> ===================================================== |
12 |
> Section "InputDevice" |
13 |
> Identifier "Keyboard0" |
14 |
> Driver "kbd" |
15 |
> Option "Name" "AT Translated Set 2 keyboard" |
16 |
> Option "XkbModel" "pc105" |
17 |
> Option "XkbLayout" "gb,el" |
18 |
> |
19 |
> Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll,compose:menu" |
20 |
> EndSection |
21 |
> ===================================================== |
22 |
> |
23 |
> How can I set up the same thing now? |
24 |
|
25 |
You can have at this: |
26 |
http://forums.gentoo.org/viewtopic-t-722498-highlight-hal+keyboard.html |
27 |
|
28 |
Here's what I did. |
29 |
I kept xorg.conf, but removed InputDevices. |
30 |
Created the file /etc/hal/fdi/policy/10-x11-input.fdi |
31 |
|
32 |
You can try the following. Modify it after your needs and remember to |
33 |
restart /etc/init.d/hald. |
34 |
|
35 |
-------------------------- Start: /etc/hal/fdi/policy/10-x11-input.fdi |
36 |
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> |
37 |
<deviceinfo version="0.2"> |
38 |
<device> |
39 |
<!-- Mouse {{{--> |
40 |
<match key="info.capabilities" contains="input.mouse"> |
41 |
<merge key="input.x11_driver" type="string">evdev</merge> |
42 |
</match> |
43 |
<!-- }}}--> |
44 |
|
45 |
<!-- Keyboard {{{--> |
46 |
<match key="info.capabilities" contains="input.keymap"> |
47 |
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append> |
48 |
</match> |
49 |
|
50 |
<match key="info.capabilities" contains="input.keys"> |
51 |
<merge key="input.xkb.model" type="string">evdev</merge> |
52 |
<merge key="input.xkb.driver" type="string">evdev</merge> |
53 |
<merge key="input.xkb.layout" type="string">gb,dk</merge> |
54 |
<merge key="input.xkb.rules" type="string">xorg</merge> |
55 |
<!--merge key="input.xkb.variant" type="string"></merge--> |
56 |
<merge key="info.xkb.options" type="string"> |
57 |
grp:alt_shift_toggle,grp_led:scroll,compose:menu |
58 |
</merge> |
59 |
</match> |
60 |
<!-- }}}--> |
61 |
|
62 |
<!-- TOUCHPAD {{{--> |
63 |
<!-- |
64 |
<match key="info.capabilities" contains="input.touchpad"> |
65 |
<match key="info.product" contains="SynPS/2"> |
66 |
<merge key="input.x11_driver" type="string">synaptics</merge> |
67 |
<merge key="input.x11_options.SHMConfig" type="string">true</merge> |
68 |
</match> |
69 |
</match> |
70 |
--> |
71 |
<!-- }}}--> |
72 |
</device> |
73 |
</deviceinfo> |
74 |
-------------------------- End: /etc/hal/fdi/policy/10-x11-input.fdi |
75 |
|
76 |
-- |
77 |
Khanh Nguyen |