From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 20:14:32 2008 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F9C816A478 for ; Wed, 30 Jan 2008 20:14:32 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by mx1.freebsd.org (Postfix) with ESMTP id 2A83313C469 for ; Wed, 30 Jan 2008 20:14:31 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so395536fka.11 for ; Wed, 30 Jan 2008 12:14:30 -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:mime-version:content-type:content-transfer-encoding:content-disposition; bh=19LpvO6gvkBr1Sr+ynks5PGS3jLzfjGEV7DvswQYpXI=; b=ZWMC8wtWMJqEHax2jS1X3CmL78mUWMWESlh34EReyAvgzKQqDqdNEabe3GnGJ419/7vQinFZWZ6Bc55F+nOOyNBLr+ToOl+BIiBw+w2cl/KlKq07d+ogTDEQh6XevwbA150Xn7a6onSuFAU5+qKlx+n02ZJjntMA3e2JzD7EpsA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ql+zkCRwXYQk1nvZl1CD/ikVlBqgZ8Ezq6cznxRK/0f11BrrjYh8aWL1UiunJiJraOxMadGms0+Zezglr+eJfckqB5YqeKMk99yayfwVq2kU5XPSP16mOJnfkTtdWIr1LkbqLPcImZNk70jIfisC9dGoRxzUVelnGMKsJLUBy/E= Received: by 10.82.153.5 with SMTP id a5mr2099759bue.9.1201722468747; Wed, 30 Jan 2008 11:47:48 -0800 (PST) Received: by 10.82.160.5 with HTTP; Wed, 30 Jan 2008 11:47:48 -0800 (PST) Message-ID: <1d3ed48c0801301147h77e5056h23eb73d0c4ddd1be@mail.gmail.com> Date: Wed, 30 Jan 2008 11:47:48 -0800 From: "Kevin Downey" To: usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: 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, 30 Jan 2008 20:14:32 -0000 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: on uhub1 uhub7: 3 ports with 2 removable, bus powered id->bInterfaceClass 0x58 ugen0: on uhub7 the "id->bInterfaceClass 0x58" is from a printf I added after line 208 in /sys/dev/usb/uhid.c /* The Xbox 360 gamepad doesn't use the HID class. */ printf("id->bInterfaceClass 0x%x\n",id->bInterfaceClass); if (id->bInterfaceClass != UICLASS_VENDOR || id->bInterfaceSubClass != UISUBCLASS_XBOX360_CONTROLLER || id->bInterfaceProtocol != UIPROTO_XBOX360_GAMEPAD) return (UMATCH_NONE); 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? -- The Mafia way is that we pursue larger goals under the guise of personal relationships. Fisheye