So libinput its nearing its first stable release with a release candidate
Which adds proper support for thumb / palm detection on touch pads
along with swipe & pinch gesture support something dearly missed in Linux for multi touch capable laptops.
Can anyone provide a good instruction on how to install it on Ubuntu 15.04
As I believe we wont be seeing it as default in a Ubuntu installation for a while.
Best Answer
This is how to install libinput to Ubuntu.
Install some needed packages
Install
xserver-xorg-dev
. For 14.04.3 it may bexserver-xorg-dev-lts-vivid
. Be careful. You need to check whatxserver-xorg
package is installed.Clone
libinput
andxf86-input-libinput
.Build and install.
Add to file
conf/90-libinput.conf
stringOption "Tapping" "True"
beforeEndSection
to the touchpad section.Copy config file to enable
libinput
.Log off and log on.
You will see that
libinput
is used by runningxinput list-props <your_touchpad_id>
.If you do not like using
libinput
, you can always disable it byI just installed it, now I am figuring out how to setup palm detection. It looks like it is enabled by default, but I do not quite understand yet how does it use kernel reported width and pressure.
It looks like currently there are no major advantages of using
libinput
in Ubuntu.xf86-input-libinput
just wraps it to Xorg and nothing else. So extra gestures are not supported. At least I do not know if they do. Wayland or Mir will be more capable, I guess.After some testing I found an advantage. There is an issue with
xorg-synaptics
that when you put a finger on button area, you can't use another finger to move cursor. That is inconvenient for people who like to use hardware buttons for clicking. That problem has been reported many times as a bug.In
libinput
there is no this issue at all.That was a fun to test. Thanks for the question.