-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change of keyboard layouts with Capslock/Shift+Capslock (shift_caps_switch
in setxkbmap
) breaks all the time
#8035
Comments
#6517 wasn't mentioned here, but it appears to be related. |
shift_caps_switch
in setxkbmap
) breaks all the timeshift_caps_switch
in setxkbmap
) breaks all the time
I provided feedback there before, it can be related, thank you. |
Not only do I have not working layout change but also sometimes the layouts change places: shift+capslock changes to the first one and capslock to the secocnd. But most of the time layout changes are not working completely. Something very wrong happens with layout change in R4.1 compared to R4.0 in the case of |
On Tue, Feb 21, 2023 at 05:57:35AM -0800, jamke wrote:
Not only do I have not working layout change but also sometimes the layouts change places: shift+capslock changes to the first one and capslock to the secocnd. But most of the time layout changes are not working completely.
Something very wrong happens with layout change in R4.1 compared to R4.0 in the case of `shift_caps_switch` mode. I think, after some time of using Qubes OS the layouts of `dom0`, qubes scripts and running qubes are un-synchronized and I get like 6-12 virtual layouts (but only 2 languages of course) that are changed in complicated way (not toggling between 2 as expected). Maybe it's somehow connected with the fact that `shift_caps_switch` is not toggling, but going to the end (last) and to the start (first) of layouts. @marmarek can it be the case? Can I somehow diagnose and fix it?
Not an Xfce user, but I recall that there are bugs in using setxkbmap of
late. Have you checked to see if this is Xfce version, rather than
Qubes?
|
Thanks for reply. I am using the layout switching settings installed by the installation process of the system, as I expected it to be the proper or at least the most expected way. Managing of layouts by XFCE is disabled in XFCE settings (
While |
If there is a way to make checks you mentioned - please tell, I will try them. |
This is what I was talking about: https://www.qubes-os.org/doc/hardware-troubleshooting/#keyboard-layout-settings-not-behaving-correctly |
I have a similar issue. I'm using localetctl to setup switching between us/ru when pressing both |
You can use this script to overcome this limitation of Have you somehow fixed the issue this layout toggle? |
I will try to modify |
I found out that in my situation, when I use 2 layouts (lets call them The situation during the problem happening:
So, why |
As a temporary work-around - I can bind Is there a way to fire I tried it without manual fire (and rely on automatic firing), it works but also breaks at some moment. Because the problem is with this event firing mechanism gets confused all the time and does not work reliably and properly. |
I just glanced over it, it looks like you suggest having a script switching the layout when xscreensaver is locked? This might work. Thanks.
Nice work debugging this issue! Have you already discovered https://github.com/QubesOS/qubes-core-admin-client/blob/v4.1.30/qubesadmin/tools/qvm_start_daemon.py ? May be this can help you on your quest. |
Yes, and it does work, I am using it.
Yes, we all have this file in Anyway, problems with switching keyboard layouts in R4.1 are still not fixed, it's just now I know a bit more about how it's supposed to work (and quite often works). |
OK, now I can 100% reproduce 2 different bugs related to this issue. Good news is that I managed to workaround the issue by modification of @marmarek @strugee @DemiMarie maybe you can help me to understand, why Qubes OS R4.1 is propagating ALL xkb options inside the target qubes? Including shortcuts for switching keyboard layout. I mean the whole point is that xkb inside the qube IS NOT changing keyboard layout itself, isn't it? So, maybe stripping options that are related to the shortcuts of layout switching should be added to |
Right!
Yes, I think this is the right way to go. |
Automated announcement from builder-github The component
|
Automated announcement from builder-github The component
|
Closing as resolved. If anyone believes this issue is not yet resolved, or if anyone is still affected by this issue, please leave a comment, and we'll be happy to reopen it. Thank you. |
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
|
Qubes OS release
R4.1.1.
Brief summary
Switching 2 keyboard layouts with Capslock for the first layout and Shift+Capslock for the second one (
shift_caps_switch
group insetxkbmap
) is not working properly and breaks many times a day.Steps to reproduce
shift_caps_switch
group insetxkbmap
)Note: Also settings this mode after installation with a single English layout has the same results.
Expected behavior
Layout switch works.
Actual behavior
After some time layout switch stops working completely. Very often and very annoying.
The way to temporary fix the issue is to press capslock and shift+capslock several times in some order, to exit some kind of wrong state of Qubes OS keyboard layout scripts. But soon the layout switching gets broken again.
More
R4.0 worked fine, so this bug is a 100% regression.
The text was updated successfully, but these errors were encountered: