Simulate a middle-click on Lenovo Yoga 2 Pro Synaptics touchpad

I Am writing a Guide How to install Ubuntu on Lenovo Yoga 2 Pro

To get a middle Mousebutton, I tried this:

I edited the file /usr/share/X11/xorg.conf.d/50-synaptics.conf. There I edited the "touchpad catchall" section, so it will look like this:

Section "InputClass"
    Identifier "touchpad catchall"
    Driver "synaptics"
    MatchIsTouchpad "on"
    # This option is recommend on all Linux systems using evdev, but cannot be
    # enabled by default. See the following link for details:
    # http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
    MatchDevicePath "/dev/input/event*"

    Option "FingerLow"              "46"
    Option "FingerHigh"             "46"
    Option "ClickFinger1"           "1"
    Option "ClickFinger2"           "2"
    Option "ClickFinger3"           "3"
    Option "TapButton1"             "1"
    Option "TapButton2"             "2"
    Option "TapButton3"             "3"
    Option "AreaBottomEdge"         "85%"
    Option "SoftButtonAreas"        "60% 0 85% 0 40% 60% 85% 0" # Btn2 LRTB - Btn3 LRTB
    Option "EmulateMidButtonTime"   "75"
EndSection

(source: http://memobadz.wordpress.com/2014/02/16/lenovo-yoga-pro-2-on-ubuntu/ )

But this didn't enable a simulated Middle click as mentioned in memobadz' wordpress Blog (although it still helped a lot in other aspects).

How do I simulate a Middle mouse-button by tapping three Fingers?

I couldn't manage it with that help so far.


Below is what I have in the file /usr/share/X11/xorg.conf.d/50-synaptics.conf and works as intended.

Section "InputClass"
    Identifier "touchpad catchall"
    Driver "synaptics"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Option "TapButton2" "3"
    Option "TapButton3" "2"
EndSection

Alternatively, you can create a script as described in

Execute a command 20 seconds after the desktop is booted

or include the commands below in $HOME/.xprofile

sleep 20
synclient TapButton2=3
synclient TapButton3=2

You don't have to change anything to middle-click on the touchpad in Ubuntu -- you can just tap the upper-right corner per this answer from 2012 (still true now in Ubuntu derivative Linux Mint 18): https://askubuntu.com/a/141460