Score:1

Ubuntu 20.04 - Keyboard not working on Lenovo Yoga Slim 7i Pro

id flag

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:

  • Running sudo apt update and sudo apt upgrade

  • Running 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.

bohdan_trotsenko avatar
jp flag
on 22.10 none of the grub parameters suggested worked for me, I installed kernel 6.0.5 to get the keybaord working.
Score:4
br flag

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).

  1. Open /etc/default/grub and find GRUB_CMDLINE_LINUX_DEFAULT line.
  2. Change it to GRUB_CMDLINE_LINUX_DEFAULT="i8042.direct i8042.dumbkbd"
  3. Run sudo update-grub
  4. 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.

iuvbio avatar
no flag
Is this really the only solution? Since the keyboard works properly, including LEDs, after "activating" it with some random key presses, it should be possible to get the full functionality somehow, shouldn't it? I think there should be a boot option to activate the keyboard on startup.
de flag
I have not trieed exactly this solution. What I have tried is the solution at the top of this page (quite similar to the above): https://forums.lenovo.com/t5/Lenovo-Yoga-Series-Notebooks/lenovo-yoga-slim-7-pro-intell-keyboard-doesnt-work-on-ubuntu-20-04/m-p/5087655?page=2 (Credits to Nejmish) To fix the keyboard and the screen flickering (tested on manjaro 5.13 kernel and ubuntu 21.04), change your grub config entry named GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub to: GRUB_CMDLINE_LINUX_DEFAULT="i915.enable_psr=0 i8042.direct i8042.dumbkbd" update-grub and reboot
ua flag
Worked like a charm for me, on a Yoga Slim as well. Had to use a USB keyboard to do it :)
Ashok avatar
um flag
I know this isn't the right place be to asking, but i couldn't find any forum related to this so, how is the overall performance and battery life of this laptop using linux guys?
sohammondal avatar
mr flag
I'm using Ubuntu 22.04 on Lenovo Yoga Slim 7 Pro 14IHU5 & had 2 issues - the screen flicker and the keyboard not responding. Both of them got fixed with GRUB_CMDLINE_LINUX_DEFAULT="i915.enable_psr=0 i8042.direct i8042.dumbkbd".
bashis avatar
ir flag
Worked for me with Linux Mint under VMware Workstation
Score:1
in flag

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.

Michael avatar
uy flag
This worked for me at, at least once. I did not try this, but might be useful to others: https://github.com/mistine/i8042-keyboard-fix-linux
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.