Ubuntu – Middle mouse click emulation on trackpad, how can I set it


I've just updated to Ubuntu 11.10 and I'm using Unity. Since the update I can no longer use 'Middle Clicks' with the Track-pad. Tab-browsing in Firefox has become a pain 🙁

I used to swap the 'three finger tap' middle click and the 'two finger tap' right click, since I nearly never use right clicks. This was done trough the mouse configuration I guess but I can't find it now.

Where can I set this?

To make things even worse the three finger tap does nothing, so middle clicks are not possible at all since the update.

How can I fix this?

I know I can remove the install (i got a separate home partition) and install an old version but I would like to use the actual software and recent Unity if possible.

Best Answer

To fix the middle click you can use the following command:

xinput set-int-prop NN 266 8 2 3 0 0 1 2 3

Where NN is the id of the mousepad device, you can see it with the command xinput list. 266 is the id of the property "Synaptics Tap Action" you can see it with xinput list-props NN. Example:

xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Tap Action" 8, 9, 0, 0, 1, 2, 3

You have to run that command after each resume. To preserve your synaptics configuration after resume, you can follow this steps (from wiki.archlinux.org):

Gnome settings daemon may override existing settings (for example ones set in xorg.conf.d) for which there is no equivalent in any of the graphical configuration utilities. It is possible to stop gnome from touching mouse settings at all:

1. Run dconf-editor
2. Edit /org/gnome/settings-daemon/plugins/mouse/
3. Uncheck the active setting 

It will now respect your system's existing synaptics configuration.

It worked for me on Ubuntu 11.10 AND now I have:

Two-finger scrolling.
Middle Click with two fingers tap.
Right Click (tap at bottom right of scroll area).