1

I recently acquired a Lenovo IdeaPad L340-15API that works mostly OK with the exception of the touchpad (and the wireless interface, but I already fixed that). Looking around I found several similar issues for people with other Lenovo laptops, all with ELAN touchpads.

One solution that appeared was to use an specific kernel, but that is an older version than the one given in Disco. Looking further, it looks like what needs to be done is to patch the kernel adding this version of the touchpad to the drivers/input/mouse/elan_i2c_core.c, and looking at the latest commits on the Linux kernel, this model of touchpad has already been added to de driver, just in a future version of the kernel, here it is.

So, how do I add support for this touchpad in the current kernel of Disco?

Output of uname -a:

Linux twisto-laptop-ultimate 5.0.0-20-generic #21-Ubuntu SMP Mon Jun 24 09:32:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
HaPK
  • 43

2 Answers2

0

what you're looking for is ukuu

install :

sudo add-apt-repository ppa:teejee2008/ppa
sudo apt update && sudo apt install ukuu -y && sudo ukuu

usage :

ukuu usage

as per : How to update kernel to the latest mainline version without any Distro-upgrade?

tatsu
  • 3,107
  • UKUU isn't available on teejee2008's repository for Disco Dingo. I also tried to compile it from source but the compiler throws me errors. At this point I would like to create the kernel patch with just that extra line and patch my kernel. – HaPK Jul 08 '19 at 03:06
  • Here is the failed build for AMD64 for Disco in Launchpad https://launchpad.net/~teejee2008/+archive/ubuntu/ppa/+build/16347808 – HaPK Jul 08 '19 at 03:23
  • you know you can just install new kernels like this : sudo dpkg -i *.deb after dowloading them from here : https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.2/ ukuu is just a gui tool for this. – tatsu Jul 08 '19 at 06:11
0

I finally solved my issue by using UKTools and selecting the latest stable kernel published in mainline, now my touchpad works flawlessly. Output of uname -r, which shows the kernel with support for my touchpad:

5.0.21-050021-generic

What I like about this is that the kernel with support is not too far away, and in the very close future there will be support for this particular elan touchpad.

HaPK
  • 43