I've just installed Ubuntu 20.04 on Lenovo Legion 5 15ARH05. The touchpad doesn't work and I read on multiple forums it's a common problem.
I tried to update kernel using Ubuntu Mainline Kernel Installer GUI app to
5.10.2 but I probably need (according to https://firstname.lastname@example.org/msg5867550.html) to apply this patch:
I can't figure out how to do that. I've downloaded the compressed
tar.gz file but now I'm stuck since I don't know how to do the patch.
sudo patch linux-47a0001436352c9853d72bf2071e85b316d688a2.tar.gz but that seems to do nothing (just hangs).
Do you know how to fix it? It should be fixed in the next kernel version but I can't wait.
EDIT: The touchpad works in BIOS.
EDIT: After following @dariofac's answer, it looked good but it raises error:
BTF: .tmp_vmlinux.btf: pahole version v1.15 is too old, need at least v1.16 Failed to generate BTF for vmlinux Try to disable CONFIG_DEBUG_INFO_BTF make: *** [Makefile:1164: vmlinux] Error 1