You are not logged in.

#1 2013-02-24 19:41:39

lakritz
Member
Registered: 2013-02-22
Posts: 6

Cant change keyboardlayout?

Hi all!

okay so i don't know if any of this is in the forum already, i can change the keylayout but not in the terminal when i run in my window manager (startx) "awesome"

When i boot i set the keylayout to loadkeys sv-latin1 and i have already configured nano /etc/lacale.gen so everything works until i start my window manager. my keylayout works in firefox and other applications like skype etc.
But when i start a terminal it wont work, even if i loadkeys sv-latin1 (it says loading keys /usr/etc etc etc sv-latin1. I took a look into nano /etc/locale.gen and it look the same as i configurated it in the firstplace (as it should "uncommented sv.SE-latin1" and i have both sv.SE-latin1 UTF-8 and ISO uncommented)

Any one have a ide of my little problem? i looked in the forum but i could't find anything about this, any help are welcome and really appreciated! smile

Best regards.

Offline

#2 2013-02-25 16:44:23

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Cant change keyboardlayout?

loadkeys only change the keyboard layout in the console, not under X. To change it under X, you have to use setxkbmap (for selecting a predefined keyboard) or xmodmap (to make custom modifications to an existing layout). You can also hard code you keyboard in the X configuration file: I have put the following section in /etc/X11/xorg.conf.d/10-evdev.conf:

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option      "XkbLayout" "fr"
        Option      "XkbModel"  "pc105"
        Option      "XkbVariant" "oss"
        Option      "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Last edited by olive (2013-02-25 16:44:50)

Offline

#3 2013-02-26 20:18:15

lakritz
Member
Registered: 2013-02-22
Posts: 6

Re: Cant change keyboardlayout?

olive wrote:

loadkeys only change the keyboard layout in the console, not under X. To change it under X, you have to use setxkbmap (for selecting a predefined keyboard) or xmodmap (to make custom modifications to an existing layout). You can also hard code you keyboard in the X configuration file: I have put the following section in /etc/X11/xorg.conf.d/10-evdev.conf:

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option      "XkbLayout" "fr"
        Option      "XkbModel"  "pc105"
        Option      "XkbVariant" "oss"
        Option      "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Hey thanks but when i type the command setxkbmap /etc/X11/xorg.conf.d/10-evdev.conf it says Error loading new keyboard description

What should i do?

regards!

Offline

#4 2013-02-26 20:46:06

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Cant change keyboardlayout?

lakritz wrote:

Hey thanks but when i type the command setxkbmap /etc/X11/xorg.conf.d/10-evdev.conf it says Error loading new keyboard description

What should i do?

regards!

You can change the keboard with

 setxkbmap fr 

(and type man setxkbmap for more options). Or edit /etc/X11/xorg.conf.d/10-evdev.conf, so that X start with your keymap.

Last edited by olive (2013-02-26 20:46:33)

Offline

Board footer

Powered by FluxBB