You are not logged in.

#1 2020-02-24 20:26:16

punio
Member
Registered: 2019-08-23
Posts: 26

X server keeps switching back to US keyboard every reboot

Hi there,
I have a new Arch Linux setup, and everything seems to be going well, except for the fact that the X server keyboard layout keeps reverting back to US (from UK) every time I reboot. It does this even though my 00-keyboard.conf file specifically states 'gb' for the keyboard layout.

Here are the current contents of the file in case you need them:

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "gb"
EndSection

Can anyone give me an idea of why this is happening?

Offline

#2 2020-02-25 14:00:19

xerxes_
Member
Registered: 2018-04-29
Posts: 1,073

Re: X server keeps switching back to US keyboard every reboot

Post output of commands:

locale
localectl

Also see: https://wiki.archlinux.org/index.php/Locale

Offline

#3 2020-02-25 14:08:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,052

Re: X server keeps switching back to US keyboard every reboot

Many desktop environments keep their own settings and apply them on login.
Also check your xorg log on whether the "system-keyboard" is applied (or overridden by a more specific rule)

Offline

#4 2020-02-25 16:13:39

punio
Member
Registered: 2019-08-23
Posts: 26

Re: X server keeps switching back to US keyboard every reboot

xerxes_ wrote:

Post output of commands:

locale
localectl

Also see: https://wiki.archlinux.org/index.php/Locale

Locale:

LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

Localectl:

   System Locale: LANG=en_GB.UTF-8
       VC Keymap: uk
      X11 Layout: gb

Doesn't seem to be anything wrong there...

Offline

#5 2020-02-25 16:17:03

punio
Member
Registered: 2019-08-23
Posts: 26

Re: X server keeps switching back to US keyboard every reboot

seth wrote:

Many desktop environments keep their own settings and apply them on login.
Also check your xorg log on whether the "system-keyboard" is applied (or overridden by a more specific rule)

I checked my MATE settings and it seemed to show up as English (UK) just fine.
Checking my Xorg logs it just seems to repeat the phrase 'Applying InputClass "system-keyboard"' in different places. Nothing about it being overridden (unless I'm missing something)

Offline

#6 2020-02-25 17:15:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,052

Re: X server keeps switching back to US keyboard every reboot

These settings?
https://i.stack.imgur.com/JoFOM.png

Let's see "setxkbmap -print -query" when the keyboard layout is wrong.

Offline

Board footer

Powered by FluxBB