Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Xorg appears to be ignoring my XkbLayout
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 753
Location: Glasgow, UK

PostPosted: Sun Sep 14, 2008 1:02 am    Post subject: [Solved]Xorg appears to be ignoring my XkbLayout Reply with quote

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
View user's profile Send private message
breakerfall
Guru
Guru


Joined: 02 Aug 2003
Posts: 509
Location: Manchester, UK

PostPosted: Sun Sep 14, 2008 1:26 am    Post subject: Reply with quote

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
View user's profile Send private message
dweezil-n0xad
Apprentice
Apprentice


Joined: 30 Oct 2006
Posts: 156
Location: Ostend, Belgium

PostPosted: Sun Sep 14, 2008 8:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 753
Location: Glasgow, UK

PostPosted: Sun Sep 14, 2008 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message
breakerfall
Guru
Guru


Joined: 02 Aug 2003
Posts: 509
Location: Manchester, UK

PostPosted: Sun Sep 14, 2008 12:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 753
Location: Glasgow, UK

PostPosted: Sun Sep 14, 2008 12:54 pm    Post subject: Reply with quote

It does work now, I forgot to restart hald after editing though. :oops:
_________________
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
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Sep 14, 2008 1:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum