r/archlinux • u/vuchaev2015 • 1d ago
SUPPORT | SOLVED Incorrect keyboard layout display in SDDM on Wayland
Recently, I installed Arch Linux and I’m still trying to figure out many things since I’m a beginner.
I have SDDM running on X11 and KDE Plasma 6.7.5 (wayland) installed. I wanted to switch SDDM from X11 to Wayland.
I tried using the following config in `/etc/sddm.conf.d/10-wayland.conf`:
[General]
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell
[Wayland]
CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1
I also tried:
[General]
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell
[Wayland]
CompositorCommand=env XKB_DEFAULT_LAYOUT=us,ru XKB_DEFAULT_VARIANT=,winkeys XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle kwin_wayland --drm --no-lockscreen --no-global-shortcuts
Someone also suggested running this command:
sudo localectl set-x11-keymap us,ru pc105 ,winkeys grp:alt_shift_toggle
However, none of the methods above worked for me. On the login screen, the keyboard layout indicator shows two question marks and the letters `zz`.
The layout itself does switch when I use the keyboard shortcut, but the indicator in the interface doesn’t change visually.
Is there any way to fix this without switching SDDM back to X11, or is this simply not possible at the moment?
Also, could someone explain why, when I use SDDM on X11, after successfully logging into my account I get a black screen for a couple of seconds? As far as I understand, this brief black screen is normal behavior with SDDM on X11 because the SDDM session is terminated and my actual desktop environment/session is started. Is that correct?
The Plasma Breeze startup/loading theme I configured also doesn’t show the desktop loading animation/theme I selected.
On Wayland, however, after entering my password, I immediately see the KDE Plasma loading screen without the black screen.
Thank you! I hope no one will criticize me for not knowing enough. I’m trying to learn and gain experience, and I want to understand how all of this works, so I decided to ask here.
0
u/vuchaev2015 1d ago
after looking through various github issues and checking out a bunch of websites with similar problems, i’m now completely convinced that shortname doesn’t work properly with wayland and incorrectly displays the keyboard layout, unlike longname
so, screw it - i decided to switch to plm to save myself the headache