View previous topic :: View next topic |
Author |
Message |
strm n00b
Joined: 26 Dec 2024 Posts: 6
|
Posted: Thu Dec 26, 2024 1:00 am Post subject: Systemd+Wayland+GNOME: Change GDM keyboard layout |
|
|
Hello everyone, I've got a little problem with GDM.
The password prompt uses us keyboard layout and there does not seem to be a way to change this. I already spent hours searching the web and trying every trick in the book (i. e. that I could find). Nothing worked so far. No .xinitrc, no localectl thing, no XKBLAYOUT in /etc/vconsole.conf etc.
Is there a way that works with Gentoo or do I need to chose another display manager?
Help is appreciated.
Gentoo 6.6.62-dist, GNOME 45.2 (although Settings says it is 46), Wayland 1.23.1, systemd-256.7 |
|
Back to top |
|
|
mega_flow Tux's lil' helper
Joined: 26 Jun 2016 Posts: 97 Location: Belgium
|
Posted: Thu Dec 26, 2024 3:00 am Post subject: |
|
|
localectl set-x11-keymap is the command u looking for _________________ default/linux/amd64/23.0/no-multilib/systemd gnome:47.2
Legion Slim 5 16ARP9
intel haswell h97i homeserver
SteamDeck |
|
Back to top |
|
|
strm n00b
Joined: 26 Dec 2024 Posts: 6
|
Posted: Thu Dec 26, 2024 4:53 pm Post subject: |
|
|
Tried that. Did not work. |
|
Back to top |
|
|
ChrisJumper Advocate
Joined: 12 Mar 2005 Posts: 2403 Location: Germany
|
Posted: Sun Jan 12, 2025 9:03 pm Post subject: |
|
|
Hi strm,
first check to enable the debug mode in your
/etc/gdm/custom.conf
just uncommend this:
Code: | [debug]
# Uncomment the line below to turn on debugging
Enable=true |
This way you can take a look into the error log of gdm with the systemd journaling tool:
Code: | # journalctl -u gdm |
On the next Reboot gdm should be more verbose.
And show you what Mode it launch. If your mouse symbol is like an X at the beginning of the loading gdm - it indicates an X11 session.
If this works for you try to stay with the x11 configuration.
This was the easy part. Now there are only to separate ways why you have not your localisation:
A. Your Desktop uses wayland but gdm run fallback X11
B. Your Desktop uses X11 and gdm use wayland
Or less likely your Base System configuration is wrong.
Check out the Localization Guide.
Because gdm try to use the system default, because it runs as user gdm.
However, the GDM Wiki describe some other helps, watch out for "GDM ignores my keyboard layout".
But if you have Point B and a real wayland config. I would try to use Systemd and its [url=https://wiki.gentoo.org/wiki/Systemd#Locale]localisation[url]:
If your /etc/locale.conf is like this:
Code: | # cat /etc/locale.conf
LANG="en_US.utf8" |
Code: | # localectl set-locale LANG="en_us.utf8" |
Code: | # localectl set-keymap en |
Code: | # localectl set-x11-keymap en |
If you changed something run afterwards:
Code: | # env-update && source /etc/profile |
And reboot. To see if something changed. When all is fine deactivate the debug by comment it out again in /etc/gdm/custom.conf. |
|
Back to top |
|
|
|