Lenovo yoga 7, keyboard not working under ubuntu 22.04

Asked by Girolamo Giudice

Hello all,

I just tried to install Ubuntu 22.04 on my Lenovo yoga 7 but the keyboard won't work.

It works fine till grub.

what I tried since (yoga slim 7i seems to have a similar problem) :

Running sudo apt update and sudo apt upgrade
Running sudo apt install xserver-xorg-xinput-all
change GRUB_CMDLINE_LINUX_DEFAULT="i8042.direct i8042.dumbkbd" in /etc/default/grub and sudo update-grub
change GRUB_CMDLINE_LINUX_DEFAULT="atkbd.reset=1 i8042.nomux=1 i8042.reset=1 i8042.nopnp=1 i8042.dumbkbd=1" in /etc/default/grub and sudo update-grup
Update Kernel to 5.18
Fn + key combinations works

Any help is appreciated.

Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Is this a dual boot system?

Revision history for this message
Girolamo Giudice (iceman2005) said :
#2

yes, it is
Windows 11 + Ubuntu 22.04

Revision history for this message
Girolamo Giudice (iceman2005) said :
#4

on the boot.log I got these error messages if this can help:
[FAILED] Failed to start Load Kernel Module efi_pstore.
See 'systemctl status modprobe@efi_pstore.service' for details.
         Starting Load Kernel Module mtdpstore...
[FAILED] Failed to start Load Kernel Module pstore_blk.
See 'systemctl status modprobe@pstore_blk.service' for details.
[FAILED] Failed to start Load Kernel Module pstore_zone.
See 'systemctl status modprobe@pstore_zone.service' for details.
[FAILED] Failed to start Load Kernel Module ramoops.

Revision history for this message
Girolamo Giudice (iceman2005) said :
#5
Revision history for this message
Manfred Hampl (m-hampl) said :
#6

If you connect an external keyboard, does it work then?

Revision history for this message
Girolamo Giudice (iceman2005) said :
#7

Yes the external keyboard works

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

The pstore messages most probably are not related at all. there was a recent update that now leads to some strange messages (including "mtd device must be supplied (device name is empty)", see Bug #1981622) but they all should not have an effects on the keyboard.

Revision history for this message
Launchpad Janitor (janitor) said :
#9

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Gunter Ohrner (gohrner) said :
#10

I can confirm this issue with a Lenovo Yoga 7 with AMD Ryzen CPU.

The internal keyboard is completely non-functional in the installer or live CD. In my case, even hotkeys for screen brightness control do not seem to work.

External USB keyboard works fine.

Revision history for this message
Thomas Skytte (thosky) said (last edit ):
#11

I can also confirm this problem. I have just received the new Yoga 7 AMD Ryzen 7 6800U and the keyboard is not detected here as well. It's on Pop OS 22.04 but I guess the problem is the same as on Ubuntu 22.04.
Only the brightness control is detected. External keyboard works. The mentioned grub changes have been tried as well without success.

Revision history for this message
Girolamo Giudice (iceman2005) said :
#12

Hello guys I solved this by recompiling the kernel with this patch
https://<email address hidden>/

Revision history for this message
Thomas Skytte (thosky) said (last edit ):
#13

@Girolamo: Sorry if my question is stupid, but how did you recompiled the kernel with the patch?

Revision history for this message
Girolamo Giudice (iceman2005) said :
#14

I don't remember all the steps precisely but:

I Downloaded the last Kernel from Kernel.org
and patched the kernel with the patch available here https://<email address hidden>/ (I am not 100% sure if I used git patch or git diff to patch it)

copied the config file you are currently using to the new kernel with
cp /boot/config-`uname -r` .config
and then type
make oldconfig ( Probabily it will asks what to do with the new parameters, but I left it as default)

then compile the kernel as deb pkg with
make -j4 deb-pkg where 4 is the number of cores you may want to use (wait a bit) (with a 6800u you can use more)

sudo dpkg -i linux-*.deb to install the packages and
sudo update-grub to update grub

If evething went smooth the you can load the new kernel with the keyboard working

Revision history for this message
Thomas Skytte (thosky) said :
#15

Thanks for the instruction. I can see a new Linux kernel 6.0 has been released and it should include the Ryzen 6000 keyboard fix:

https://harchi90.com/linux-6-0-supporting-new-intel-amd-hardware-performance-improvements-much-more/

I think I will try this one first, and if it's not working then go for recompiling the kernel with the patch.