-
-
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
Keyboard layout changes don't propagate from dom0 #1396
Comments
Does that affect also VM started after layout change? Currently keyboard layout is set in the VM only at VM startup time. Yes, Best Regards, |
Yes, VMs started after the layout change also don't inherit the (X11) keyboard layout from dom0. |
Did you used per-VM layout setting in those VMs? It overrides layout Best Regards, |
I've noticed weird behavior with International keyboards (I have 3 installed), most of the time when I switch to one (via clicking an icon in the main KDE navbar, it seems to do nothing. However, once in awhile, I'm able to access Int. characters by holding the |
What's the status for the fix? It's one of the biggest problems I've with Qubes. |
For now the workaround is to use per-VM keyboard layout change feature. It should work regardless of dom0 layout, and in fact dom0 layout will no longer be propagated there. |
Marek Marczykowski-Górecki:
Yes it works, but it's really frustrating to switch layout (that takes |
Do you know how to install some hook on dom0 keyboard layout change? It can be anything - from registering a script somewhere, to having a tool listening on some events. |
Marek Marczykowski-Górecki:
No, I don't know how to do that. I'm guessing that it exist a solution, |
Just looking how to trigger keyboard layout change in the VM to properly fix this issue. |
I Also have the same problem with "ca" keyboard. Dom0 is set to use english keyboard. From Qubes-manager i've selected ca keyboard. No change.I also have tried changing settings through gnome-control-center without any success from inside the VM. A writeup on how to fix that would be nice, since the FAQ is not helping the intl user in any way. |
What is weird is that the key sequence is seen and the key are mapped ok inside xev under a qubes-manager configured keymap appvm. I do not understand why it is impossible to type the good character directly into an application. xev output:
|
To truely have an intl keyboard, both Dom0 and Appvm need to have the same keyboard layout applied. Else, a "can" keyboard configured only through Qubes Vm manager alone will not result in the right desired behavior, eg: pressing altcar+2 won't result in "@"character that appear when both dom0 and domu are configured to use the same layout. It seems that dom0 selected layout needs to propagate to domu. |
Exactly why I'm looking for a way of getting a notification when dom0 keyboard layout is changed. |
An idea: watch |
(copy/paste from a reply in the dev ML) the following workaround has been working well for me for many years, in stock fedora and now in Qubes: in a terminal in dom0, type the following (obviously replace the bg(phonetic) version with whatever layout you're using) setxkbmap -layout "us,bg(phonetic)" -option "grp:shifts_toggle" then you'll be able to press both shift keys to switch the layout in specific VMs. you can automate this by putting this line in a script called by the window manager during startup. caveats:
|
After some frustration with a fresh qubes R3.2 install with stock XFCE, I found the "right" way to set the (xorg) system-wide keyboard layout (and options); This feels like a work-around for me, but anyway: In Set the system-wide layout and options for Example: This generates the appropriate configuration in Restarting I just opened a PR that adds this explanation to the FAQ. BTW, I've been unable to figure how the current layout is propagated from dom0's xorg to the other VMs, along with others such as the display geometry. It would be nice to have this explained somewhere in the documentation, even if it is in the developer documentation. |
I noticed you poppin by @holiman, so I though it's time to share a snippet which works good as a workaround on this issue :) Whenever my layout totally breaks I just hit the shortcut two times to get back to the layout I was using, so it solves the issue of layout which stop working and also propagating layouts from dom0. See the script header for details on how to set it up. The script must be copied to dom0, but no install are necessary. https://gist.github.com/bashlund/90f097d5ffea3c5a8c7ffd13867b5cb3 |
The layout switching involves several parts:
|
Interesting! As far as I can tell, it's At this point, I exited |
@marmarek And why |
Debugging:
Script that tracks layout changes in dom0 and updates keyboard_layout for qvm-prefs: |
@marmarek can you please check if this pull request QubesOS/qubes-core-admin-client@b99e45f can be affected by suspend/resume (this starts the bug) |
I'm troubleshooting an issue whereby dom0 keyboard layout and setxkbmap options are being ignored by a Windows 7 Qube. All linux Qubes do not have this issue and respect both dom0 keyboard layout and Forum thread with the troubleshooting steps I've taken so far, maybe it's due to this same bug? |
I have Windows 10 for a while that does not care about keyboard layout of other qubes, including |
I did some more research and believe this is due to missing Qubes Windows Tools. They were replaced with a dummy file around August 2023 on account of a Xen driver CVE. You can manually downgrade to qubes-windows-tools-4.1.69 (for Qubes OS v4.2) but the updater will replace it with the dummy file again if you're not careful. |
Without QWT it will not propagate for sure. I have QWT and it still never propagated on Win10 for me, so, I am not sure it should. |
I don't think keyboard layout switching is implemented in QWT yet.
…--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
|
This comment was marked as outdated.
This comment was marked as outdated.
@andrewdavidwong is this fixed in 4.2? |
No idea. All I know is that no one has reported that it affects 4.2 so far. If anyone can confirm that it still affects 4.2, please leave a comment here saying so. |
It is currently broken on my r4.3 system (X11, dom0 as GUIVM, Dedicated audiovm) on Fedora 41 XFCE guests. There has been a noticeable delay which made the This issue is already very long and confusing. I believe it would be better to pin-point other bugs and file new issues. |
Okay, thanks for the report. I'll assume it still affects both 4.2 and 4.3, then.
Good point. Let's do that. |
This issue has been closed as "not applicable." Here are some common examples of cases in which issues are closed as not applicable:
We respect the time and effort you have taken to file this issue, and we understand that this outcome may be unsatisfying. Please accept our sincere apologies and know that we greatly value your participation and membership in the Qubes community. Regarding help and support requests, please note that this issue tracker (qubes-issues) is not intended to serve as a help desk or tech support center. Instead, we've set up other venues where you can ask for help and support, ask questions, and have discussions. By contrast, the issue tracker is more of a technical tool intended to support our developers in their work. We thank you for your understanding. If anyone reading this believes that this issue was closed in error or that the resolution of "not applicable" is not accurate, please leave a comment below saying so, and we will review this issue again. For more information, see How issues get closed. |
Someone having an understanding of the current issue could start a new issue then @andrewdavidwong @alimirjamali ? I just gave up with ca-fr keyboard, never was able to make it work. I guess nobody can make it work either. @marmarek I guess a pointer to an already existing and more pertinent issue then this one being 9yo would be beneficial to last comment of this thread then, and then lock it. |
This is still an issue for me, Qubes The investigation I posted here is, afaik, still correct. Using two workarounds like this instead:
|
When the keyboard layout is changed in dom0 (e.g., using the KDE layout switcher in the icon tray) the change doesn't propagate to other VMs, in particular any VM you would actually be using.
This makes it basically impossible to (e.g., temporarily) change keyboard layouts from your default, since you have to go to every VM and manually reconfigure their input methods, and then do it all over again to change back.
The text was updated successfully, but these errors were encountered: