Skip to content

Instantly share code, notes, and snippets.

@henriklindgren
Created May 8, 2023 19:02
Show Gist options
  • Save henriklindgren/b5d2168c09d39e306aa3ca42467cf454 to your computer and use it in GitHub Desktop.
Save henriklindgren/b5d2168c09d39e306aa3ca42467cf454 to your computer and use it in GitHub Desktop.
Linux Mint, Mousetrapper Advance 2.0 libinput xorg config, legacy
# /usr/share/X11/xorg.conf.d/50-mousetrapper.conf
#
# using "libinput debug-events --verbose", seems the scroll wheel report in 15 degree increments.
# Vertical scroll under-reports, horizontal works as promised. Not sure if hardware/software issue/choice in mousetrapper or just libinput issue.
Section "InputClass"
Identifier "MouseTrapper"
MatchUSBID "0d24:0010"
# Seems to be no need to match pointer even though it registers on keyboard as well
# MatchIsPointer "true"
Driver "libinput"
Option "NaturalScrolling" "false"
Option "LeftHanded" "false"
Option "TransformationMatrix" "1 0 0 0 1 0 0 0 3"
# not doing anything in libinput 1.15.5 for this mouse
# Option "RotationAngle" "15"
# Option "ScrollPixelDistance" "10"
# Option "HighResolutionWheelScrolling" "false"
EndSection
@em-eu
Copy link

em-eu commented Feb 1, 2024

Hello @SpangeJ

Thanks for sharing your setup. Did you change anything else in the meantime?

I added "Scroll Method Enabled" 0, 0, 1 and "Button Scrolling Button" 3 which is a huge improvement to me because that way I can scroll using right click (hold) and the touchpad.

@SpangeJ
Copy link

SpangeJ commented Feb 16, 2024

HI, @em-eu

I have two MouseTrappers, one at home, and one at the office.
The one at home is used with my personal, Windows, computer, but also when I have home-office with my Linux computer.
And they behave the same, they have the same scroll speed.

So I brought my office MouseTrapper home, connected it to my Windows machine, and it was configured automatically, and then it too behaved similarly to the other MT. However; today I brought it back to the office and the behavior is still as before with my Linux i.e. a slow scroll speed.

So maybe I will switch the two MTs around because I do not understand why the two MTs behave differently at my Linux machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment