How do I allow keyboard layout selection menu in the login screen (Ubuntu 22.04)? Toggling this option on has been possible through settings, but I do not see this option in newer versions. How do I a allow it?
Asked
Active
Viewed 726 times
1
-
Assuming you are on standard Ubuntu, "newer versions" use GDM as the login manager instead of LightDM. Can you please elaborate and let us know what it is you want to achieve. – Gunnar Hjalmarsson Feb 22 '23 at 15:06
-
@GunnarHjalmarsson what does that mean? I have a computer with different users and two keyboards with different layouts. I want users to be able to choose the keyboard layout that works for them. – Mantic Mouse Feb 22 '23 at 15:08
-
Ok. But is your concern the login screen itself (username/password) or the effective keyboard once logged in? As regards the latter, the keyboard layout set by the user at first login will stay as their layout once logged in. – Gunnar Hjalmarsson Feb 22 '23 at 15:12
-
@GunnarHjalmarsson no, the concern is during the login screen. If possible I would like a scroll down menu in the login screen to type the password in the preferred layout (similar to the top menu available after loggin in). See the linked question for picture examples. – Mantic Mouse Feb 22 '23 at 15:15
1 Answers
1
I think you can achieve this by including the two layouts in question in the /etc/default/keyboard file. Example:
XKBLAYOUT="us,fr"
XKBVARIANT=","
That should result in a layout selector on the login screen, letting the users pick either the English (US) or the French layout.
Gunnar Hjalmarsson
- 33,540
- 3
- 64
- 94
-
Thanks! Note:
XKBVARIANT=","has to be that way adding qwerty or any other options makes this answer not work. – Mantic Mouse Feb 22 '23 at 16:01 -
@Mauricio: Not sure what you mean by "not work". If you want variants, you need to make
XKBVARIANTreflect that. My example does not include variants. But I can elaborate the answer if you like. – Gunnar Hjalmarsson Feb 22 '23 at 16:16 -
I tried to add variants, but your answer did the work much better. – Mantic Mouse Feb 22 '23 at 16:17
-
Yes, for example I had
XKBVARIANT="latin9"and the keyboard selector did not appear. – krumpelstiltskin Nov 06 '23 at 15:16 -
@krumpelstiltskin: Well, you need to do it right. There is no
latin9variant for theuslayout. But this should work:XKBVARIANT=",latin9"– Gunnar Hjalmarsson Nov 06 '23 at 16:33 -
1