From owner-freebsd-usb@FreeBSD.ORG Wed Aug 16 17:23:12 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9082116A4DA for ; Wed, 16 Aug 2006 17:23:12 +0000 (UTC) (envelope-from freebsd4@fadesa.es) Received: from fuego.fadesa.es (fuego.fadesa.es [195.55.55.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DFA643D76 for ; Wed, 16 Aug 2006 17:23:06 +0000 (GMT) (envelope-from freebsd4@fadesa.es) Received: (from root@localhost) by fuego.fadesa.es (8.9.3p2/8.8.8) id TAA23275 for ; Wed, 16 Aug 2006 19:15:37 +0200 Received: from tierra.fadesa.es(195.55.55.7) by fuego.fadesa.es Wed, 16 Aug 06 19:15:07 +0200 Received: from [195.55.55.6] (filemon.fadesa.es [195.55.55.6] (may be forged)) by tierra.fadesa.es (8.9.3p2/8.8.8) with ESMTP id TAA32501 for ; Wed, 16 Aug 2006 19:22:21 +0200 Message-ID: <44E3544C.3030204@fadesa.es> Date: Wed, 16 Aug 2006 19:22:20 +0200 From: =?ISO-8859-1?Q?=22Jos=E9_M=2E_Fandi=F1o=22?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: gl, es, en MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Logged: Logged by tierra.fadesa.es as TAA32501 at Wed Aug 16 19:22:21 2006 Subject: ums(4) and Apple Mighty Mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2006 17:23:12 -0000 Hello, I'm trying to use a Mighty mouse, but it doesn't seems to work very well with FreeBSD 6.1RELEASE when the mouse is attached, this message is printed in the console: ums0: Mitsumi Electric Apple Optical USB Mouse, rev 1.10/1.08, addr 2, iclass 3/1 ums0: 4 buttons and Z dir. the 4 buttons detected are: logical physical -------- --------------------------- button 1 -> right button button 2 -> trackball middle button button 3 -> left button button 4 -> simultaneously pressing right and left side buttons this mouse has a trackball instead of a wheel, so the wheel has horizontal and vertical scrolling. Now is when the problem comes, the Z axis is mapped to the horizontal scrolling, which is very confusing because to scroll a web page you need move horizontally the trackball. it seems as if the ums driver were unable to generate events for the vertical scrolling, this is that I get running moused in debug mode (note the empty packet for up and down events): # /usr/sbin/moused -p /dev/ums0 -d -f moused: proto params: f8 80 00 00 8 00 ff moused: port: /dev/ums0 interface: usb type: sysmouse model: generic . // horizontal event (right scrolling) . moused: received char 0x87 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x1 moused: received char 0x7f moused: assembled full packet (len 8) 87,0,0,0,0,0,1,7f moused: tv: 1155672704 308385 moused: flags:80000000 buttons:00000000 obuttons:00000000 moused: activity : buttons 0x00000000 dx 0 dy 0 dz 1 . // horizontal event (left scrolling) . moused: received char 0x87 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0xff moused: received char 0x0 moused: received char 0x7f moused: assembled full packet (len 8) 87,0,0,0,0,ff,0,7f moused: tv: 1155672705 812598 moused: flags:80000000 buttons:00000000 obuttons:00000000 moused: activity : buttons 0x00000000 dx 0 dy 0 dz -1 . // vertical event (up and down scrolling) . moused: received char 0x87 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x7f moused: assembled full packet (len 8) 87,0,0,0,0,0,0,7f is there any way to get events for the up and down trackball movements?