Mouse Wheel Support for X in FreeBSD

Edit /etc/usbd.conf and change this section
device "Mouse"
        devname "ums[0-9]+"
        attach "/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid; /usr/sbin/vidcontrol -m on"
so it passes the '-z4' flag to moused, ie
device "Mouse"
        devname "ums[0-9]+"
        attach "/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid -z4; /usr/sbin/vidcontrol -m on"
If you are using a PS/2 or serial wheel mouse, edit /etc/rc.conf and make sure you have a line like 'moused_flags="-z4"'.

Edit your XF86Config file and make your mouse section looks like

Section "InputDevice"
  Identifier  "Mouse0"
  Driver      "mouse"
  Option      "Device" "/dev/sysmouse"
  Option      "Protocol" "auto"
  Option      "Buttons" "6"
EndSection
You'll have to restart moused (if USB just unplug and replug, for PS/2 either reboot, or kill moused then run 'moused -p /dev/psm0 -z4'), and restart X.
Daniel O'Connor
Last modified: Fri Sep 5 13:45:07 CST 2003 1