You are not logged in.

#1 2017-08-14 19:02:08

tyrann
Member
Registered: 2016-05-25
Posts: 13

Weird keyboard layout change

I am having some issues recently, it seems that my keyboard layout, language and country code do not follow the one displayed in the system's configuration files

Running

localectl status

gives me:

   System Locale: LANG=en_US.UTF-8
       VC Keymap: ch
      X11 Layout: ch
       X11 Model: fr

The content of /etc/vconsole.conf is:

KEYMAP=ch

And finally, /etc/X11/xorg.conf.d/00-keyboard.conf contains

# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "ch"
        Option "XkbModel" "fr"
EndSection

But my keyboard does not use the Swiss-French layout for some reason.

The problem occurs on both Xorg sessions but also at login and when opening a new tty.

In login and tty, I get an US layout and in X I get a swiss-german or german keyboard...

The only thing that seem to fix it is to run

setxkbmap ch fr

but it's not permanent.

Where are the other places where the keymap could be changed for X session and tty console in a permanent way?

Offline

Board footer

Powered by FluxBB