You are not logged in.

#1 2010-03-26 16:36:21

spoovy
Member
From: Vatican XII
Registered: 2010-03-23
Posts: 32

Can't set keyboard layout from US [SOLVED]

OK i'm sure i'm doing something wrong but i don't know what.  I have a US keyboard layout even though I have specified a UK map when installing and since.

I allowed X to autoconfigure so I don't have a Xorg.conf.  rc.conf shows:

LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/London"
KEYMAP="uk"
CONSOLEFONT=
CONSOLEMAP=

Unless I misunderstand the LOCALE, CONSOLEFONT and CONSOLEMAP options shouldn't affect the kb layout.  I have tried

[spoovy@peony etc]$ sudo loadkeys uk

which gives

Loading /usr/share/kbd/keymaps/i386/qwerty/uk.map.gz
[spoovy@peony etc]$

I started a new login shell, but still got the US layout.  What am I missing?

Thanks in advance

spoov

Last edited by spoovy (2010-03-26 18:02:15)

Offline

#2 2010-03-26 16:48:36

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Can't set keyboard layout from US [SOLVED]

Well, the following stanza does it for me:

LOCALE="en_GB.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Berlin"
KEYMAP="uk"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#3 2010-03-26 16:57:13

spoovy
Member
From: Vatican XII
Registered: 2010-03-23
Posts: 32

Re: Can't set keyboard layout from US [SOLVED]

Nah I tried changing LOCALE; did nothing.

Offline

#4 2010-03-26 17:01:38

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Can't set keyboard layout from US [SOLVED]

Look in the Wiki for the section on hotplugging, it has something there about the keyboard defaulting to the US layout.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2010-03-26 17:28:21

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Can't set keyboard layout from US [SOLVED]

The keyboard settings in rc.conf has _northing_ to do with the keyboard layout in X. You can set the layout in X in several ways:
If you use a de, just set it in the configuration center/desktop/whatever.
You can edit the hal rule
You can set it by running setxkbmap either explicitly or in a script.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2010-03-26 17:33:48

spoovy
Member
From: Vatican XII
Registered: 2010-03-23
Posts: 32

Re: Can't set keyboard layout from US [SOLVED]

which leads me to another question - as I set up X without a xorg.conf, can I create one just to add 'fixes'.  Or if I create a xorg.conf will it screw up the automatic settings (which work pretty well)


@Mr Elendig -

I can't find an appropriate place in my de config files, and the setxkbmap command doesn't seems to work, I htink a xorg.conf file in necessary for this?  I will look at into HAL rules, see if that turns anything up. 

Cheers

Last edited by spoovy (2010-03-26 17:42:44)

Offline

#7 2010-03-26 17:42:44

randomguy
Member
Registered: 2007-06-19
Posts: 101

Re: Can't set keyboard layout from US [SOLVED]

cp /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi /etc/hal/fdi/policy/

As root. After that edit it to match your desired keymap, restart X or reboot and you are settled. setxkbmap should work, though. Maybe you're setting the wrong layout. From the wiki:

Option "XkbLayout"  "uk"         #"uk" is not a real layout, look in /usr/share/X11/xkb/symbols/ for a list of real ones.
#Try "gb" if you want a UK keyboard layout

Have you tried "gb" ?

Last edited by randomguy (2010-03-26 17:48:20)

Offline

#8 2010-03-26 17:54:25

spoovy
Member
From: Vatican XII
Registered: 2010-03-23
Posts: 32

Re: Can't set keyboard layout from US [SOLVED]

@randomguy - yeah i'd already tried all that, when I originally installed and again just now.  Still no good.

Last edited by spoovy (2010-03-26 17:56:41)

Offline

#9 2010-03-26 18:00:12

spoovy
Member
From: Vatican XII
Registered: 2010-03-23
Posts: 32

Re: Can't set keyboard layout from US [SOLVED]

Sorted!

After changing the HAL policy again to gb (it had defaulted back to us for some reason) then running 'setxkbmap gb' it worked.

Cheers all.

Offline

#10 2010-03-26 18:00:40

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Can't set keyboard layout from US [SOLVED]

Okay, let's see whether tty1-6 are uk. Are they? And which DE/WM are you using? And randomguy is right, even though it is "uk" in rc.conf and such, xorg insists on it being "gb".


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#11 2010-03-26 18:01:33

spoovy
Member
From: Vatican XII
Registered: 2010-03-23
Posts: 32

Re: Can't set keyboard layout from US [SOLVED]

too slow toad! smile

Offline

Board footer

Powered by FluxBB