From owner-freebsd-usb@FreeBSD.ORG Mon Mar 15 17:39:16 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 AF4151065676 for ; Mon, 15 Mar 2010 17:39:16 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 41CF68FC1A for ; Mon, 15 Mar 2010 17:39:15 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 25so217289eya.9 for ; Mon, 15 Mar 2010 10:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=2hqUMlYNXeotfyAESDqIC3S2xDP4VJznABZ4atNQbP4=; b=E+XzKZez3fkhR7Vd3iw/2vbGwTmPIKauySdu4dWNbi2otrwMY15GMVijdDw4rOZ9EN nz1xfeGbM1BI/Wd7hfPS2BDBwhWYiADya4Fufd2swgXHkAPlPilnn9TVucMANmPt1cFU mByjfTtqVBx2ocafKkKcBImf42mipWAD1cQvQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=FK8zjTiUR93KbNm38U9GmPpOvPgp6akuKrO8HQlDD3QQpPJl8F9tyTDewd+fvLECd3 XMIvICwZwdf0VWYU7e/ObKJ2vC+a5eVWwn8alHb13qHqSMeWKLHnMcqBl0S89Xj3CKem 6+QSUKi1DwlJy92pEh9NvhOuXkehq7xcju2zo= MIME-Version: 1.0 Received: by 10.213.97.80 with SMTP id k16mr4982856ebn.1.1268674755003; Mon, 15 Mar 2010 10:39:15 -0700 (PDT) In-Reply-To: References: <201003131343.48106.hselasky@c2i.net> From: Paul B Mahol Date: Sat, 13 Mar 2010 14:29:11 +0000 Message-ID: <3a142e751003130629j39fe35a5o8fdaa5eb15b059a9@mail.gmail.com> To: Alexander Best Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: PS3's Joystick on FreeBSD (can be possible?) 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: Mon, 15 Mar 2010 17:39:16 -0000 On Sat, Mar 13, 2010 at 1:56 PM, Alexander Best wrote: > Hans Petter Selasky schrieb am 2010-03-13: >> On Saturday 13 March 2010 13:21:10 Paul B Mahol wrote: >> > On 3/13/10, Alexander Best wrote: >> > > Paul B Mahol schrieb am 2010-03-13: >> > >> On 3/13/10, Alexander Best wrote: >> > >> > i'm sorry to hijack this thread, but i've been having similar >> > >> > issues as >> > >> > Vinicius with his PS3 controller with my logitech cordless >> > >> > gamepad. >> > >> > this is >> > >> > the attach message: > >> > >> > ugen3.3: at usbus3 >> > >> > uhid0: > > >> > 1.10/2.00, >> > >> > addr >> > >> > 3> on usbus3 > >> > >> > the output of `usbhidctl -f /dev/uhid0 -r` is: > >> > >> > Report descriptor: >> > >> > Collection page=3DGeneric_Desktop usage=3DGame_Pad >> > >> > Total =A0 input size 0 bytes >> > >> > Total =A0output size 0 bytes >> > >> > Total feature size 0 bytes > >> > >> > if i do `hd /dev/uhid0` is see output like this when pressing >> > >> > buttons on the >> > >> > gamepad: > >> > >> > 00000000 =A001 78 72 88 69 08 00 01 =A001 80 7f 7f 80 18 00 00 > >> > >> > |.xr.i...........| > >> > >> > 00000010 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 00 00 > >> > >> > |................| > >> > >> > 00000020 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 28 00 00 > >> > >> > |.............(..| > >> > >> > 00000030 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 48 00 00 > >> > >> > |.............H..| > >> > >> > 00000040 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 88 00 00 > >> > >> > |................| > >> > >> > 00000050 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 01 00 > >> > >> > |................| > >> > >> > 00000060 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 02 00 > >> > >> > |................| > >> > >> > 00000070 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 04 00 > >> > >> > |................| > >> > >> > 00000080 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 08 00 > >> > >> > |................| > >> > >> > 00000090 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 10 00 > >> > >> > |................| > >> > >> > 000000a0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 08 20 00 > >> > >> > |.............. > >> > >> > .| >> > >> > 000000b0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 04 00 00 > >> > >> > |................| > >> > >> > 000000c0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 06 00 00 > >> > >> > |................| > >> > >> > 000000d0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 00 00 00 > >> > >> > |................| > >> > >> > 000000e0 =A001 80 7f 7f 80 08 00 00 =A001 80 7f 7f 80 02 00 00 > >> > >> > |................| > >> > >> > the pad has 10 buttons, 1 analog stick, 2 digital sticks, a >> > >> > "mode" >> > >> > button >> > >> > and >> > >> > a "vibration" button. > >> > >> There was/is ujoy in development but that is all. > >> > > thanks for the hint. i mailed the developer a year or so ago due >> > > to his >> > > post on the freebsd-drivers@ mailinglist [1], but he told >> > > development of >> > > the ujoy driver had ceased. i checked the site mentioned in his >> > > post and >> > > the ujoy driver from back then is also no longer available. > >> > > so there is no way of xorg or hal working directly with uhid >> > > devices >> > > then? > >> > There is xf86-input-joystick, but I dunno about its usability. > > >> Also look here: > >> http://wiki.freebsd.org/uhidd > > thanks for the hint. i'm about to try it out. however i'm having difficul= ties > recompiling my kernel without ukbd (which is required for using uhidd): You can build all usb stuff as module. It only eats little more disk space = ...