Skip to content

Instantly share code, notes, and snippets.

@veggiemonk
Last active August 2, 2019 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veggiemonk/2db5a7a5c08b28d3cf8046d9c7c44c7b to your computer and use it in GitHub Desktop.
Save veggiemonk/2db5a7a5c08b28d3cf8046d9c7c44c7b to your computer and use it in GitHub Desktop.
Ubuntu X11 xorg config for marble mouse logitech
## SOURCE: https://help.ubuntu.com/community/Logitech_Marblemouse_USB#Example_Configuration_.231:_add_wheel_emulation_feature
## SOURCE: https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse#Sample_configuration
Section "InputClass"
Identifier "Marble Mouse"
MatchProduct "Logitech USB Trackball"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
# Physical button #s: A b D - - - - B C
# Option "ButtonMapping" "1 8 3 4 5 6 7 2 2" right-hand placement
# Option "ButtonMapping" "3 8 1 4 5 6 7 2 2" left-hand placement
# b = A & D
# Option "ButtonMapping" "1 8 3 4 5 6 7 2 2"
# EmulateWheel: Use Marble Mouse trackball as mouse wheel
# Factory Default: 8; Use 9 for right side small button
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "3"
# EmulateWheelInertia: How far (in pixels) the pointer must move to
# generate button press/release events in wheel emulation mode.
# Factory Default: 50
Option "EmulateWheelInertia" "10"
# Axis Mapping: Enable vertical [ZAxis] and horizontal [XAxis] scrolling
Option "ZAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
# Emulate3Buttons: Required to interpret simultaneous press of two large
# buttons, A & D, as a seperate command, b.
# Factory Default: true
Option "Emulate3Buttons" "true"
EndSection
@veggiemonk
Copy link
Author

Put this file in /usr/share/X11/xorg.conf.d/

@tjkupp
Copy link

tjkupp commented Aug 2, 2019

Does anybody know a reason why this would not work when running in VirtualBox?

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