Ubuntu 20.04 - Keyboard not working on Lenovo Yoga Slim 7i Pro
Solution 1:
I also have a Lenovo Yoga Slim 7i pro with the same problem. What helped me was specifying boot parameters for i8042 controller(that's the controller that controls PS/2 laptop keyboard).
- Open /etc/default/grub and find GRUB_CMDLINE_LINUX_DEFAULT line.
- Change it to
GRUB_CMDLINE_LINUX_DEFAULT="i8042.direct i8042.dumbkbd"
- Run sudo update-grub
- Reboot
i8042.direct - Put keyboard port into non-translated mode i8042.dumbkbd - Pretend that controller can only read data from keyboard and cannot control its state (Don't attempt to blink the leds)
Hope that helps. You might also check this thread Ubuntu 17.04 keyboard not responding after suspend
People tried different i8042 options when suggested didn't work.
EDIT I still haven't found any explanation for this bug. I also tried installing newer kernel version(5.11), but not only the problem with keyboard still occured, the monitor started having problems - constant flickering when moving mouse/pressing keys. So i reverted back to 5.8.
Solution 2:
I have this exact issue with my Lenovo Carbon X1 6th gen. My keyboard and touchpad are unresponsive after waking from suspend.
I've found that pressing the Esc key right after waking up from sleep will fix the issue until the next suspend.