** (Tue, Apr 07, 2009 at 09:39:45AM +0100) Mick wrote: > Hi All, > > I've emerged the new xorg-server-1.5.3-r5, removed my xorg.conf as advised > and noticed two things which I am not sure how to fix: > > My keyboard layout is no longer UK, but US (I think); i.e. the # symbol is > not > next to the return key, but at Shift+3. How can I change it back to UK? > > I used to have this stanza in my xorg.conf to be able to switch languages: > ===================================================== > Section "InputDevice" > Identifier "Keyboard0" > Driver "kbd" > Option "Name" "AT Translated Set 2 keyboard" > Option "XkbModel" "pc105" > Option "XkbLayout" "gb,el" > > Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll,compose:menu" > EndSection > ===================================================== > > How can I set up the same thing now?
You can have at this: http://forums.gentoo.org/viewtopic-t-722498-highlight-hal+keyboard.html Here's what I did. I kept xorg.conf, but removed InputDevices. Created the file /etc/hal/fdi/policy/10-x11-input.fdi You can try the following. Modify it after your needs and remember to restart /etc/init.d/hald. -------------------------- Start: /etc/hal/fdi/policy/10-x11-input.fdi <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <!-- Mouse {{{--> <match key="info.capabilities" contains="input.mouse"> <merge key="input.x11_driver" type="string">evdev</merge> </match> <!-- }}}--> <!-- Keyboard {{{--> <match key="info.capabilities" contains="input.keymap"> <append key="info.callouts.add" type="strlist">hal-setup-keymap</append> </match> <match key="info.capabilities" contains="input.keys"> <merge key="input.xkb.model" type="string">evdev</merge> <merge key="input.xkb.driver" type="string">evdev</merge> <merge key="input.xkb.layout" type="string">gb,dk</merge> <merge key="input.xkb.rules" type="string">xorg</merge> <!--merge key="input.xkb.variant" type="string"></merge--> <merge key="info.xkb.options" type="string"> grp:alt_shift_toggle,grp_led:scroll,compose:menu </merge> </match> <!-- }}}--> <!-- TOUCHPAD {{{--> <!-- <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> </match> </match> --> <!-- }}}--> </device> </deviceinfo> -------------------------- End: /etc/hal/fdi/policy/10-x11-input.fdi -- Khanh Nguyen