Nothing makes you doubt your own memory faster than typing your exact Ubuntu password on the morning login screen only to see “Sorry, password authentication didn’t work” over and over — especially when you know you typed every letter right. Because passwords appear as hidden dots, it is hard to spot that Ubuntu’s login screen (GDM) switched to a US keyboard layout instead of UK, French AZERTY, German QWERTZ, or another regional map, scrambling characters like @, ", £, or #. Here is how to sign in right away and lock your real keyboard layout permanently on the login screen.
1. Check and Switch the Keyboard Layout Right on the Login Screen
Before trying a password reset, glance at the top bar of the Ubuntu login screen itself so you can log into your desktop straight away.
- Click your username on the login screen so the password field appears.
- Look at the top-right corner of the login screen bar next to the power and accessibility icons for a tiny two-letter language badge such as
en,us,gb,fr, orde. - Click that badge (or press Super + Space) and pick your actual physical keyboard layout.
- If there is a small eye icon inside the right side of the password field, hold or click it briefly after typing to verify symbols like
@or£match what you expect before pressing Enter.
No language badge shown yet? Try pressing your password using the standard US layout swap mentally once to get inside: on a UK keyboard running a US layout, " and @ are swapped, and # or ~ sit on backslash keys.
2. Make Your Keyboard Layout the System Login Default Inside Settings
Once signed into Ubuntu, set your everyday keyboard layout at the system level rather than only inside your personal user profile, otherwise the login screen snaps back to US on the next reboot.
- Open Settings from the top-right system menu or app grid.
- Click Keyboard in the left sidebar and review Input Sources at the top. Make sure your exact keyboard layout (for example, English (UK)) sits at the very top of the list, and click the three-dot menu beside unused layouts to Remove extras you do not own.
- Next, click System -> Region & Language in the left sidebar.
- Look at the top tabs (or bottom button): click Login Screen (you may need to click Manage Installed Languages or enter your password to unlock system-wide changes).
- Set the Language and Keyboard / Formats there to match your user profile so Ubuntu’s login greeter inherits the identical layout after every cold boot.
3. Set the System Console and X11/Wayland Login Layout Permanently
If Ubuntu still drops back to an American layout at the first lock screen after a full shutdown, update Ubuntu’s system-wide default keyboard file in one clean command:
- Press Ctrl + Alt + T to open Terminal.
- Run the interactive system keyboard configurator:
sudo dpkg-reconfigure keyboard-configuration - Confirm your keyboard model (Generic 105-key PC works for almost all UK/EU laptops and desktops, or Generic 104-key PC for US).
- Select your country of origin (such as English (UK)) and accept default modifier prompts.
- Reboot your computer once to confirm the login screen greets you in the right keyboard layout automatically.
4. Also Check Num Lock on Compact Laptops Without a Number Pad
If letters like U, I, O, J, K, L suddenly type 4, 5, 6, 1, 2, 3 on older compact laptops at startup, Num Lock turned itself on automatically during boot and hijacked the right-hand letter grid. Tap Fn + NumLk (or check the password reveal eye icon) before pressing Enter.