Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I was using the mouse copy-paste extensively, until recently, when some OpenSuSe upgrade reconfigured this on all my machines. Now the scrollbuton is the one to paste (which I hate, since it's hard to click without scrolling, and I also click it sometimes accidentally).

Where is this configured? Ideally I would love something that I can add to session start (for both Gnome and KDE).

share|improve this question
    
It would be helpful if you could describe your desired behavior. If you don't want to use the scrollbutton to paste, what would you rather use? –  Faheem Mitha Mar 23 '11 at 18:10
    
@Faheem Uhm, care to read the title? –  Let_Me_Be Mar 23 '11 at 18:49
    
Oops. –  Faheem Mitha Mar 23 '11 at 18:52

2 Answers 2

up vote 1 down vote accepted

It is configured in /etc/X11/xorg.conf.

You'll see a section that looks like

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
EndSection

Here is a random vaguely relevant link from SU.

http://superuser.com/questions/258649/multi-button-mouse-on-x11-how-can-i-configure-several-buttons-to-act-as-the-midd

share|improve this answer
    
Is there any way this can be configured without modifying xorg.conf? This is also an issue on machines where I don't have root. –  Let_Me_Be Mar 23 '11 at 18:50
    
@Let_Me_Be: There might be. I'm not aware of one. –  Faheem Mitha Mar 23 '11 at 18:55

You can set this property with xinput. Run xinput list to see the list of connected input devices. Note the exact name or the number of the device corresponding to your mouse (not the “Virtual core pointer”, but something like “Logitech USB-PS/2 Mouse M-BA47”). The name depends on your mouse model; I think the number is assigned dynamically, so you might need to do a bit of parsing to cope with multiple machines.

Then, run

xinput set-prop "$device_name_or_number" "Evdev Middle Button Emulation" 1

Run xinput list-props "$device_name_or_number" to see a list of available properties, the exact set is different on different systems.

While you're at it, you might want to tune other settings (run xinput list-props "$device_name_or_number" to see what settings exist). In particular, by default, I think the emulated middle button will be the same as the mouse wheel press, but that should be fixable by reassigning the wheel button (Evdev Wheel Emulation Button).

See also Configuring Input Devices on the Ubuntu wiki.

share|improve this answer
    
This answer is more correct because xorg.conf is missing on many modern systems (and has been missing for quite a while). –  Mischa Arefiev Oct 24 '12 at 11:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.