In almost all the large modern Linux distributions and in the last releases of Ubuntu-based distributions the touchpad was configured out of the box to have right, left and middle clicks and you could configure them easily. The middle click is usually done with a two or three-finger tap.
In Ubuntu 12.04 I haven't seen where to enable the middle click and it is not enabled by default.
You can make it work and persist in Ubuntu 12.04, even afer suspending, following these steps.
First, create a file with your script:
(You could place the script in another directory, e.g.
/usr/bin
or/etc
, if you wanted it to be in a more "generic" place, in case you have multiple accounts in your ubuntu installation.)Then make it executable:
And finally, run the following command replacing "user" with your user name:
Then reboot, or logout & login, or restart GNOME.
That's all!
For more information about this fix, go here.
I was searching for this and I found out that the touchpad has different settings for taps at the corners, and if you tap at the bottom right corner it does Right click. But if you tap at the top right corner it does Middle click. This is the default setting.
Another option which might be simpler and avoids startup scripts is the following.
Stop the gnome settings daemon from overriding existing settings (font: Touchpad Synaptics - ArchWiki).
Edit the X11 configuration file for the touchpad.
and add your button options under the section with the synaptics driver, like so:
To show the list of actual values:
hope it helps (it did for me!)
You can enable it with the command
synclient TapButton3=2
in the terminal, but that seems to get overridden on suspend+resume and after a reboot.Permanent solution:
It's explained for Xfce in this Xfce forum thread
However, unity-2d (and I suppose also Unity) likes to fiddle with these settings on resume, and I have no idea how to disable that. maybe it's utouch, I don't really know.
The bottom line is that there is a way to configuring middle click permanently:
sh -c "/usr/bin/synclient TapButton3=2"
, then save it.This is well and good until you suspend and resume. for that:
gksudo gedit /etc/pm/sleep.d/80-synaptics-three-finger
Copy and paste the following text into the file:
Replace
YOUR_USER_NAME
with your login name - not the long one; e.g. use 'fred' instead of 'fred fuchs'. if you don't remember it, you can always typewhoami
in a terminal window and it'll tell you.Save the file.
Make it executable; simply type
sudo chmod +x /etc/pm/sleep.d/80-synaptics-three-finger
in the terminal window. it will ask for your password.If you did all this correctly, your system should retain three finger clicking as middle click after a suspend/resume cycle.
Now that was fun and user-friendly, wasn't it? I can only wonder why unity silently meddles with synclient settings and wonder even more why there isn't a simple GUI tool to configure all of this. anyway, there you have it.
Download synaptiks from the Software Center.
Open it, then go to Touchpad Configuration >> Tapping.
Set your configuration there, as you would like.
I tried several solutions offered here, but nothing was working on my Toshiba Satellite. The trick seems to be the distinction between a "touchpad" which is a mouse pad with buttons adjacent to it, and a "clickpad" which is a pad with no adjacent buttons: you click the pad.
This Toshiba Satellite has a clickpad, so clicking in the corner didn't work, and I couldn't get three-finger click to work.
Based on dllud's answer, I found I had to edit (on kubuntu)
/usr/share/X11/xorg.conf.d/50-synaptics.conf
based on information at https://wiki.archlinux.org/index.php/Touchpad_Synaptics#Buttonless_touchpads_.28aka_ClickPads.29 and I now have sections like so:This sets the pad to be 40% left button, 20% middle button, 40% right button. It still takes some practice to hit the middle correctly.
Touchpad with buttons
I used to have a laptop with touchpad buttons, and to click both of them simultaneously to cause middle click emulation.
Touchpad without button
I now have a buttonless touchpad. Here is what I did:
Use the following command to learn about your touchpad size values and configuration:
Then use
synclient var1=value1 var2=value2 ...
syntax to modify those values to suit your needs. See the example command I give beloNote that:
ClickFinger1
,ClickFinger2
andClickFinger3
options remap clicks when they are done with respectively one, two or three fingers left touching the touchpad.Here is the command I ran and set in the
Startup Applications Preferences
window to configure my touchpad:RightButtonAreaTop=0
andRightButtonAreaLeft=0
unset the "right button" causing right click (I failed to use ivan-volosyuk's settings to have all three buttons set. I only have middle click). I use two-finger tap to produce right click. Not being able to maintain right click is not bothering enough to push me to find a solution.MiddleButtonAreaTop=1916
andMiddleButtonAreaLeft=1617
set the "right button" to cause middle click.ClickFinger1=0
Disables the special interpretation of the click which happen when one finger touches the surface at the moment of the click. Its previous value:ClickFinger1=1
caused my right clicks being interpreted as left click when leaving a non-clicking finger touching the touchpad.Hack it the way you like. Maybe you'll do better than me.
Check this. http://forums.debian.net/viewtopic.php?p=354960#p354960 I have put on startup
Touchpad has different settings for taps at the corners, and if you tap at the bottom right corner it does Right click. But if you tap at the top right corner it does Middle click. This is the default setting.
simple bro works for me :)