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?

Prototype700
  • 1,120

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,105