FreeBSD 6.1 + XOrg 6.9.0 + mouse wheel

You may have noticed that after upgrade to XOrg 6.9.0 your USB mouse wheel doesn’t work anymore. Why’s that? Well, the XOrg guys changed the mouse button mapping a little bit, don’t know how, don't know why. Anyway, here’s my workaround:

/etc/rc.conf (to start moused daemon):

moused_enable=”YES”
moused_type=”auto”
moused_flags=”-z 4″

/etc/X11/xorg.conf:

Section “InputDevice”
Identifier “Mouse1″
Driver “mouse”
Option “Protocol” “Auto”
Option “Device” “/dev/sysmouse”
Option “Buttons” “5″
Option “ZAxisMapping” “4 5″
Option “Emulate3Buttons” “false”
EndSection

~/.xinitrc (The Workaround):

xmodmap -e “pointer = 1 2 3 8 9 6 7 4 5 10 11″
exec your_favourite_window_manager

Okay, there must be an easier way to get your mouse wheel working again, but this is what worked for me after two hours of googling :)


* Comment from Alain TAUCH:

you can simply:

Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "mouse"
        Option      "Protocol" "Auto"
        Option      "Device" "/dev/sysmouse"
        Option      "Buttons" "5"
        Option      "ZAxisMapping" "8 9"
        Option      "ButtonMapping" "1 2 3 4 5 6 7 8 9"
EndSection
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information
 
Jei nenurodyta kitaip, šio wiki turinys ginamas tokia licencija: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki