Logitech Marble Mouse - pierregermain/MyTux GitHub Wiki

Logitech Marble Trackball

Activate Scroll functionality =)

For Arch Linux

sudo vi /etc/X11/xorg.conf.d/10-evdev.conf

For Linux Mint

sudo vi /usr/share/X11/xorg.conf.d/50-marblemouse.conf

The Code

The following activates the scroll with the little right button

Section "InputClass"
    Identifier      "Marble Mouse"
    MatchProduct    "Logitech USB Trackball"
    MatchIsPointer  "on"
    MatchDevicePath "/dev/input/event*"
    Driver          "evdev"
    Option          "SendCoreEvents" "true"

    #  Physical buttons come from the mouse as:
    #     Big:   1 3
    #     Small: 8 9
    #
    # This makes left small button (8) into the middle, and puts
    #  scrolling on the right small button (9).
    #
    # Scroll
    Option "Buttons"            "9"
    # Middle Button
    Option "ButtonMapping"      "1 2 3 4 5 6 7 9 8"
    Option "Emulate3Buttons"    "true"
    # Scroll
    Option "EmulateWheel"       "true"
    Option "EmulateWheelButton" "9"
    #Horizontal Scrolling
    #Option "YAxisMapping"       "4 5"
    #Option "XAxisMapping"       "6 7"
EndSection



The following activates the scroll with the big right button

Section "InputClass"
    Identifier      "Marble Mouse"
    MatchProduct    "Logitech USB Trackball"
    MatchIsPointer  "on"
    MatchDevicePath "/dev/input/event*"
    Driver          "evdev"
    Option          "SendCoreEvents" "true"

    #  Physical buttons come from the mouse as:
    #     Big:   1 3
    #     Small: 8 9
    #
    # This makes left small button (8) into the middle, and puts
    #  scrolling on the right small button (9).
    #
    # Scroll
    Option "Buttons"            "3"
    # Middle Button
    Option "ButtonMapping"      "1 2 3 4 5 6 7 9 8"
    Option "Emulate3Buttons"    "true"
    # Scroll
    Option "EmulateWheel"       "true"
    Option "EmulateWheelButton" "3"
    #Horizontal Scrolling
    #Option "YAxisMapping"       "4 5"
    #Option "XAxisMapping"       "6 7"
EndSection