You are not logged in.

#1 2010-07-31 15:43:03

vis
Member
From: Switzerland
Registered: 2007-02-25
Posts: 81

No Swiss keyboard in xterm

Something wrong somewhere. I configured the Swiss keyboard of my new laptop as usual. I get the special characters in the console but the xterm still has US keyboard.

/etc/locale.gen
de_CH.UTF-8 UTF-8 
de_CH ISO-8859-1 
en_US.UTF-8 UTF-8 
en_US ISO-8859-1 

# locale-gen

/etc/rc.conf
LOCALE="de_CH"

gives me the console characters. But

/etc/X11/xorg.conf
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc102"
        Option      "XkbVariant" "de"
        Option      "XkbLayout" "ch"
EndSection

still gives me the US charcter set in xterm.

What else should I check?

Offline

#2 2010-07-31 15:52:45

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: No Swiss keyboard in xterm

Do you use xorg 1.8? The setup has changed there. You'll need something along these lines in your xorg.conf:

Section "InputClass"
    Identifier      "Keyboard Defaults"
    MatchIsKeyboard "yes"
    Option          "XkbModel" "pc105"
    Option        "XkbLayout" "de"
EndSection

To know or not to know ...
... the questions remain forever.

Offline

#3 2010-07-31 16:04:12

vis
Member
From: Switzerland
Registered: 2007-02-25
Posts: 81

Re: No Swiss keyboard in xterm

Yes, it is X Server 1.8.1.902 (1.8.2. RC 2), from 2010-06-21.

Could you pl. post the whole xorg.conf file?

Offline

#4 2010-07-31 16:06:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: No Swiss keyboard in xterm

I think bernarcher posted his /etc/X11/xorg.conf.d/keyboard.conf. file. You need one too, simply create a new file and copy the above text.

Offline

#5 2010-07-31 16:25:44

vis
Member
From: Switzerland
Registered: 2007-02-25
Posts: 81

Re: No Swiss keyboard in xterm

OIC. I was battling with /etc/X11/xorg.conf, but these parameters must go to a /etc/X11/xorg.conf.d/keyboard.conf! Thanks, the matter solved.

Offline

#6 2010-07-31 16:29:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: No Swiss keyboard in xterm

vis wrote:

OIC. I was battling with /etc/X11/xorg.conf, but these parameters must go to a /etc/X11/xorg.conf.d/keyboard.conf! Thanks, the matter solved.

It's because instead of xorg.conf we now (as of xorg-server 1.8) use /etc/X11/xorg.conf.d/ directory.
http://www.archlinux.org/news/502/

Last edited by karol (2010-07-31 16:29:57)

Offline

Board footer

Powered by FluxBB