From owner-freebsd-usb@FreeBSD.ORG Sat Aug 21 17:25:11 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 793C910656F1 for ; Sat, 21 Aug 2010 17:25:11 +0000 (UTC) (envelope-from chungyeol.lee@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 485118FC1F for ; Sat, 21 Aug 2010 17:25:11 +0000 (UTC) Received: by pvg4 with SMTP id 4so1878219pvg.13 for ; Sat, 21 Aug 2010 10:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:organazation:user-agent; bh=KsGXOcP/h1USr+M0Wvqbg9EoS9LL3euOpFUxdCfO3iY=; b=dR9ftzD0ctxrl4hOB3/FIoMF4fDTM2+pB98A34y6s0pUZwMYGBme6j2xLnPX1DZIIw pE5Y1INW20AxprZuh+5fbXlZgcJ4lDsD56w2mWJTyIiRdpa79ZNA39Yg5h2flYSk1za7 YmygLNfVAbirLgMTNVK0dJQa4CyXhtbYBUV5Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:organazation :user-agent; b=I970qrwEImiUpF+S8/r/nVEwj/KnUVDwulR3N328a/iBp4Hd/GkNxqjPRaO04YnPGl Yzl/5R3lMCkINehE3FkGdioDKk0X2/5fraLCeuHrYg7wyZk10/WECCGXlgSNcrdj/3jb iBrCKsziuQOUxHt7Ous5yNXPh7M7L3hjXo4R8= Received: by 10.114.75.17 with SMTP id x17mr3291624waa.86.1282411510794; Sat, 21 Aug 2010 10:25:10 -0700 (PDT) Received: from genie.honey.home ([124.57.9.45]) by mx.google.com with ESMTPS id d39sm7726625wam.4.2010.08.21.10.25.08 (version=SSLv3 cipher=RC4-MD5); Sat, 21 Aug 2010 10:25:10 -0700 (PDT) Date: Sun, 22 Aug 2010 02:25:00 +0900 From: "Lee, Chung-Yeol" To: Hans Petter Selasky Message-ID: <20100821172500.GA3403@genie.honey.home> References: <20100821082306.GA2204@genie.honey.home> <201008211716.31156.hselasky@c2i.net> <20100821160256.GA3058@genie.honey.home> <201008211818.45479.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201008211818.45479.hselasky@c2i.net> Organazation: KAIST User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-usb@freebsd.org Subject: Re: Use extra buttons of Kensington Slimblade Trackball X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Lee, Chung-Yeol" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Aug 2010 17:25:11 -0000 On Sat, Aug 21, 2010 at 06:18:45PM +0200, Hans Petter Selasky wrote: > On Saturday 21 August 2010 18:02:56 Lee, Chung-Yeol wrote: > > On Sat, Aug 21, 2010 at 05:16:31PM +0200, Hans Petter Selasky wrote: > > > On Saturday 21 August 2010 10:23:06 Lee, Chung-Yeol wrote: > > > > Hi, > > > > > > > > While I'm searching how to use the extra buttons in Kensington > > > > Slimblade > > > > > > > > Trackball, I made a patch for myself based on the linux driver. > > > > > > > > I confirmed it works as intended. However, I have no experience with > > > > the FreeBSD kernel and I'm not sure that I modified it in a correct > > > > way. -- especially, I don't know should I use usb_quirks? > > > > > > > > Can somebody check the attached diff file so that I can send problem > > > > > > > > report? > > > > > > > > Thanks. > > > > > > Hi, > > > > > > Can you re-send your patch to me. The listware stripped it off. I think > > > there is also a similar patch in 9-current. Please check the version > > > history of: > > > > > > /sys/dev/usb/input/ums.c > > > > > > --HPS > > > > diff file is against 8-STABLE. > > I just looked ums.c in HEAD from Web CVS repository and can't find similar > > code. > > > > C.-Y. Lee > > Hi, > > Please check and verify this patch: > > http://p4web.freebsd.org/@@182688?ac=10 > > Also, could you dump the device, config and HID descriptors of your mouse. See > man usbconfig on how to do that. > > --HPS It seems alright. Here's dump.. # usbconfig -u 0 -a 3 dump_device_desc ugen0.3: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x047d idProduct = 0x2041 bcdDevice = 0x0105 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 # usbconfig -u 0 -a 3 dump_curr_config_desc ugen0.3: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0022 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0002 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x4b, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0005 bInterval = 0x000a bRefresh = 0x0000 bSynchAddress = 0x0000 # usbconfig -u 0 -a 3 do_request 0x81 0x06 0x2200 0 0x100 REQUEST = <0x05 0x01 0x09 0x02 0xa1 0x01 0x09 0x01 0xa1 0x00 0x05 0x09 0x19 0x01 0x29 0x02 0x15 0x00 0x25 0x01 0x95 0x02 0x75 0x01 0x81 0x02 0x95 0x01 0x75 0x06 0x81 0x03 0x05 0x01 0x09 0x30 0x09 0x31 0x09 0x38 0x15 0x81 0x25 0x7f 0x75 0x08 0x95 0x03 0x81 0x06 0x06 0x00 0xff 0x19 0x01 0x29 0x02 0x15 0x00 0x25 0x01 0x95 0x02 0x75 0x01 0x81 0x02 0x95 0x01 0x75 0x06 0x81 0x03 0xc0 0xc0><)%uu018%u)%uu> Thanks. C.-Y. Lee.