View previous topic :: View next topic |
Author |
Message |
Telemin l33t
Joined: 25 Aug 2005 Posts: 753 Location: Glasgow, UK
|
Posted: Sun Sep 14, 2008 1:02 am Post subject: [Solved]Xorg appears to be ignoring my XkbLayout |
|
|
Hi all,
I'm probably just doing something stupid here but when I set up my xorg.conf for the gentoo install on my new laptop i set the following for the keyboard which should have an english (british) layout:
Code: |
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
EndSection
|
But I am getting given a US keymap in X so all of the symbols are mapped to the wrong keys. Could someone please point out where my (presumed) silly mistake is please? _________________ The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post
Last edited by Telemin on Mon Sep 15, 2008 5:18 pm; edited 1 time in total |
|
Back to top |
|
|
breakerfall Guru
Joined: 02 Aug 2003 Posts: 509 Location: Manchester, UK
|
Posted: Sun Sep 14, 2008 1:26 am Post subject: |
|
|
Looks ok to me... This was my config on my current setup (I'm just testing the new, tiny xorg config with auto detection + HAL), but this worked fine for me:
Code: |
Section "ServerLayout"
....
InputDevice "Keyboard0" "CoreKeyboard"
....
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
EndSection |
|
|
Back to top |
|
|
dweezil-n0xad Apprentice
Joined: 30 Oct 2006 Posts: 156 Location: Ostend, Belgium
|
Posted: Sun Sep 14, 2008 8:37 am Post subject: |
|
|
xorg keyboard configuration has moved to hal
put this in /etc/hal/fdi/policy/10-keymap.fdi
Code: | <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<match key="info.capabilities" contains="input.keyboard">
<merge key="input.x11_driver" type="string">keyboard</merge>
<merge key="input.xkb.layout" type="string">gb</merge>
<merge key="input.xkb.model" type="string">pc105</merge>
<merge key="input.xkb.rules" type="string">xorg</merge>
</match> |
_________________ i7-4790K | 16GB DDR3 | GTX 970 | 500GB SSD
ASUS N56VV | i7-3630QM | 12GB DDR3 | GT 750M | 256GB SSD |
|
Back to top |
|
|
Telemin l33t
Joined: 25 Aug 2005 Posts: 753 Location: Glasgow, UK
|
Posted: Sun Sep 14, 2008 11:00 am Post subject: |
|
|
Thanks dweezil-n0xad but your code didn't work:(
I've just compiled xorg without hal for now and configured it the old fashioned way, but I would like to know how to get it sorted properly... _________________ The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post |
|
Back to top |
|
|
breakerfall Guru
Joined: 02 Aug 2003 Posts: 509 Location: Manchester, UK
|
Posted: Sun Sep 14, 2008 12:21 pm Post subject: |
|
|
freestyling wrote: | Thanks dweezil-n0xad but your code didn't work:(
I've just compiled xorg without hal for now and configured it the old fashioned way, but I would like to know how to get it sorted properly... |
Ah sorry, I didn't even think you were using a new enough version for the hal settings. The options given above are the old version. If they didn't work for you, try the following:
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keyboard">
<merge key="input.x11_options.XkbLayout" type="string">gb</merge>
</match>
</device>
</deviceinfo>
|
If this doesn't work, share the output of the following command please
hal-find-by-capability --capability input.keyboard
This command should return 1 line. |
|
Back to top |
|
|
Telemin l33t
Joined: 25 Aug 2005 Posts: 753 Location: Glasgow, UK
|
Posted: Sun Sep 14, 2008 12:54 pm Post subject: |
|
|
It does work now, I forgot to restart hald after editing though. _________________ The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sun Sep 14, 2008 1:00 pm Post subject: |
|
|
And just what exactly would that line told you ?
It's the output of `hal-device <device name>` on the returned device,
that can tell you what you need to know.
But that fdi example looks correct.
@freestyling: did you restart hal after creating that file ?
Oops, typing took me too long. |
|
Back to top |
|
|
|