You are not logged in.

#1 2023-10-22 08:56:25

light9876
Member
Registered: 2020-01-05
Posts: 142

[SOLVED] localectl language switching command broken

After the last arch update, my language switching key broke.

The key I had was assigned to the key caps lock like so:

  localectl --no-convert set-x11-keymap gb,ara pc105 ,qwerty_digits grp: caps_toggle 

But it looks like the line above no longer works anymore.

I got this line from this issue:
https://bbs.archlinux.org/viewtopic.php?id=271578

Last edited by light9876 (2023-10-23 22:52:47)

Offline

#2 2023-10-22 09:34:03

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

Re: [SOLVED] localectl language switching command broken

There's a stray blank between "grp:" and "caps_toggle".

Online

#3 2023-10-22 11:23:22

light9876
Member
Registered: 2020-01-05
Posts: 142

Re: [SOLVED] localectl language switching command broken

Thanks.

localectl --no-convert set-x11-keymap gb,ara pc105,qwerty_digits grp:caps_toggle

Runs fine. UPDATE: However, using this instruction, I used to be able to switch language using caps lock key. But pressing the caps lock key now switches to capital letters..

Last edited by light9876 (2023-10-22 12:06:39)

Offline

#4 2023-10-22 13:18:29

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

Re: [SOLVED] localectl language switching command broken

post the output of

setxkbmap -print -query

and the contents of /etc/X11/xorg.conf.d/10-input.conf (not entirely sure about the exact filename)

Online

#5 2023-10-22 18:10:20

light9876
Member
Registered: 2020-01-05
Posts: 142

Re: [SOLVED] localectl language switching command broken

setxkbmap -print -query

Produces:

xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+gb+inet(evdev)"     };
        xkb_geometry  { include "pc(pc104)"     };
};
rules:      evdev
model:      pc105,qwerty_digits
layout:     gb

The only file in this directory is:

cat /etc/X11/xorg.conf.d/00-keyboard.conf

It 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" "gb,ara"
        Option "XkbModel" "pc105,qwerty_digits"
        Option "XkbVariant" "grp:caps_toggle"
EndSection

Offline

#6 2023-10-22 18:13:32

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

Re: [SOLVED] localectl language switching command broken

D'ohh
Because you removed the blank between "pc105 ,qwerty_digits"
You turned the variant into a bogus model and option into a bogus variant.

localectl is really hyper-fragile at this and you've to be ultra-precise w/ the blanks.
I'd always recomment to just write the file manually because of this.

Online

#7 2023-10-23 22:52:36

light9876
Member
Registered: 2020-01-05
Posts: 142

Re: [SOLVED] localectl language switching command broken

Thanks very much seth! Problem solved!

Offline

Board footer

Powered by FluxBB