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
  • Yes, thank you. I actually just found a solution myself in the official Wiki: 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. – clearkimura Apr 18 '17 at 14:52
5
+50

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'

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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