-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
setting xorg keyboard layout doesn't work anymore with linux latest kernel 5.12 #126423
Comments
Testing on I'm suspecting this is also related to the keyboard I'm using, a Keyboardio. Indeed, here's the output of
And on 5.12:
Notice how the |
So this issue definitely doesn't have anything to do with NixOS, except that it allowed me to bisect the root cause efficiently :D. Feel free to close if needed. If anyone has tips on how to bisect individual kernel commits on my flakes setup, I'm all ears! |
I seem to have the same issue #151462 |
Describe the bug
Alright so this one is a bit weird. I just bisected the issue in my personal configuration to this commit, so I'm pretty sure it's indeed some kernel behavior that's changed in between the 5.10 LTS and 5.12 (the commit switches my configuration to 5.12).
Basically setting
services.xserver.layout
doesn't take effect anymore. Typingsetxkbmap -query
orsetxkbmap -print
does show the layout I've picked, but it's evident when typing that my current keyboard is still in default QWERTY US layout.Honestly I don't think this is a NixOS bug, just a weird interaction between more recent kernels and the Xorg device layout settings, but I had no idea of where to complain about this other than here.
I'm guessing the problem has to do with the keyboard being loaded as a device later, after the layout configuration has already been set; I've often had problems with keyboards that were just plugged in and defaulted to the qwerty us layout even though all other keyboards on the machine were set to another layout.
Any clue on how I might bisect the Linux kernel to the exact commit that changed this behavior on my NixOS config?
To Reproduce
Steps to reproduce the behavior:
boot.kernelPackages = pkgs.linuxPackages_latest;
services.xserver.layout = "fr";
set for examplesetxkbmap -query
does show the correct layout selected though:Expected behavior
The keyboard uses the selected layout
Additional context
I'm using
sddm
andi3wm
, though I could also reproduce the problem with the defaultgdm
.Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: