10

I just upgraded my laptop from 18.04.5 to 20.04 and my keyboard and mouse have stopped working. The keyboard works in BIOS and when entering my password for cryptsetup but as soon as it's all fully loaded up, the mouse and keyboard stop working. I've tried using the terminal/command line to enter sudo alt-get install xserver-xorg-input-all as suggested on a few sites. This has not helped at all! Does anyone have any suggestions? I'm completely lost without my laptop!! Thanks in advance.

7 Answers7

10

The problem is Ubuntu thinks your PC is a tablet and diables the keyboard. The fix below works if the following command gives you any number that is not 31 or 32.

cat /sys/class/dmi/id/chassis_type

How to fix this: (from https://askubuntu.com/a/1282269/558457)

There is a bug in recent kernels that disables some laptop keyboards. Mainly Acer and HP so far. Can usually go to recovery and boot from kernel 5.4.0-42 or use an external keyboard.

Blacklisting the intel_vbtn kernel module is a workaround for this, as seen in Why my laptop's keyboard screwed up since kernel 5.4.0-47 till 5.8.0-20

To implement this, you can either create a new file in /etc/modprobe.d with the suffix .conf or use the main blacklist.conf file. The former may be preferable, since you can then just delete the file when it is no longer required (i.e. when the bug is fixed):

sudoedit /etc/modprobe.d/blacklist-intel_vbtn.conf

Add a line to the file, optionally with a comment explaining why you are doing this

# bug in module breaks keyboard, so don't load it
blacklist intel_vbtn

Save the file, exit and reboot.

p0wl
  • 288
3

I had the same issue. I fixed it. In my case, 'slow keys' was turned on. If you are using ubuntu like me, on top right area of your screen beside brightness settings you will find an option with human icon.

There you will see slow key is turned on. Just turn it off. Check this way!

2

Right! Have found a workaround. Have access to GNU GRUB menu as i have dual boot with windows. From There if i select 'advanced options' instead of the default and boot from Linux 5.4.0-42-generic i have access to all keyboard and trackpad features.

0

Maybe it can be because of broken packages, try to fix files of ubuntu by going to the recovery mode and there will be many options to fix packages,boot file etc.

Grub Loader>advanced ubuntu settings>Recovey version a,b,c

0

Ubuntu 20.04 / CHUWI AEROBOOK Have the same issue, although in my case the keyboard stopped working after a few reboots right after install and config.

  1. Still works with USB keyboard after normal boot
  2. Laptop keyboard works after a recovery boot, but display settings are gone - no brightness control, no external monitor.
  3. Tried most of the solutions in posts online to no effect.
0

I have solved the keyboard problem in a different way: on a HP laptop with ubuntu 20.04 i had an external (USB) keyboard, and also a USB mouse. All integrated and external keyboards and mouse were working for long time. One day i connected another device (a monitor) to a USB port, apparently after that the external keyboard stopped working while the external mouse kept working. I tried two solutions in this page ("/etc/modprobe.d/blacklist-intel_vbtn.conf" and "slow keys") but did not solve the problem. I swapped the USB ports for keyboard and mouse, restarted the computer, and everything started to work fine again

tigi
  • 1
0

My laptop (Lenovo Legion) keyboard stopped working including no lights. The touchpad was working fine as was the external keyboard. Rebooting didn't help.

Closing the laptop lid, and opening it again fixed the issue.

This was suggested by lucidbrot here.

Daniel C
  • 4,170