You are not logged in.

#1 2025-02-27 07:43:25

UHasanU
Member
Registered: 2024-02-21
Posts: 28

[SOLVED] KDE resets keyboard layouts on reboot & logout

Hi

I am using KDE plasma on Wayland with US colemak and Arabic digits layout with Fcitx5. I added them normally from settings > Keyboard > Layouts. They are also available in localectl and ~/.config/kxkbrc; however, every time I logout and back in, or reboot, the system have only one layout: Arabic digits.

By running

localectl status
System Locale: LANG=C.UTF-8
VC Keymap: us-acentos
X11 Layout: us,ara
X11 Model: pc105
X11 Variant: colemak,digits

By running

cat ~/.config/kxkbrc
[Layout]
DisplayNames=,
LayoutList=ara,us
LayoutLoopCount=2
Options=grp:alt_shift_toggle,lv3:ralt_switch
ResetOldOptions=true
Use=true
VariantList=digits,colemak

However, after logout or reboot, the file becomes:

[Layout]
DisplayNames=
LayoutList=ara
LayoutLoopCount=2
Options=grp:alt_shift_toggle,lv3:ralt_switch
ResetOldOptions=true
Use=true
VariantList=digits

By running

journalctl --since today

I got this

By running

journalctl --user -b --unit=plasma-kwin_wayland

I got this

Some information about my system:

Operating System: Arch Linux 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5825U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: Zenbook UM3402YA_UM3402YA
System Version: 1.0
fcitx5 Version: 5.1.12

I'll appreciate any help.
Thank you everyone

Last edited by UHasanU (2025-03-08 20:09:20)

Offline

#2 2025-02-27 08:32:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,789

Online

#3 2025-03-01 22:43:19

UHasanU
Member
Registered: 2024-02-21
Posts: 28

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

I tried the command and ~/.config/kxkbrc does not change anymore after rebooting or logging out. KDE recognize two layouts and allow switching between them. However, some programs, such as Brave browser, and VS Code still act as if there's only one layout - the Arabic digits layout.

What else can I do?

Offline

#4 2025-03-02 08:34:20

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,789

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

Are those xwayland clients?
https://wiki.archlinux.org/title/Waylan … s_visually

setxkbmap -print -query

Or flatpaks?

Online

#5 2025-03-02 11:15:39

UHasanU
Member
Registered: 2024-02-21
Posts: 28

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

seth wrote:

Are those xwayland clients?

Yes, apparently using xwininfo these applications run on Xwayland.

setxkbmap -print -query
WARNING: Running setxkbmap against an Xwayland server
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+ara(digits)+inet(evdev)+group(alt_shift_toggle)+level3(ralt_switch)"	};
	xkb_geometry  { include "pc(pc105)"	};
};
rules:      evdev
model:      pc105
layout:     ara
variant:    digits
options:    grp:alt_shift_toggle,lv3:ralt_switch

Offline

#6 2025-03-02 14:03:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,789

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

X11 is at the single layout only.
Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

You can set the layout w/ setxkbmap after the session started, but ultimately this is a weird KDE bug where it kinda insists on nuking your config - for whatever reason - and forwards that wrong opinion to xwayland => bugs.kde.org

Online

#7 2025-03-02 21:36:41

UHasanU
Member
Registered: 2024-02-21
Posts: 28

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

seth wrote:

Please post your Xorg log

Here are the logs at ~/.local/share/xorg/Xorg.0.log

Thank you for your time, I'll try to report it to KDE soon

Offline

#8 2025-03-03 08:10:12

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,789

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

[  2675.228] (==) Log file: "/home/UHasanU/.local/share/xorg/Xorg.0.log", Time: Sat Jul  6 11:11:49 2024

The journal is vastly outdated, xwayland will likely produce *.8.log but also look at the timestamps.

Online

#9 2025-03-03 11:13:54

UHasanU
Member
Registered: 2024-02-21
Posts: 28

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

seth wrote:

xwayland will likely produce *.8.log

I couldn't find anything under ~/.local/share/xorg, there are only two files one called Xorg.0.log and one called Xorg.0.log.old and they share the same date, but different content.

However, I found /var/log/Xorg.0.log dating 2025 Feb 27, with three other files under /var/log, but all of them are much older.

https://0x0.st/8MaT.txt

Last edited by UHasanU (2025-03-03 11:15:32)

Offline

#10 2025-03-03 14:10:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,789

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

log is very recent:

[     7.556] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar  3 12:57:08 2025

and only has

[     8.019] (**) Option "xkb_layout" "us,ara"

It's probably either from an X11 session or your DM (SDDM?) is running on X11.

Does KDE show the same behavior on an X11 session?

Online

#11 2025-03-04 12:13:25

UHasanU
Member
Registered: 2024-02-21
Posts: 28

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

I didn't launch an X11 session for a while now, but yes I use SDDM.

I tried using KDE on X11 and it has the same issue, but the difference is that all applications recognize only one layout, even KDE itself doesn't change layout or show the current layout at the taskbar, just like you'd have if you have only one layout, even though in the settings the two layouts are present correctly.

Offline

#12 2025-03-04 15:07:02

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,789

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

The settings will read the kxbb config file, the relevant information is (esp. on X11) actually from "setxkbmap".
Do you have the X11 log from that session?

Online

#13 2025-03-05 14:17:22

jmyreen
Member
Registered: 2025-03-05
Posts: 2

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

This same thing started happening to me some time ago (a few weeks?). I'm using KDE Plasma on Wayland and SDDM. My preferred keyboard layout is US International, but it keeps resetting to plain US at each login. If I add more layouts in the Plasma System Settings Keyboard panel they show up in ~/.config/kxkbrc, but on the next login the LayoutList in the file is modified: only one layout is retained, and the rest are deleted. The VariantList setting contains "intl" before logging in again, but is empty after logging in.

Offline

#14 2025-03-05 14:24:22

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,789

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

Online

#15 2025-03-06 07:00:34

jmyreen
Member
Registered: 2025-03-05
Posts: 2

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

seth wrote:

Anyone here using fcitx5?

I had fcitx5 installed, but not selected in System Settings → Keyboard → Virtual Keyboard. Apparently selecting "None" for a virtual keyboard was not enough to prevent the modification of the .config/kxkbrc file. Removing the fcitx5 package solved the problem.

Offline

#16 2025-03-07 19:50:26

UHasanU
Member
Registered: 2024-02-21
Posts: 28

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

seth wrote:

Anyone here using fcitx5?

yes, I am using fcitx5 wayland launcher (the name in the setting), I remember there was some weird things on another virtual keyboard.

Offline

#17 2025-03-07 19:54:19

UHasanU
Member
Registered: 2024-02-21
Posts: 28

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

I did what @jmyreen did and the problem is solved.

Thank you @seth for your work! You were the first to help when I switched to Linux and still here today. I appreciate your dedication.

Last edited by UHasanU (2025-03-07 19:55:27)

Offline

#18 2025-03-07 21:12:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,789

Re: [SOLVED] KDE resets keyboard layouts on reboot & logout

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB