Ubuntu 20.04 - keyboard not working
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.
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-20To implement this, you can either create a new file in
/etc/modprobe.d
with the suffix.conf
or use the mainblacklist.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.
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.