Skip to content

Instantly share code, notes, and snippets.

@EiNSTeiN-
Last active February 14, 2017 21:34
Show Gist options
  • Save EiNSTeiN-/c443ee32cf71d65065599288e7bec2af to your computer and use it in GitHub Desktop.
Save EiNSTeiN-/c443ee32cf71d65065599288e7bec2af to your computer and use it in GitHub Desktop.
Installing mtrack touchpad driver on Surface Book

Remove synaptics driver

sudo apt autoremove xserver-xorg-input-synaptics

Install mtrack dependencies

sudo apt build-dep xserver-xorg-input-mtrack

Clone mtrack source code

git clone https://github.com/p2rkw/xf86-input-mtrack.git

Build and install the source code

cd xf86-input-mtrack/
./configure --prefix=/usr --enable-debug-gestures
dpkg-buildpackage
sudo dpkg -i ../xserver-xorg-input-mtrack_0.4.0_amd64.deb

Create xorg configuration at /usr/share/X11/xorg.conf.d/52-surface.conf:

Section "InputClass"
        Identifier "Surface Book ClickPad for mtrack driver"
        MatchIsTouchpad "on"
        Driver "mtrack"
        Option "EdgeSize" "18"
        Option "Sensitivity" "0.6"
        Option "ButtonIntegrated" "true"
        Option "ScrollDistance" "25"
        Option "ScrollClickTime" "0"
        Option "ScrollSensitivity" "15"
        Option "ScrollSmooth" "true"
        Option "ScrollCoastDuration" "400.0"
        Option "ScrollCoastEnableSpeed" "0.2"
        Option "TapDragEnable" "false"
        Option "TapButton1" "0"
        Option "TapButton2" "0"
        Option "TapButton3" "0"
        Option "TapButton4" "0"
EndSection
@raiscui
Copy link

raiscui commented Feb 7, 2017

run dpkg-buildpackage got:

dpkg-buildpackage: full upload; Debian-native package (full source is included)
signfile xserver-xorg-input-mtrack_0.4.1.dsc
gpg: “Paweł Turkowski p2rkw0@gmail.com”已跳过:没有秘匙
gpg: dpkg-sign.xhJIAUYM/xserver-xorg-input-mtrack_0.4.1.dsc: clearsign failed: 没有秘匙

dpkg-buildpackage: 错误: failed to sign .dsc and .changes file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment