How do you turn off left mouse+right mouse= middle mouse?

Asked by Agama

I've tried to put Option "Emulate3Buttons" "false" in my xorg.conf and nothing happened. I'm trying to turn off the right mouse +left mouse= middle mouse/scroll wheel button.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Agama
Solved:
Last query:
Last reply:
Revision history for this message
Wyatt Smith (wyatt-smith) said :
#1

I am working on this problem myself

This used to be configurable through xorg.conf, but that has been deprecated in intrepid. It must be configured through HAL now, and I haven´t quite figured out how to do this.

I have found a temporary workaround by issuing a command at startup, this is the form of this command

xinput set-int-prop <device_name> <property> <format> <value>

To try with workaround, first determine what the id number of your mouse

xinput list

For me, I get id=4, so I use this command, where 4 is the device_name, "Middle Button Emulation" is the property, 8 is the format parameter, and 0 is the value. So the command that works for me is:

xinput set-int-prop 4 "Middle Button Emulation" 8 0

Hopefully I will find a more elegant and permanent solution.

Revision history for this message
Wyatt Smith (wyatt-smith) said :
#2

It appears Rhubarb was figured out how to properly configure HAL to make this fix permanent. I have linked your question to the following bug report

https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/272334

Please try Rhubarb´s solution.

Thank you

Revision history for this message
Wyatt Smith (wyatt-smith) said :
#3

Open a terminal from Applications-> Accessories-> Terminal and type

gksu gedit /etc/hal/fdi/policy/mouse.fdi

Then paste the following in there:

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
 <device>
  <match key="info.capabilities" contains="input.mouse">
   <merge key="input.x11_options.Emulate3Buttons" type="string">false</merge>
  </match>
 </device>
</deviceinfo>

Save the file and exit.

Now you need to unplug your mouse, then plug it back in again / restart your computer (restarting X I think may also work).

Revision history for this message
Agama (agamalama) said :
#4

Ok this works, thanks!

Revision history for this message
jastastruct (justinjoseph24) said :
#5

I found this while looking to fix my Warcraft / Wow issue, which was while holding down both mouse buttons the middle mouse was also being triggered--it was seriously affecting my pvp. Now my transition to Linux is complete. Thanks for taking the time to ask the question, and for answering it. linux user community is great.