I love my Logitech Marble Mouse. So much in fact that I have several spares in case my current one dies. It’s always been a little niggly to get to work with Linux though. Every few releases something changes and the configuration I had stops working 🙁
Ubuntu 18.04 and Mint 19 are just such releases. It took me some time to discover that my old configuration (from Mint 17 via Mint 18) didn’t work because it used the “evdev” driver which appears to have been dropped in favour of “libinput”. Not only that, the change of driver means the configuration directives have changed too, so the commands for scroll wheel emulation and so on no longer worked.
After grubbing about for configuration details I finally came up with the following to make mouse work once again. I created this in
Section "InputClass" Identifier "Marble Mouse" MatchProduct "Logitech USB Trackball" MatchIsPointer "on" MatchDevicePath "/dev/input/event*" Driver "libinput" Option "ButtonMapping" "1 9 3 4 5 6 7 8 2" Option "ScrollButton" "8" Option "ScrollMethod" "button" Option "MiddleEmulation" "on" EndSection
This makes the large left and right mouse buttons work as “normal” left and right mouse buttons. The small left hand button works in combination with the ball to provide scrolling and the small right hand button pastes.
Now I wonder how long it is before it will be broken again?