Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Oct 2001 19:08:23 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Morsal Roudbay <morsal@swipnet.se>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: X and Swedish keyboard layout
Message-ID:  <20011007190823.A11248@student.uu.se>
In-Reply-To: <20011007184341.A6541@zigman.2y.net>
References:  <20011007184341.A6541@zigman.2y.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Oct 07, 2001 at 06:43:41PM +0200, Morsal Roudbay wrote:
> Hi
> I've been reading all type of docs and searching the net to find a solution
> to my problem... but unfortunatley I havent been able to get a Swedish
> keyboard layout in X.. I found lots about XFree 3.x but not much on 4.x...
> 
> FreeBSD 4.4-RELEASE
> -
> XFree86 Version 4.1.0 / X Window System
> (protocol Version 11, revision 0, vendor release 6510)
> Release Date: 2 June 2001
> Build Operating System: FreeBSD 4.2-BETA i386 [ELF] 
> Module Loader present
> 
> I got a working Swedish keyboard layout in console though, 
> here is my rc.conf:
> 
> font8x14="NO"
> font8x16="swiss-8x16"
> font8x8="swiss-8x8"
> keymap="swedish.iso"
> keyrate="fast"

The stuff in rc.conf is not used by X. The keyboard layout in X and in
the console are independent of each other.
For XFree 3.x you should make sure that you have something like the
following in /etc/XF86Config

Section "Keyboard"
   Protocol        "Standard"
   AutoRepeat      500 30
   LeftAlt         Meta
   RightAlt        Meta
   ScrollLock      Compose
   RightCtl        Control
   XkbKeycodes     "xfree86"
   XkbTypes        "default"
   XkbCompat       "default"
   XkbSymbols      "us(pc101)"
   XkbGeometry     "pc"
   XkbRules        "xfree86"
   XkbModel        "pc105"
   XkbLayout       "se"
   XkbOptions      "ctrl:nocaps"
EndSection


Note especially the 'XkbLayout  "se"'  line.
I think the above will work for XFree86 4.x too but I am not sure.

(It seems the above syntax is obsolete but still supported in 4.x and
that one should use 'Section "InputDevice"' instead. 
'man 5 XF86Config' should give more info if you have XFree 4.x installed.)



-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011007190823.A11248>