quboid
October 21, 2025, 2:03pm
1
Hi,
Im using qubes for some time already.
And I have to say that since 4.x version of qubes os keyboard layout switching is working slower.
In comparison to 3.x.
I have around 20 running qubes and in my environment layout switching in a cube can take 30-60 sec if even take place at all.
Im curious if other users experience same problem.
May be there are some guides or recommendations on how address this issue?
Unfortunately this bug exists and is a known bug. It has been reported by forum users as well as on Github issues.
It has improved a lot in r4.3 a lot. But the main issue still exists.
1 Like
Fix for this is submitted:
main ← alimirjamali:issue-6517-8441-keyboard-layout
opened 08:35AM - 30 Oct 25 UTC
On XFCE systems with multiple keyboard layouts and with XFCE Keyboard Layout wid… get, X raises two `XKLAVIER_ALLOW_SECONDARY` events shortly after each other (see 1st issue).
The current intended behaviour is to ignore the 2nd event by checking if the GUIVMs current layout is similar to the new requested layout. Unfortunately, after setting the GUIVM's keyboard layout, Qubes Core goes to this loop to propagate the new layout to all child qubes: https://github.com/QubesOS/qubes-core-admin/blob/main/qubes/ext/gui.py#L162-L170
And even if we move the condition after that loop just before it, it is still too slow to report back the new layout via qubesdb for `qvm-stat-daemon` use.
In order to avoid this race condition, it would be better to cache the layout within `qvm-start-daemon` itself.
fixes: https://github.com/QubesOS/qubes-issues/issues/8441
fixes: https://github.com/QubesOS/qubes-issues/issues/6517
1 Like