Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Linux Keyboard Installation Screen Errors

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

When installing Linux, a keyboard that doesn't respond or types the wrong characters can bring the entire setup to a halt. This guide walks you through the most common keyboard-related errors on the installation screen—unresponsive keys, wrong layout, and missing keyboard detection—and shows you how to fix them quickly, whether you're using a live USB or a full installer.

What You'll Need

  • A working keyboard (try a different one if possible, especially USB vs. PS/2).
  • Access to the BIOS/UEFI settings (usually by pressing Del, F2, F10, or Esc during boot).
  • Your Linux installation media (USB or DVD) with the ISO you're trying to install.
  • If you're using a laptop, an external USB keyboard can help bypass internal keyboard issues.
  • A second computer or phone to look up solutions if you're stuck.

Step-by-Step

  1. Check physical connections. If you're using a wired keyboard, unplug and replug it. For wireless keyboards, replace batteries or recharge, and re-pair the receiver. Try a different USB port (preferably a USB 2.0 port directly on the motherboard, not a hub).
  2. Test the keyboard in BIOS/UEFI. Restart your computer and enter the BIOS/UEFI setup. If the keyboard works there (you can navigate menus), the problem is likely with the Linux installer or the live environment. If it doesn't work in BIOS, the issue is hardware or BIOS settings—see Troubleshooting.
  3. Boot with the "nomodeset" kernel parameter. At the GRUB menu (usually appears after booting from the USB), highlight the entry (e.g., "Try or Install Ubuntu") and press e to edit. Find the line starting with linux and append nomodeset to the end. Press Ctrl+X or F10 to boot. This disables some graphics drivers that can interfere with keyboard input in certain hardware.
  4. Select the correct keyboard layout during installation. When the installer asks for your keyboard layout, use the on-screen preview to test keys. If the wrong characters appear, click "Detect Keyboard Layout" (if available) and press a few keys as prompted. If detection fails, manually choose your layout from the list (e.g., "English (US)" vs. "English (UK)").
  5. Use the virtual keyboard if the physical one fails. Some installers (like Ubuntu's) have an accessibility icon (a person silhouette) in the top-right corner. Click it and enable "Screen Keyboard" to use the mouse to type. This can get you through the installation, but you'll still need to fix the underlying issue afterward.
  6. Try a different kernel or boot option. If nomodeset doesn't help, try adding irqpoll or acpi=off to the same linux line. These can resolve IRQ conflicts that cause keyboard failures. Be aware that acpi=off may disable power management features, but it's only for installation.
  7. Check if the keyboard is recognized in the live session. If you're using a live desktop, open a terminal (Ctrl+Alt+T) and run lsusb or dmesg | grep -i keyboard to see if the system detects the device. If it shows up but doesn't work, it might be a driver issue—try a different distribution or a newer kernel version.
  8. Reinstall with a different USB port or USB 2.0 mode. Sometimes USB 3.0 ports cause issues with older Linux kernels. In BIOS, disable "XHCI Hand-off" or set USB to "Legacy" mode. This can make the keyboard work during installation.
  9. Use a PS/2 keyboard if available. PS/2 keyboards are often more compatible with Linux installers, especially on older hardware. If you have a PS/2 port and a PS/2 keyboard, try that.
  10. After installation, fix the layout permanently. Once you get through the installer, you may need to reconfigure the keyboard layout. In most desktop environments, you can do this via Settings > Keyboard > Layout. For command-line, use localectl set-keymap us (replace "us" with your layout) and reboot.

Common Mistakes

  • Choosing the wrong layout. Many users pick "English (US)" when they actually need "English (UK)" or another variant. Always test with the on-screen preview.
  • Using a wireless keyboard without a receiver. Some wireless keyboards require a USB dongle; if it's plugged into a hub or a faulty port, the keyboard won't work.
  • Forgetting to save BIOS changes. If you change USB settings in BIOS, you must save and exit (usually F10) for the changes to take effect.
  • Ignoring the "nomodeset" option. Graphics driver issues can cause keyboard input to freeze, so don't skip this step if you have a dedicated GPU.
  • Assuming the keyboard is broken. If the keyboard works in BIOS, it's almost certainly a software issue, so don't replace hardware unnecessarily.

Tips

  • Keep a USB keyboard handy—even a cheap one—to rule out hardware problems.
  • Download the latest version of your Linux distribution; newer kernels have better hardware support.
  • If you're dual-booting, disable "Fast Boot" in Windows and "Secure Boot" in BIOS, as they can interfere with the boot process.
  • Try a different distribution if you're stuck. For example, if Ubuntu fails, try Linux Mint or Fedora—they may handle your hardware better.
  • Use the "Try" mode before installing to test keyboard functionality in a live session.

Troubleshooting

Keyboard doesn't work at all in the installer. If the keyboard doesn't work even in BIOS, check the cable, try a different keyboard, or reset BIOS to defaults. If it works in BIOS but not in Linux, try the nomodeset and acpi=off boot parameters. If that fails, try a different Linux distribution or an older LTS version.

Keyboard works but types wrong characters. This is almost always a layout issue. Go back to the keyboard layout screen and choose the correct one. If you're unsure, use the "Detect Keyboard Layout" feature. You can also test by typing in the preview box—if pressing the "A" key shows "@", you're on the wrong layout.

Keyboard freezes after a few minutes. This could be a power management issue. Try adding usbhid.mousepoll=0 or usbhid.jspoll=0 to the kernel line. Also, check if your USB ports are set to "Selective Suspend" in BIOS and disable that.

Laptop keyboard doesn't work, but external keyboard does. This is common with certain laptop models. Try adding i8042.nopnp or i8042.reset to the kernel line. If that doesn't help, you may need to install a driver after the OS is installed, but you can use the external keyboard to complete the installation.

Installer freezes when I press a key. This might be a graphics driver issue. Use nomodeset and also try noapic to disable the Advanced Programmable Interrupt Controller. If the installer still freezes, try a text-based installer (some distributions offer a "Minimal" or "Server" install that uses a text interface).

Frequently Asked Questions

Q: Why does my keyboard work in BIOS but not in Linux installer?
A: This usually indicates a driver or kernel compatibility issue. The BIOS uses its own basic drivers, while Linux needs proper drivers for your keyboard controller. Try boot parameters like nomodeset or acpi=off.

Q: Can I install Linux without a keyboard?
A: Yes, you can use the on-screen keyboard in most graphical installers. Look for the accessibility icon in the top-right corner of the installer window. You can also use a USB mouse to navigate and type with the virtual keyboard.

Q: How do I know which keyboard layout to choose?
A: The layout should match the physical keys on your keyboard. If you're in the US, "English (US)" is typical. If you're in the UK, "English (UK)" is correct. You can test by typing in the preview box—if the characters match the keys you press, the layout is correct.

Q: What does "nomodeset" do?
A: It tells the Linux kernel to use basic framebuffer drivers instead of proprietary or experimental graphics drivers. This can prevent crashes and freezes that affect keyboard input.

Q: My wireless keyboard doesn't work during installation. What can I do?
A: Try plugging the receiver into a different USB port, preferably USB 2.0. If it still doesn't work, use a wired keyboard for the installation, then configure the wireless keyboard afterward.

Q: After installation, my keyboard layout is wrong. How do I fix it?
A: In most desktop environments, go to Settings > Keyboard > Layout and add the correct one. For command-line, use localectl set-keymap us (replace "us" with your layout code) and reboot.