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?
Iām not sure whether my issue has the same root, but if I press CapsLock (my key to change language) and then continue typing in the AppVM, it cancels the language change in the AppVM. So I need to press CapsLock twice to switch the language back and forth.
Propagation takes about 0.5-1.0 seconds, but the issue wouldnāt be such a big problem if the keyboard events didnāt reach the AppVM until the language switch has been completed.
Iām using Qubes 4.2 and have about 15 VMs loaded at one time (their count will be increased up to 50 quickly).
Just an idea for the loop - I guess it could improve the user experience if Qubes sent the layout change event in this order:
to the active window first
then to qubes with at least one open window
and then to all the others
P.S.: Iām also unable to use shortcuts like Ctrl+F in a non-English layout. Iām not sure if itās related to the current issue, but maybe you have some advice. āUse system settingsā is turned on in Settings ā Keyboard, as the Internet instructs.
The fixes I submitted is only merged to r4.3 branch (for the time). I will keep this thread updated if it is backported to r4.2. However, sometimes it might take weeks or even months for such fixes to be backported to the stable branch
Having said that, even with that improvement, more issues persist on r4.3. We have a race condition here. It is between the qvm-start-daemon agent which listens to the keyboard layout changes events and propagates the layout change to the child qubes. And the GUI daemon which send key press events via another path. Unfortunately it is not that easy.
Would it be easier to implement this if the layout-change feature were moved directly to the process that handles raw key presses?
In that case, you could have a dedicated Qubes OS configuration option for the ākeyboard shortcutā and maybe a separate keyboard indicator in Dom0.
Itās just a guess - please ignore it if itās not useful.