I recently installed Ubuntu 20.04 on a brand new Yoga Slim 7i Pro. Everything seems to work fine, except for the fact that the internal keyboard is usually unresponsive after turning on the computer - only select f-keys work (brightness, airplane mode, microphone on/off). The keyboard works fine in the UEFI and Grub menu; it is only after running Ubuntu that it fails. External keyboards work fine, as do both the touchpad and external mice.
Strangely, the keyboard typically starts to work just fine after a period of time between approximately 0 and 20 minutes. As far as I'm aware the timing seems completely random - I have not been able to find any event which triggers this.
After the keyboard starts working, running
xinput shows an input of
AT Translated Set 2 keyboard which isn't there otherwise.
I've tried several methods which have been recommended for people with similar problems, including:
sudo apt updateand
sudo apt upgrade
sudo apt install xserver-xorg-xinput-all
Installing and running a newer kernel (5.10), which according to a forum had fixed a similar issue for other people. This only made things worse - the computer screen spazzed out completely until I installed a fresh version of Ubuntu 20.04 again.
Installing Ubuntu 21.04. This had a similar effect as the newer kernel.
I discovered a recently active forum on Lenovo's website where people with the same type of computer are having the exact same problem - it appears that this may be a bug with respect to the laptop in question.
Any and all help with this issue is greatly appreciated.
Small update: It appears that attempting to use the keyboard and brightness keys helps "activate" the keyboard. Combinations of pressing normal keys, pressing brightness keys, waiting, opening Terminal / a browser, attempting to type and repeating work to activate the keyboard within 20 seconds in most cases; however, I have not been able to recreate any particular sequence more than twice in a row. It seems that this is necessary - the keyboard has (almost) never worked with the first press(es) of a key, no matter how long the computer has been running since rebooting.