From owner-freebsd-questions@FreeBSD.ORG Sun Feb 27 21:33:25 2005 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 9C99716A4CE for ; Sun, 27 Feb 2005 21:33:25 +0000 (GMT) Received: from mail.vslash.com (gambetta-2-82-67-185-6.fbx.proxad.net [82.67.185.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEE1843D2D for ; Sun, 27 Feb 2005 21:33:24 +0000 (GMT) (envelope-from valery@vslash.com) Received: from [192.168.0.2] (hal.intranet.vslash.com [192.168.0.2]) by mail.vslash.com (Postfix) with ESMTP id EA6037E831 for ; Sun, 27 Feb 2005 07:35:23 +0100 (CET) Message-ID: <42216A2B.7090407@vslash.com> Date: Sun, 27 Feb 2005 07:35:23 +0100 From: Valery User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20050224 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: HOWTO : Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3 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, 27 Feb 2005 21:33:25 -0000 * Setting Up a mouse + wheel on a traditional ps/2 port in FBSD 5.3 ... and others ... * 1. Must know ps2 bus : the ps/2 bus is mapped as /dev/psm0 /dev/psm0 : support only 'ps/2' protocol ( moused(8) ) moused : map /dev/psm0 as a virtual port to /dev/sysmouse (ie like /dev/ttyv0 is a virtual tty) X : work with the /dev/sysmouse virtual device as input device. xorg.conf : When setting up "Protocol" to "Auto" the protocol choosed by X is ps/2 which don't work for me (i don't know how to use a wheel with it without setting up parms for each apps) xorg.conf : setting up "Protocol" to "sysmouse" is the best way i find to use my wheel. /sysmouse/ work "natively" with xterm, Mozilla, and so on. No needs to change anything. 2. Parameters /etc/rc.conf : moused -p /dev/psm0 -t ps/2 /etc/X11/xorg.conf : Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "sysmouse" Option "Device" "/dev/sysmouse" Option "Buttons" "5" Option "ZAxisMapping" "X" EndSection 3. Some tips Testing : 1 - kill the moused daemon 2 - set mouse on console : vidcontrol -m on 3 - launch moused on foreground to see if it's work : moused -f -p /dev/psm0 -t ps/2 4 - press ^C to end 5 - if result are ok, launch moused with your previous parms 6 - set up rc.conf && xorg.conf as above. 7 - try to use a lightweight wm like IceWM or twm to test, it respect well X parms. 4. Comments i don't know why, but logoff/login or reboot your computer in order to get this stuff working properly : first time i set this parms, they don't work. Because i was almost sure they must work, i rebooted my computer and they work fine. Perhaps some guy from BSD could explain ... My X.log whith the 'sysmouse' protocol : (**) Option "Protocol" "sysmouse" (**) Mouse0: Device: "/dev/sysmouse" (**) Mouse0: Protocol: "sysmouse" (**) Option "CorePointer" (**) Mouse0: Core Pointer (**) Option "Device" "/dev/sysmouse" (**) Option "BaudRate" "1200" (**) Option "StopBits" "2" (**) Option "DataBits" "8" (**) Option "Parity" "None" (**) Option "Vmin" "1" (**) Option "Vtime" "0" (**) Option "FlowControl" "None" (**) Option "Buttons" "5" (==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50 (**) Option "ZAxisMapping" "4 5" (**) Mouse0: ZAxisMapping: buttons 4 and 5 (**) Mouse0: Buttons: 5 (**) Mouse0: BaudRate: 1200 // ... // (II) 3rd Button detected: disabling emulate3Button 5. Probed apps xterm Mozilla gVim 6. Ref. sysmouse(4), moused(8) /usr/X11R6/lib/X11/doc/README.mouse ... ... no information about sysmouse protocol http://colas.nahaboo.net/mouse-wheel-scroll/#FAQ yours v/