I've got a Logitech Marble Mouse trackball with four buttons:
Using the instructions here, I've got 50-marblemouse.conf
(xorg.conf) set up so that the holding the "back" button lets me scroll:
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "8"
EndSection
However, sometimes "hold" registers as a click on "back", which is super annoying when I'm browsing a web page. Is there any way I can use the button to scroll but disable single click?
The usual workaround seems to be to use the "forward" button for scrolling, since clicks on that are mostly harmless, but I find having to click that with my ring finger much more awkward than thumbing the back button.
Best Answer
I think the option you're looking for is ButtonMapping. I had a similar annoying feature with my mouse ( https://www.kensington.com/en/no/4493/k72327eu/slimblade-trackball ), so figured this out a while ago.
The "EmulateWheelButton" option still should work even if you disable the button or reassign the mapping...
Now, I've only tested this with xinput on evdev. It's a lot quicker to try things out with xinput and then you could just add a script to your "Startup Applications" instead of having to modify /etc/X11/ and restart X over and over.
So this should be all you need in xorg.d/mouse.conf (the commented out lines are what should be needed if you don't want to use a login script to do this per user), though you might not need this at all if you use xinput:
Here's what I did to figure out my solution (replace my device with your device in the following commands obviously):
Show devices:
See what properties are supported for that device:
Now let's give it a shot:
Now my top right button only works as auto-scroll instead of the infuriating back behavior!