Wrong keyboard language used during KDE login

In Yast installer for TW I set the correct keyboard language before setting the password but at every login the keyboard language is apparently English which forces me to write the password with different keys due to special characters.

In KDE and lock screen the keyboard language is correct.

How can I set the keyboard language for the sddm login screen?

@xor25:

Repeating my answer in the “ Will OpenSUSE have PlasmaLogin?” thread:


You may have an issue with the system’s Locale – which is where SDDM, and everything else, get’s the default system keyboard settings:

 > LANG=C.UTF-8 localectl 
System Locale: LANG=de_DE.utf8
    VC Keymap: de-nodeadkeys
   X11 Layout: de
    X11 Model: cymotionlinux
  X11 Variant: nodeadkeys
  X11 Options: terminate:ctrl_alt_bksp
 >

If you call the “localectl” command from a Linux Console (VT → Ctrl-Alt-F1/2/3/4/5/6) you should be seeing more or less the same output – I called the example above from a KDE Plasma (Wayland) Konsole window. On this system, a Linux Console uses the following Locale settings:

 > cat /etc/vconsole.conf 
# Written by systemd-localed(8) or systemd-firstboot(1), read by systemd-localed
# and systemd-vconsole-setup(8). Use localectl(1) to update this file.
KEYMAP=de-nodeadkeys
FONT=
FONT_MAP=
FONT_UNIMAP=
XKBLAYOUT=de
XKBMODEL=cymotionlinux
XKBOPTIONS=terminate:ctrl_alt_bksp
XKBVARIANT=nodeadkeys
 >

Use YaST to set the system keyboard to your preferred language.

I do not think there is such a thing as a “keyboard language”.
Keyboards may have different layouts (locations where the keys are as well as the glyphs that are written on the keys). One configures what type of keyboard one has. That then specifies to the system which (ASCII or Unicode) character is to be put into the input buffer when a certain key is hit). No connection to any language at all.

OTOH, environment variables like LANG and a whole series of LC_* may be consulted by processes and the running program may then use them to choose a language for it’s output and for the formatting strings expressing e.g. date and time and currency, etc. Has nothing to do with the keyboard such a process may be connected to for input.

1 Like

@lbreton: @hcvv:

When I mentioned “localectl” I wasn’t mentioning it “just for fun” – especially in this post-YaST millennium …

The “RTF” man page:

localectl - Control the system locale and keyboard layout settings

And, please notice the text in the ‘/etc/vconsole.conf’ heading:

Use localectl(1) to update this file.

Yes, NOT the “keyboard language”.

There are a lot of bugreports regarding this topic.

Thanks @dcurtisfra , I’ll remember this post-YaST compatible solution.

Well, my screenshot is not during an installation, but I fire up YaST (Leap 15.6) and under Hardware, I select System Keyboard Layout, and the System Keyboard Configuration dialog is displayed, with the Keyboard Layout list shown (obviously there are more than three options).

If I select an option, I tap Accept button … there are no other options to choose and configure.
.

1 Like

@xor25 The answer is here https://forums.opensuse.org/t/i-cannot-login-in-plasma-wayland/196258/22

I forgot to mention that I use English as system locale. It’s the keymap/layout that is wrong before login when it’s also set to English.

@dcurtisfra localectl always showed the correct keymap/layout but that was not applied/active before a login.

@hcvv Yeah you are probably right but everyone seemed to understand that I meant the keymap/layout :smile:

@ontdekik Many thanks! This fixed it. The correct keymap/layout was already selected but when pressing apply that setting finally seems to have been set active before login also.
I have been dealing with this issue since February. Should have registered here a long time ago :sweat_smile:

So is the problem the Installer then that failed to apply all the settings to the system so it’s also active before login?

1 Like

I have a Tumbleweed VM in Virtualbox I installed about a month ago. This issue is also active there. So this bug hasn’t been fixed between February and September at least.

Do you want me to debug anything there since I didn’t provide any terminal outputs yet?

Yeah this seem to apply to my system:
https://bugzilla.opensuse.org/show_bug.cgi?id=1260047

There are quite a few bug reports even from last year.
I know it’s frustrating, i spent quite a few time until finally found the solution by chance

I wonder if this will automatically get fixed if sddm is replaced by PLM when KDE 6.8 arrives to TW

I encountered this issue using LightDM also. My guess is a YaST problem and since it’s deprecated I’m not sure when the bug will be fixed. Maybe only when the YaST installer will be replaced. But all these are only suppositions

This is not and was never a problem of the installer, no matter if YaST, Agama or an image-based installation. Read the bug report: The system locale was correctly set for localectl. This is where the responsibility of the installer ends (and always ended).

The problem is the desktops that stopped caring about users many years ago: They used to pick up the system locale (which includes the keyboard layout) upon the first login (or the first time the login manager started). They did that in the past, but some years ago they simply didn’t bother anymore.

We had this discussion dozens of times over recent years, and people (including internal testers!) always tried to blame the installer. And they were always wrong.

3 Likes

@shundhammer Thank you for the explanation.
I didn’t see such an explanation in the other similar topics, that’s why my suppositions.
Problem is how a regular user as i am to just find the solution by chance. It is really frustrating for those users who don’t use the default US keyboard layout

In Leap 16 also with KDE this didn’t happen when I installed it in February March sometime.

I didn’t have this problem either when I installed TW on another pc late 2025.
And according to this post even the bug isn’t consistent https://forums.opensuse.org/t/random-post-install-keyboard-layout-issue-sddm-kde-switching-to-qwerty-instead-of-french-azerty/194049