Hardcore Linux users will tell you that copy and paste is as simple as selecting a piece of text and middle clicking. And if you’re stuck with a two-button mouse or trackball, the usual trick is to click both left and right buttons simultaneously. This used to work out of the box on Ubuntu, but recent versions (since at least 11.04) do not have the middle button emulation.
What to do? – Install this cool little program:
sudo aptitude install gpointing-device-settings
Then run it and check the middle button emulation box. 🙂
Advertisements
Thank you very much! I never thought I would miss this feature so much -until it stopped working. 🙂
Using 10.10 and works fine. What I really want to know is how to change the function of the middle mouse button from copy/paste to bringing up the applications menu instead (for instance).
Thank you! This fixed an annoying issue on my old-ish laptop with only two mouse buttons. I’m running Mint Katya, but the same fix applied for this one as well (not that suprising tho, since this is basically an ubuntu with custom theme).
Thank you! I’ve missed being able to middle click, but now I can again.
THANK YOU
Thanks a lot! Was, I’ve been fighting with xorg.conf over the week end with no success. Nice one!
THANK YOU !!!
I have more and more impression that Ubuntu is taking rid of anything very useful for programmers and doing anything possible for basic people ….
Thanks again… next release of Ubuntu will probally just be a wrapper for MSWIN….
seriously, has ubuntu and gnome/unity totally lost it?
Thank you! The middle-button emulation setting is missing from the current version of gnome-control-center and I did not remember where to look next when my freshly updated 11.10 Oneiric Ocelot laptop refused to recognize middle-clicks.
Thank you!!
I’m using a eeePC 901 with built in trackpad and get stuck here – there is no middle mouse button emulation tooltip or anything in device settings. I found out that pressing both mouse buttons works like a charm, but in previous versions I was able to tap with three fingers simultanousely for having that scroll button emulation. Any idea how to bring that back?
Thanks in advance – siyman
it works but after rebooting you have to do it again
You can fix this more permanently across reboots by adding the following to your /etc/X11/xorg.conf:
Section “InputClass”
Identifier “middle button emulation”
MatchIsPointer “on”
Option “Emulate3Buttons” “on”
EndSection
Thanks!
On 11.10 you can simply run this to set it permanently for the current user:
gsettings set org.gnome.settings-daemon.peripherals.mouse middle-button-enabled true
Thanks for this nice little share. I am a developer and middle click for select/paste is a critical requirement for me. Thanks once again!!
Thank you!
I though this would work on Ubuntu Mint 12, but it appears that there is no solution. Dang.
Thank you for posting this. It worked for me on Ubuntu 11.10.
I ran gpointing-device-settings once and it worked right away, and with subsequent boots with Ubuntu 11.04. Great little program.
[…] https://grepmonster.wordpress.com/2011/05/31/ubuntu-11-10-middle-mouse-button-emulation/ […]
Grazie = Thank you 🙂
Unfortunately, it installs but when I run it gives me a segfault.. Strace doesn’t really help, so I’ll try compiling from the source.. Thanks for the direction!
This was just what I needed on Linux Mint 12, after modifying the xorg.conf settings still didn’t get middle click working. Thanks for the tip!
On mint 13 (cinnamon), I had good results with “gsettings set org.gnome.settings-daemon.peripherals.mouse middle-button-enabled true” as suggested by Dan.
OMG! I’m now a happy 12.04 terminal user 😀 Thank you!
Any idea how to get the middle mouse button enabled if you have one? I have run the above procedure and can insert by chording MB1 and MB3 but the system seems to ignore the middle button (clicking scroll wheel on a Logitech MX Laser.) OTOH, the click on a newer Logitech M510 does work to insert text.
This is following an upgrade from Ubuntu 10.04 to Mint 13 (Cinnamon.)
thanks
For those of you who didn’t have success with gpointing-device-settings (I did not) check out xinput, it helped me to restore middle button emulation on my Logitech Marble mouse trackball under precise 12.04 I guess it can also help those with 3-button mice as well
THANK YOU!!! awesome to be able to apt-get this, install, run, and MAGIC! Thanks
Thanks for this suggestion. It worked for me on mint 11 and if I hadn’t seen it, I would have installed another distribution to get this feature back. However, on mint 14, I also got the segfault when using gpointing-device-settings. Fortunately, all I had to do to get middle mouse paste to work with mint 14 cinnamon was settings->general->”Emulate middle click….”. Now THAT’s magic.
thanks brother, appreciate it. This used to be the default, what are these people thinking taking that out?
[…] Found a fix at grepmonster.wordpress.com. […]