#!/bin/bash TOUCHPAD="SynPS/2 Synaptics TouchPad" TRACKPOINT="TPPS/2 IBM TrackPoint" killall -9 syndaemon echo "touchpad on" xinput set-prop "${TOUCHPAD}" "Synaptics Off" 0
echo "setting soft button areas" #Order: RightButtonAreaLeft, RightButtonAreaRight, RightButtonAreaTop, RightButtonAreaBottom, MiddleButtonAreaLeft, MiddleButtonAreaRight, MitddleButtonAreaTop, MiddleButtonAreaBottom" xinput set-prop "${TOUCHPAD}" "Synaptics Soft Button Areas" 4000, 0, 4063, 0, 3000, 4000, 4063, 1500 #xinput set-prop "${TOUCHPAD}" "Synaptics Soft Button Areas" 4000, 0, 0, 4466, 3000, 3999, 0, 1500 echo "enable twofingerscrolling in both directions" xinput set-prop "${TOUCHPAD}" "Synaptics Two-Finger Scrolling" 1, 1 echo "shortening upper and lower edge to reserve space for 'just button' actions. Order: left, right, top, bottom" xinput set-prop "${TOUCHPAD}" "Synaptics Area" 0, 0, 1500, 4000 #workaround for just scrolling #xinput set-prop "${TOUCHPAD}" "Synaptics Area" 0, 4000, 1500, 0 echo "enabling palm detection" xinput set-prop "${TOUCHPAD}" "Synaptics Palm Detection" 1 #echo "Middle mouse button emulation for scrolling on trackpoint" #xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation" 1 #xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation Button" 2 #xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation Timeout" 200 #xinput set-prop "${TRACKPOINT}" "Evdev Wheel Emulation Axes" 6 7 4 5 # horizontal und vertikal echo "enable tap events" # RTCornerButton, RBCornerButton, LTCornerButton, LBCornerButton, TapButton1, TapButton2, TapButton3 xinput set-prop "${TOUCHPAD}" "Synaptics Tap Action" 2, 3, 1, 1, 1, 3, 0 echo "list actual properties" xinput list-props "${TOUCHPAD}" echo "no touch while typing" syndaemon -i 0.5 -d ** Changed in: xorg (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1300620 Title: [Lenovo ThinkPad S1 Yoga] Middle button does not work for scrolling To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1300620/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs