Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Aug 2003 23:19:44 +0930
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        Benjamin Walkenhorst <krylon@gmx.net>, Joshua Oreman <oremanj@get-linux.org>
Cc:        questions@freebsd.org
Subject:   Re: mouse with scroll....
Message-ID:  <200308172319.44576.malcolm.kay@internode.on.net>
In-Reply-To: <20030817103833.9E55943F3F@mx1.FreeBSD.org>
References:  <78953932.20030817033140@mail.ru> <20030816235244.GB753@webserver> <20030817103833.9E55943F3F@mx1.FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308172319.44576.malcolm.kay>