FreeBSD 6.1 + XOrg 6.9.0 + mouse wheel

I hope Google will index this one properly so you won’t get annoyed after an upgrade as I did :)

You may have experienced 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 why. So there’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 :)

Leave a Reply