For some unknown reason, there is no option exposed to disable acceleration when using a laptop touchpad with libinput. [insert gamer-oriented argument about how mouse acceleration is incompatible with muscle memory]
Thankfully it isn’t too difficult to remove it in the source code and recompile libinput.
- cd to a suitable empty folder
apt-get source libinput10
sudo apt build-dep libinput10
- cd to the downloaded folder (e.g.
- Edit the file src/filter.c, find:
#defined TOUCHPAD_ACCELERATION 9.0
And replace with:
#defined TOUCHPAD_ACCELERATION 1.0
debuild -b -uc -us
- Glance over the output to make sure build has succeeded
cd ..(update version number as necessary)
sudo dpkg -i libinput10_1.6.3-1_amd64.deb
sudo dpkg -i libinput-bin_1.6.3-1_amd64.deb