From owner-freebsd-usb@FreeBSD.ORG Wed Feb 6 20:20:21 2008 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 9A9B616A421 for ; Wed, 6 Feb 2008 20:20:21 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.189]) by mx1.freebsd.org (Postfix) with ESMTP id 9B44413C455 for ; Wed, 6 Feb 2008 20:20:19 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so2266848mue.6 for ; Wed, 06 Feb 2008 12:20:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=tMVQCnpcH3HkFaG3vYQIZh+a3y/6lXoTyoSowi9u2yI=; b=kQe7gqEsZfvOBVuMs6eKypY2ba+towp8r5pIQyLkUcJojNq2dUDp3p0Y9KEyR6svp2ecd1uc5HzzwNqOuROMwlMtiP+nG5pBwzVZTOBK1sQ4InDy0nhuF2l36/GYFgCcsy2ppfk0b49LBXYFn3x1RVtS/1/h7gJN48WFwOscy2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Z63Buy1pZcEiGPR9515QpdDSWpwLYM6SwwcWwJmYcTh1qKapGRXvejp1vlr4e/bDznrilvaCEAAoR9qMB4pZWdrTluvbg2rc6xFh4OOVe4LUmXYitvhd1KqLYQoFE/yEcbG3yiSf3q786uZhVjvhsCygdH3RnaJ2oOoMUpXMAjw= Received: by 10.82.145.7 with SMTP id s7mr18763432bud.7.1202327470575; Wed, 06 Feb 2008 11:51:10 -0800 (PST) Received: by 10.82.160.5 with HTTP; Wed, 6 Feb 2008 11:51:10 -0800 (PST) Message-ID: <1d3ed48c0802061151w2d679408p210b7819253afc1d@mail.gmail.com> Date: Wed, 6 Feb 2008 11:51:10 -0800 From: "Kevin Downey" To: "Markus Brueffer" In-Reply-To: <200802041639.24771.markus@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1d3ed48c0801301147h77e5056h23eb73d0c4ddd1be@mail.gmail.com> <200802041639.24771.markus@FreeBSD.org> Cc: freebsd-usb@freebsd.org Subject: Re: Logitech xbox gamepad as a uhid 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, 06 Feb 2008 20:20:21 -0000 On Feb 4, 2008 7:39 AM, Markus Brueffer wrote: > Am Mittwoch, 30. Januar 2008 20:47:48 schrieb Kevin Downey: > > > I have a wireless xbox (not xbox 360) gamepad that I would like to use > > as a remote control for media stuff in X. I figure a first step in > > that direction is to get it recognized as a uhid device. > > > > I find it hard to believe that I am the first person to do this on a > > freebsd box, yet googling the only hits I get are about xbox360 > > gamepad support. > > > > > > uhub7: > rev 1.10/1.03, addr 2> on uhub1 > > uhub7: 3 ports with 2 removable, bus powered > > id->bInterfaceClass 0x58 > > ugen0: on > > uhub7 > > ... > > My idea was maybe I could just add a case for this controller. > > Does anyone have any pointers(har har), besides "read the source" for > > how to get this working? > > A first start would be to get it recognized by uhid(4). Please provide a > descriptor dump of the device using sysutils/udesc_dump from ports. > > Markus > pasted and incase gmail mangles it, http://thelastcitadel.com/lab/udesc_dump_logitech_wireless_xbox.txt Standard Device Descriptor: bLength 18 bDescriptorType 01 bcdUSB 0110 bDeviceClass 00 bDeviceSubClass 00 bDeviceProtocol 00 bMaxPacketSize 8 idVendor 046d idProduct ca84 bcdDevice 0103 iManufacturer 0 iProduct 0 iSerialNumber 0 bNumConfigurations 1 Configuration 0: Standard Configuration Descriptor: bLength 9 bDescriptorType 02 wTotalLength 32 bNumInterface 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 80 bMaxPower 50 (100 mA) Standard Interface Descriptor: bLength 9 bDescriptorType 04 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 58 bInterfaceSubClass 42 bInterfaceProtocol 00 iInterface 0 Standard Endpoint Descriptor: bLength 7 bDescriptorType 05 bEndpointAddress 81 (in) bmAttributes 03 (Interrupt) wMaxPacketSize 32 bInterval 4 Standard Endpoint Descriptor: bLength 7 bDescriptorType 05 bEndpointAddress 02 (out) bmAttributes 03 (Interrupt) wMaxPacketSize 32 bInterval 4 -- The Mafia way is that we pursue larger goals under the guise of personal relationships. Fisheye