[ThinkPad L380 Yoga] Touchpad not recognized as Clickpad
Hey there,
since kernel version 4.18 multiple touchpads/clickpads get exported in a wrong way by the kernel. This issue affects models like the ThinkPad P52/P72 or the T480s. @bentiss already created a series of patches (Bugzilla 1628715), which work great, but at the moment they are still missing in the current stable kernel releases of fedora 29.
I have a ThinkPad L380 Yoga running fedora 29 with kernel 4.20.5, which is also affected by this bug. So it is not possible to use the clickpad to right click or drag any windows.
Instead of patching all new kernel releases myself, i would like to use the quirk (quirks: add a quirk for the Lenovo T480s clickpad) which was added for the T480s in libinput 1.12.4 until the patches reach the stable kernel releases.
In the following record you can see the properties of the Elan Touchpad with standard libinput 1.12.6:
record_1.12.6.txt
It clearly advertises a BTN_RIGHT event and the INPUT_PROP_BUTTONPAD property is missing.
So i looked into the quirk for the T480s and added a similar quirk for the L380.
After checking with libinput debug-events
it now states:
event16 - Elan Touchpad: kernel bug: clickpad advertising right button
So i seem to force the BUTTONPAD property successfully.
But looking into the record for event16, the property is still missing and the BTN_RIGHT event is also still there:
record_1.12.6_custom.txt
Here is a patch with all the changes i made:
l380_quirk.patch
What am i doing wrong. Why can't i force my L380 Touchpad to work as a clickpad, like the quirk for the T480s does it?
I hope someone can help me adding this quirk until the bug is fixed in the kernel.
Kind regards,
Pascal