From owner-freebsd-questions@FreeBSD.ORG Sun Aug 17 06:49:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22E3A37B401 for ; Sun, 17 Aug 2003 06:49:48 -0700 (PDT) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E83C43FA3 for ; Sun, 17 Aug 2003 06:49:47 -0700 (PDT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp54-14.lns1.adl2.internode.on.net [150.101.54.14]) h7HDnifT036455; Sun, 17 Aug 2003 23:19:45 +0930 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: Benjamin Walkenhorst , Joshua Oreman Date: Sun, 17 Aug 2003 23:19:44 +0930 User-Agent: KMail/1.4.3 References: <78953932.20030817033140@mail.ru> <20030816235244.GB753@webserver> <20030817103833.9E55943F3F@mx1.FreeBSD.org> In-Reply-To: <20030817103833.9E55943F3F@mx1.FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200308172319.44576.malcolm.kay@internode.on.net> cc: questions@freebsd.org Subject: Re: mouse with scroll.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2003 13:49:48 -0000 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" > > =09Identifier "Mouse0" > > =09Driver "mouse" > > =09Option=09 "Protocol" "ImPS/2" > > # ^^^^^^^^ you need this > > # ... > > =09Option "Buttons" "3" > > # and this ^^^^^^^^^^^^^ > > =09Option "ZAxisMapping" "4 5" > > # and this ^^^^^^^^^^^^^^^^^^^^ > > EndSection > > --snip-- > > Don't you need to enter a device-file as well? > My XF86Config contains a line > - --- > Option=09"Device"=09=09"/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=20 'moused'. Add to /etc/rc.conf: moused_enable=3D"YES"=20 moused_port=3D"/dev/psm0" moused_type=3D"auto" Then XF86Config one needs to declare the two virtual buttons for scrollin= g in=20 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