5

The wheel-button on my mouse appears to be malfunctioning, but the mouse itself, including the wheel, is still fine.

Is there any possibility to assign the "middle-click"-function to something like both traditional buttons being pressed at the same time?

  • 1
    Duplicate of https://askubuntu.com/questions/53856/third-mouse-button-emulation – ubfan1 Apr 16 '17 at 17:38
  • Yes, thank you. I actually just found a solution myself in the official Wiki: https://wiki.ubuntu.com/X/Quirks#A2-button_Mice (Typical case of search before you ask..) Well, since the bounty on this question is gone now, I'll just wait for a lucky responder. ;) – Prototype700 Apr 16 '17 at 17:44
  • While the linked question mentioned one of known solutions, this question isn't a duplicate of that. For a generic question that could cover all releases and flavours of Ubuntu, I'd rather upvote this +1. –  Apr 18 '17 at 14:52

1 Answers1

5

It appears a bug existed but was fixed. Check this duplicate issue.

You can also use the resource posted in the Ubuntu Wiki.

TL;DR

If you have a 2-button mouse and need middle-mouse emulation, here are the steps to follow to request adding a quirk for your hardware:

  1. Create a file named /usr/share/X11/xorg.conf.d/middle-mouse-button.conf with the following contents:
     Section "InputClass"
        Identifier "middle button emulation class"
        MatchIsPointer "on"
        Option "Emulate3Buttons" "on"
     EndSection
  1. If you use GNOME 3 or Unity, an additional step is needed. Execute the following command
     gsettings set org.gnome.settings-daemon.peripherals.mouse middle-button-enabled true

Otherwise, GNOME 3's settings will override X's.

  1. Restart X, and verify this works.

  2. File a bug with the title "Quirk for 2-button mouse ", like this:

     ubuntu-bug xserver-xorg-input-evdev
  1. Attach to the bug report the output of 'sudo lsinput' and 'sudo dmidecode'
jarsever
  • 1,095
  • 10
  • 13