Mouse: Left click + right click = middle click

Hey guys, I noticed when I press both left and right mouse button it gets interpreted as middle click. Any chance I can disable this and where?

And another question since I created this thread: it seems that Linux resets a “xset m 0 5” command after every reboot. How can I make this permanent?

Hope you can help me with these questions.

Thank you

YAST / Hardware / Mouse Model -> Activate 3-Button Emulation enables / disables this functionality.

Requires an X restart.

Thank you for your quick reply.

Both enabled and disabled a simultaneous left/right-click forces a middle click. I assume anyway that if it’s unchecked it should be disabled and that’s what it already was - yet I tried both settings.

Besides I’m not sure how to restart X - if its sax2 -r then I did it. I also did a restart (I think that should restart X too) which didn’t help.

The mouse is a Razer DeathAdder btw if that is of any importance.

Regards

Was it disabled when you first started the program?

Restarting X simply means “logging out and in”.

Yes, it was disabled.

Thanks for the hint how a restart is done :slight_smile:

Edit: After another activate/deactivate it worked. Thanks!

You happen to know the solution to my 2nd problem as well? I prefer xset m 0 5 - but that doesn’t get stored. After a reboot I’ve to do it again.

A ‘quick’ hackish way would be to make a file in /home/user/.kde/Autostart/ the name of the file can be anything, the contents would be:


#!/bin/sh
xset m 0 5 

You’ll need to make it executable so chmod 755 filename would take care of that.

It would execute it everytime you login to KDE3, for KDE4 it would be /home/user/.kde4/Autostart/

I’m sure there’s a nicer way to do it but that’s the first thing that came to mind.

Absolutely sufficient for my needs. Thank you once more.

Sorry to bother you guys but the 3 button emulation is still active and I can’t work it out to disable it. It worked once I reckon but after a reboot it was enabled again.

I was wondering if I maybe could change the setting manually in a config (XF86config contains some mouse stuff I figured out). Unfortunately I dont have a 2nd mouse to test whether it’s because of my mouse or a software problem.

Long story short:

  • “Activate 3-Button Emulation” is UNchecked
  • When pressing Left and Right click together on the test frame it highlights the middle mouse button.

Mouse: Razer DeathAdder, USB

Could you post your entire /etc/X11/xorg.conf to a pastebin site - such as general pastebin - simplified internet collaboration or just copy paste it here.

There it is:

general pastebin - xorg.conf - post number 1086419

Uhm… I just looked at that file a bit myself:

Option “Buttons” “10”

that 10 is meant to be in binary right? (never seen a mouse with 10 buttons really). So if I changed that to 11 that could be helping?

Edit: Ah well, that didn’t do the trick. So I still need help :slight_smile:

No it’s the weird way Xorg handles the mouse.

Left, Middle (Wheel up, down, left, right) right, thumb, another thumb etc.

Try adding:
Option “Emulate3Buttons” “0”

Inside the Device where it says mouse etc. before the EndSection.

If that doesn’t do it, I’m stumped - then we’ll need some Xorg guru :slight_smile:

OK, that seems to work now. I did a logout/login and it is disabled. I think you fixed it touches wood - I will shutdown now, restart and if it is still working then I owe you something (actually you helped a lot already and I already owe you) :slight_smile:

Still working! Thank you!