How can I change the keyboard layout in the login screen? [duplicate]

Solution 1:

Ubuntu 11.10 uses a new log-in manager called LightDM. The "Simple LightDM Manager" program allows you to change settings for LightDM, but it only supports changes to the background image and logo right now.

Unfortunately, you may need to make these keyboard changes individually within each user account. To do so:

  1. Log into your Ubuntu account.
  2. Right-click your username in the upper-right corner of the top toolbar on your screen.
  3. Look for and right-click "System Settings". If it isn't on the menu, right-click directly to the right of your username on the toolbar. "System Settings" should be listed at the top of this menu.
  4. Select "Keyboard" in the window.
  5. Select "Layout Settings" in the lower-left corner of the next window.
  6. Choose your settings. Click "Options" in the lower-right corner to further customize your keyboard settings. If you'd like, you can choose to program individual key combinations to automatically change the keyboard layout/settings for you.

If your keyboard layout change isn't working properly, you may need to use the command-line to fix it. This link may be helpful:

http://igrudge.net/keyboard-layout-ubuntu-server-11-04/

To download Simple LightDM Manager or get more information about it, visit:

http://www.freedesktop.org/wiki/Software/LightDM

Solution 2:

Had the same problem. Found many non-working solutions. But finally I found a workaround which indeed worked:

  • Edit the file /etc/gdm/Init/Default.
  • Scroll down to the end of the file and add the command setxkbmap de before the last line of the file (So it is above the exit call). Use a different layout instead of de if needed.
  • Restart GDM.

This is for GDM only. Maybe LightDM has a similar file where this line can be added. Don't know.