Subject: Re: Incorrect X mapping for uk keyboard
To: David Laight <>
From: Alistair Crooks <>
List: current-users
Date: 01/18/2002 22:23:26

I use a UK keyboard layout too. There are some of us who just have
to drive on the left.

I use:

/sbin/wsconsctl -w encoding=uk map+="keysym Caps_Lock = Control_L"

in my /etc/rc.local (for my machines which use wscons), and don't
worry about anything.


On Fri, Jan 18, 2002 at 09:12:28PM +0000, David Laight wrote:
> I've just configured my i386 'current' system (by hand, largely based on
> changed files in my 1.5.2 system)...
> Everything is fine except that I've the wrong keyboard map in X (the
> console is fine).
> I copied /usr/X11R6/* /etc/X11/* and /etc/XF86Config straight off my
> working 1.5.2 system.  The desktop login comes up and appears to work. 
> However the keyboard map is no longer correct.
> I'm using a uk keyboard (with '|'/'\' to the left of 'Z' etc) but I
> think it is using the US map (#, @, ", \, | and ~ are in the wrong
> places).
> Any idea which config file I forgot to move (I think I've checked all
> the files in /etc), or is something 'broken' elsewhere?
> X might be using /etc/X11/XF86Config which contains:
>     Option "XkbRules"   "xfree86"
>     Option "XkbModel"   "pc102"
>     Option "XkbLayout"  "gb" 
> On the other hand I have a /etc/XV86Config which is in the 'old' format
> but something set it to:
>     Xkbkeycodes "xfree86"
>     XkbTypes    "default"
>     XkbCompat   "default"
>     XkbSymbols  "en_US(pc102)+gb"
>     XkbGeometry "pc"
> 	David