Wednesday, July 30, 2008

Howto configure a 3M mouse with scrolling in Linux

Add this to your xorg.conf file.

Section "InputDevice"
# Configuration for 3M mouse, with scrolling
    Identifier "Mouse2"
    Driver "mouse"
    Option "Device" "/dev/input/mouse2"
    Option "EmulateWheel"        "on"
    Option "EmulateWheelButton"  "2"
    Option "EmulateWheelInertia" "20"
    Option "YAxisMapping"        "4 5"
    Option "XAxisMapping"        "6 7"
    Option "EmulateWheelTimeout" "150"

Note, make sure other mouse section refers to your other mouse, not the general mouse. This can be tested by doing cat /dev/input/mouse1, mouse2, etc and moving a mouse, to see which mouse is which.

No comments: