[FIX] Ubuntu 20.04 LTS Keyboard and Mouse not Working

After upgrading to the latest Ubuntu 20.04 LTS release, some users have reported their keyboard and mouse becoming unresponsive, particularly at the login screen. This issue often points to problems with USB input drivers, which may have been affected by recent system updates.

The primary cause is typically driver corruption or failure, though it could also result from kernel-related bugs or hardware conflicts.

Ubuntu
Ubuntu

Method 1: Check Keyboard Layout

This is the most obvious step you should take whenever you face any issue with your keyboard. If you are not able to use your keyboard, it could be due to the keyboard layout being set to a different language. If this is the case, the resolution is pretty simple. You need to change the keyboard layout from the settings.

  1. First of all, search for Settings and then open the window. Alternatively, you can also go to the Settings by clicking your username on the top bar and then selecting System Settings.
  2. In the Settings window, navigate to the Region and Language tab at the bottom.
    Region and Language
    Region and Language
  3. Check the entry under Input Sources. Make sure it is the same as your keyboard. If not, click the + icon to add your keyboard layout.
  4. Once added, you can remove the previous input source by clicking the Trash bin icon.

Method 2: Turn Off Slow Keys or Bounce Keys

Slow keys and bounce keys are features of the GNOME desktop environment. Slow keys are a feature that puts a delay between when the letter key is pressed on the keyboard and when that letter is displayed on the screen. If the slow keys feature is enabled, you will have to hold each key that you wish to press before it is registered.

Bounce keys is a similar feature. Intended for users with physical disabilities, bounce keys tell the system to ignore repeated and rapid presses of the same key based on its configuration. You need to turn off these features to restore the input to the default state.

  1. First of all, open the Settings window from the top bar by clicking on your username and selecting Settings from the drop-down menu.
  2. After that, navigate to the Universal Access tab.
  3. Under Typing, click on the Typing Assist (AccessX) option.
    Typing Assist
    Typing Assist
  4. Disable the typing assist option from the pop-up window, which will turn off both the slow and bounce keys features.

Method 3: Update Your System

If you are not able to use the keyboard only on the desktop screen and it works perfectly fine everywhere else, then it is probably because of a bug with the GNOME desktop icons. If this is the case, it is evident that your system is not up-to-date and needs to be updated as this bug has been fixed. 

  1. First of all, open a Terminal window.
  2. After that, enter the following command to update the packages database:
sudo apt update
Updating Ubuntu
Updating Ubuntu
  1. Once this command has run successfully, enter the following command to initiate the upgrade:
sudo apt upgrade
  1. When prompted, type Y to start the upgrade. Wait for it to complete.
  2. Once it has completed, reboot your system and see if the issue is fixed.

In case the issue is still not fixed, you can remove the GNOME desktop icons for the time being. To remove the GNOME desktop icons package, use the following command:

sudo apt purge gnome-desktop-icons

Once removed, you can install another file manager, and you’ll be good to go.

Method 4: Reinstall Ubuntu

If you installed a fresh copy of the Ubuntu 20.04 version and had other external media connected to the system, the problem of the keyboard and mouse not working could be because of that. If this is the case, you need to reinstall Ubuntu while ensuring that no other external USB devices or media are connected to the system except the USB drive with the installation media. If you have important information, you can either back it up or avoid partitioning the home directory during the installation.

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

9
    PC
    Phillip Coker Sep 13, 2020

    None of these work for me. randomly at startup keyboard and mouse dont work. After a restart, or 2, they begin working for awhile, but eventually will stop and need another restart.

      MZ
      Muhammad Zubyan Author Sep 17, 2020

      Hey there apologize for the late reply that seems more like of hardware or driver issue to me can you check if your keyboard and mouse works fine on another computer. If yes then it’s most likely issues with your driver you have to reinstall Ubuntu to fix this issue.

    NO
    No Oct 6, 2020

    Reinstall Ubuntu 😀
    Best tip ever!

    BL
    bloozguy Oct 26, 2020

    My mouse and keyboard were not working after I switched to 20.04 LTS.
    I was using USB2 ports and it turns out my USB2 ports are not working at all.
    Still don’t know how to fix that.The mouse and keyboard work on USB3.

      MZ
      Muhammad Zubyan Author Oct 28, 2020

      Further investigation reveals that the issue appears to be related to autologin. Can you try disabling the Autologin for testing?

        BL
        bloozguy Oct 28, 2020

        Hi,
        I do not have autologin enabled.I notice that the USB2 does have power (I can charge from it)
        Also ehci-pci does not seem to be “bound”.
        BIOS appears to be okay.

    LM
    Lesli Marvin Nov 27, 2020

    An Acer Aspire E15’s keyboard suddenly stopped working. I thought it was a corruption issue and reinstalled Ubuntu twice, the second time without any peripherals connected to any of the USB ports but it still didn’t fix itself. I came across this article. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1894017 and one or two other articles. I can’t recall the details, but these are roughly the steps.
    With command prompt $ cat /sys/class/dmi/id/chassis_type //returns 10 on Acer Aspire E5-511G (Intel Celeron N2930); it should return 30 or 31, (read the comments.)
    In addition to that the screen brightness keys were the only ones that worked, which matched another post.
    And $ uname -r gave the kernel number, that maybe matched the post above, or some other post.
    Rolling back to the previous kernel version in the grub menu worked. This was only after much trial and error with a buggy Assistive Mode Keyboard enabled in the top right hand menu to actually type into the search bar in Firefox to read the websites.
    I updated to the next kernel not yet supported by Ubuntu using Mainline (Ubuntu Mainline Kernel Installer), an open-source fork of ukuu, which now is pay for use. I’ve never updated the Linux kernel independent of the Distribution before. I didn’t know it was a thing (that people do).
    If this prevents Ubuntu from loading new kernel versions in the future, it will have to be undone, but for now everything works. I hope this gives some clues if you need to search for your solutions to this problem.

    JC
    James Coleman Dec 22, 2020

    In another case `dmesg -Hw` used to tail log and catch error messages before mouse & trackpad & keyboard & all usb stopped working. This showed nouveau fifo: SCHED_ERROR messages and noveau “DRM: failed to idle channel”. Googling for those error messages hinted that switching from noveau driver to NVIDIA driver might help. Solution in this case (Intel NUC laptop with built in intel and geforce video card) was to switch to use NVIDIA driver (Ubuntu – Software & Updates – Additional Drivers – chose between several NVIDEA or the nouveau).

    RB
    roelof berkepeis Jul 12, 2023

    i stumbled upon this article (and these comments) after my HP Elite X2 notebook keyboard suddenly stopped working .. i did not re-install my Xubuntu 22.04, my gut feeling this wouldn’t help..

    the cause was : DIRT !
    i’m able to disconnect the keyboard from the screen, so i just cleaned the connectors a bit .. voila !!