Gentoo Archives: gentoo-user

From: pat <pat@××××××××.org>
To: gentoo-user@l.g.o
Subject: [SOLVED] Re: [gentoo-user] hal and keyboard layout switching
Date: Tue, 08 Sep 2009 15:40:51
Message-Id: 20090908153936.M34100@xvalheru.org
In Reply to: [gentoo-user] hal and keyboard layout switching by Pat
1 On Tue, 08 Sep 2009 00:39:25 +0200, Pat wrote
2 > Hello,
3 >
4 > I want to setup hal to enable me switching between two keyboard layouts.
5 > My original configuration in xorg.conf is:
6 > Section "InputDevice"
7 > Identifier "Keyboard0"
8 > Driver "kbd"
9 > Option "XkbModel" "pc104"
10 > Option "XkbLayout" "us,cz"
11 > Option "XkbOptions" "grp:shift_toggle,grp_led:num"
12 > EndSection
13 >
14 > I've searched web and got some information, but I'm doing something wrong.
15 >
16 > I've created file /etc/hal/fdi/policy/x11-input.fdi and configure it
17 > like: <device> <match key="info.capabilities" contains="input.keyboard">
18 > <merge key="input.x11_options.XkbModel" type="string">pc104</merge>
19 > <merge key="input.x11_options.XkbLayout" type="string">us,cz</merge>
20 > <merge key="input.x11_options.XkbOptions"
21 > type="string">grp:shifts_toggle</merge>
22 > </match>
23 > </device>
24 >
25 > I have installed hal and running hald. The xorg-server version is
26 > 1.5.3-r6.
27 >
28 > Thanks for help
29 >
30 > Pat
31 >
32
33
34 Sorry !!! I have to restart hald and not only X server !!!
35
36 Pat
37
38
39 -------------------------------------------
40 Modern Hosting PIPNI - http://www.pipni.cz/