Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Systemd+Wayland+GNOME: Change GDM keyboard layout
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
strm
n00b
n00b


Joined: 26 Dec 2024
Posts: 6

PostPosted: Thu Dec 26, 2024 1:00 am    Post subject: Systemd+Wayland+GNOME: Change GDM keyboard layout Reply with quote

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
View user's profile Send private message
mega_flow
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2016
Posts: 97
Location: Belgium

PostPosted: Thu Dec 26, 2024 3:00 am    Post subject: Reply with quote

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
View user's profile Send private message
strm
n00b
n00b


Joined: 26 Dec 2024
Posts: 6

PostPosted: Thu Dec 26, 2024 4:53 pm    Post subject: Reply with quote

Tried that. Did not work.
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2403
Location: Germany

PostPosted: Sun Jan 12, 2025 9:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum