2013-10-19

WOP-35 two wheels mouse under Linux

If you have WOP-35 two wheels mouse you might this a bit interesting. I had this time very long time ago before "evdev" becom a default driver for any input device. It worked as a charm for me with "mouse" driver. But since that big "xorg.conf file blow" I've lost my second wheel. Moreover it both wheels scrols almost identically but both of them sometimes skip when I scroll.

I tried evtest program and found that it reports second wheel in a same event but with different value +/- 2 rather than first one +/- 1. I thought that is the end of second wheel, but... Behold /etc/X11/xorg.conf.d/24-input-mouse-wop35.conf I have:

# Looks like evdev doesn't report second wheel (ignore it)
Section "InputClass"
    Identifier      "Disable evdev-driven ImExPS/2 mouse"
    MatchProduct    "ImExPS/2 Generic Explorer Mouse"
    MatchDriver     "evdev"
    Option          "Ignore" "true"
EndSection
    
# Configure "mouse" driven WOP-35
Section "InputClass"
    Identifier      "ImExPS/2 mouse"
    MatchDevicePath "/dev/input/mouse*"
    MatchProduct    "ImExPS/2 Generic Explorer Mouse"
    Driver          "mouse"
    Option          "Protocol"  "ExplorerPS/2"
    Option          "Emulate3Buttons" "no"
    Option          "ZAxisMapping" "4 5 6 7"
    Option          "Buttons" "9"
    Option          "CorePointer"
EndSection

No comments:

Post a Comment