mouse with scroll....

Malcolm Kay malcolm.kay at internode.on.net
Sun Aug 17 06:49:48 PDT 2003


On Sun, 17 Aug 2003 20:07, Benjamin Walkenhorst wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> On Sonntag, 17. August 2003 01:52 Joshua Oreman wrote:
> > On Sun, Aug 17, 2003 at 03:31:40AM +0400 or thereabouts, Denis wrote:
> > > Hi All!!!
> > >
> > >   Does anybody know how in freebsd use mouse with 3 button and one
> > >   scroll?
> >
> > --snip /etc/XF86Config (or /etc/X11/XF86Config)--
> > Section "InputDevice"
> > 	Identifier  "Mouse0"
> > 	Driver      "mouse"
> > 	Option	    "Protocol" "ImPS/2"
> > #                              ^^^^^^^^ you need this
> > # ...
> > 	Option      "Buttons" "3"
> > # and this          ^^^^^^^^^^^^^
> > 	Option      "ZAxisMapping" "4 5"
> > # and this          ^^^^^^^^^^^^^^^^^^^^
> > EndSection
> > --snip--
>
> Don't you need to enter a device-file as well?
> My XF86Config contains a line
> - ---
> Option	"Device"		"/dev/sysmouse"
> - ---
> To get the mouse wheel working, I have to change that line, too, don't I?
> What do I have to put there? "/dev/psm0"?
>

I believe the most reliable method for ps/2 mouse in FreeBSD is to run 
'moused'. Add to /etc/rc.conf:
  moused_enable="YES" 
  moused_port="/dev/psm0"
  moused_type="auto"
Then XF86Config one needs to declare the two virtual buttons for scrolling in 
the button count:
   Options "buttons" "5"
   Options "ZAxisMapping" "4 5"
   Options "Device" "/dev/sysmouse"
   Options "Protocol" "auto"

This way the mouse works in console mode via 'moused' and X reads mouse
via pseudo device /dev/sysmouse supported by 'moused'.

Malcolm


More information about the freebsd-questions mailing list