From owner-freebsd-x11@FreeBSD.ORG Thu Apr 9 16:24:56 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2D991065670 for ; Thu, 9 Apr 2009 16:24:56 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 928388FC0A for ; Thu, 9 Apr 2009 16:24:56 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.156] (adsl-157-61-189.bna.bellsouth.net [70.157.61.189]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n39GNbHg062132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Apr 2009 12:23:37 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Alexander Best In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-/Sp6vvLKxCGUA3vjLpv9" Organization: FreeBSD Date: Thu, 09 Apr 2009 11:24:02 -0500 Message-Id: <1239294242.1922.14.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RDNS_DYNAMIC autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-x11@freebsd.org Subject: Re: Using joypad under X X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2009 16:24:57 -0000 --=-/Sp6vvLKxCGUA3vjLpv9 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2009-04-09 at 14:33 +0200, Alexander Best wrote: > oh. :-( >=20 > so basically there's no way to use my gamepad with the usb2 stack? will t= he X > joystick driver work if i switch back to usb1? Well, I don't have any way to test it, but when I just updated X server, the joystick driver was one of two "maintained" drivers that failed. The error appeared to be related to usb2 as I do all of my builds on -CURRENT. It probably isn't all that difficult to fix, but I don't know the usb stuff. robert. > Robert Noland schrieb am 2009-04-08: > > On Wed, 2009-04-08 at 21:13 +0200, Alexander Best wrote: > > > hi there, >=20 > > > i'm running FreeBSD moshnroll 8.0-CURRENT FreeBSD 8.0-CURRENT #28 > > > r190845: Wed > > > Apr 8 16:27:42 CEST 2009. >=20 > > > i'd like to use my joypad under X in order to play games, but i'm > > > unable to > > > find any information on how to do this. >=20 > > I don't think that the joystick driver and usb2 get along... >=20 > > robert. >=20 > > > the device get's recognized as HID device. here's the line from > > > dmesg: >=20 > > > uhid0: > > 1.10/2.00, addr > > > 2> on usbus0 >=20 > > > i added the following lines to my xorg.conf: >=20 > > > Section "InputDevice" > > > Identifier "Logitech Cordless RumblePad 2" > > > Option "Vendor" "Logitech" > > > Driver "joystick" > > > Option "Path" "/dev/uhid0" > > > Option "Device" "/dev/uhid0" > > > Option "DebugLevel" "99" > > > EndSection >=20 > > > and added >=20 > > > InputDevice "Logitech Cordless RumblePad 2" "SendCoreEvents" to >=20 > > > Section "ServerLayout" >=20 > > > after starting X however i'm not able to use the joypad. i checked > > > /var/log/Xorg.0.log and found these entries which seem to be > > > related to the > > > problem: >=20 > > > (**) Option "Device" "/dev/uhid0" > > > (**) Option "SendCoreEvents" > > > (**) Logitech Cordless RumblePad 2: always reports core events > > > (**) Option "DebugLevel" "99" > > > (**) Logitech Cordless RumblePad 2: debug level set to 99 > > > (**) Button 1 mapped to 5 > > > (**) Button 2 mapped to 5 > > > (**) Button 3 mapped to 5 > > > (**) Button 4 mapped to 0 > > > (**) Button 5 mapped to 0 > > > (**) Button 6 mapped to 0 > > > (**) Button 7 mapped to 0 > > > (**) Button 8 mapped to 0 > > > (**) Button 9 mapped to 0 > > > (**) Button 10 mapped to 0 > > > (**) Button 11 mapped to 0 > > > (**) Button 12 mapped to 0 > > > (**) Button 13 mapped to 0 > > > (**) Button 14 mapped to 0 > > > (**) Button 15 mapped to 0 > > > (**) Button 16 mapped to 0 > > > (**) Button 17 mapped to 0 > > > (**) Button 18 mapped to 0 > > > (**) Button 19 mapped to 0 > > > (**) Button 20 mapped to 0 > > > (**) Button 21 mapped to 0 > > > (**) Button 22 mapped to 0 > > > (**) Button 23 mapped to 0 > > > (**) Button 24 mapped to 0 > > > (**) Button 25 mapped to 0 > > > (**) Button 26 mapped to 0 > > > (**) Button 27 mapped to 0 > > > (**) Button 28 mapped to 0 > > > (**) Button 29 mapped to 0 > > > (**) Button 30 mapped to 0 > > > (**) Button 31 mapped to 0 > > > (**) Button 32 mapped to 0 > > > (**) Axis 1 type is 1, mapped to 1, amplify=3D1.000 > > > (**) Axis 2 type is 1, mapped to 2, amplify=3D1.000 > > > (**) Axis 3 type is 1, mapped to 3, amplify=3D1.000 > > > (**) Axis 4 type is 1, mapped to 4, amplify=3D1.000 > > > (**) Axis 5 type is 2, mapped to 1, amplify=3D1.000 > > > (**) Axis 6 type is 2, mapped to 2, amplify=3D1.000 > > > (**) Axis 7 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 8 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 9 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 10 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 11 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 12 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 13 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 14 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 15 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 16 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 17 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 18 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 19 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 20 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 21 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 22 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 23 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 24 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 25 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 26 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 27 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 28 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 29 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 30 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 31 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Axis 32 type is 0, mapped to 0, amplify=3D1.000 > > > (**) Option "SendCoreEvents" > > > (**) Logitech Cordless RumblePad 2 (keys): always reports core > > > events > > > (II) evaluating device (Razer Diamondback 1600) > > > (II) XINPUT: Adding extended input device "Razer Diamondback 1600" > > > (type: > > > MOUSE) > > > (II) evaluating device (Dell USB Keyboard) > > > (II) XINPUT: Adding extended input device "Dell USB Keyboard" > > > (type: KEYBOARD) > > > (II) evaluating device (Logitech Cordless RumblePad 2) > > > (II) XINPUT: Adding extended input device "Logitech Cordless > > > RumblePad 2" > > > (type: JOYSTICK) > > > (II) evaluating device (Logitech Cordless RumblePad 2 (keys)) > > > (II) XINPUT: Adding extended input device "Logitech Cordless > > > RumblePad 2 > > > (keys)" (type: JOYSTICK) > > > jstkDeviceControlProc what=3DINIT > > > (EE) Joystick: Didn't find any usable axes. > > > jstkKeyboardDeviceControlProc what=3DDEVICE_INIT > > > (**) Initializing Keyboard with 1 keys > > > (**) Keymap [8]: 0x00000000 > > > (II) Razer Diamondback 1600: SetupAuto: hw.iftype is 4, hw.model is > > > 0 > > > (II) Razer Diamondback 1600: SetupAuto: protocol is SysMouse > > > jstkKeyboardDeviceControlProc what=3DDEVICE_ON > > > jstkKeyboardDeviceControlProc what=3DDEVICE_OFF > > > (II) NVIDIA(0): Setting mode "1152x864" > > > (**) Option "BaudRate" "1200" > > > (**) Option "StopBits" "2" > > > (**) Option "DataBits" "8" > > > (**) Option "Parity" "None" > > > (**) Option "Vmin" "1" > > > (**) Option "Vtime" "0" > > > (**) Option "FlowControl" "None" > > > couldn't enable device 4 > > > jstkKeyboardDeviceControlProc what=3DDEVICE_ON > > > jstkKeyboardDeviceControlProc what=3DDEVICE_OFF > > > (II) NVIDIA(0): Setting mode "1152x864" > > > couldn't enable device 4 > > > jstkKeyboardDeviceControlProc what=3DDEVICE_ON > > > (II) 3rd Button detected: disabling emulate3Button > > > jstkKeyboardDeviceControlProc what=3DDEVICE_OFF > > > (II) NVIDIA(0): Setting mode "1152x864" > > > couldn't enable device 4 > > > jstkKeyboardDeviceControlProc what=3DDEVICE_ON > > > (II) 3rd Button detected: disabling emulate3Button >=20 > > > i tried running usbhidctl -f /dev/uhid0 -a, but got no output. > > > running > > > usbhidctl -f /dev/uhid0 -r gives me the following output: >=20 > > > Report descriptor: > > > Collection page=3DGeneric_Desktop usage=3DGame_Pad > > > Total input size 0 bytes > > > Total output size 0 bytes > > > Total feature size 0 bytes >=20 > > > i did the following to see if the device actually works: hd > > > /dev/uhid0 and > > > this is the result after pressing buttons 1-10: >=20 > > > 00000000 01 80 80 7f 80 18 00 08 01 80 80 7f 80 08 00 08 > > > |................| > > > 00000010 01 80 80 7f 80 28 00 08 01 80 80 7f 80 08 00 08 > > > |.....(..........| > > > 00000020 01 80 80 7f 80 48 00 08 01 80 80 7f 80 08 00 08 > > > |.....H..........| > > > 00000030 01 80 80 7f 80 88 00 08 01 80 80 7f 80 08 00 08 > > > |................| > > > 00000040 01 80 80 7f 80 08 01 08 01 80 80 7f 80 08 00 08 > > > |................| > > > 00000050 01 80 80 7f 80 08 02 08 01 80 80 7f 80 08 00 08 > > > |................| > > > 00000060 01 80 80 7f 80 08 04 08 01 80 80 7f 80 08 00 08 > > > |................| > > > 00000070 01 80 80 7f 80 08 08 08 01 80 80 7f 80 08 00 08 > > > |................| > > > 00000080 01 80 80 7f 80 08 10 08 01 80 80 7f 80 08 00 08 > > > |................| > > > 00000090 01 80 80 7f 80 08 20 08 01 80 80 7f 80 08 00 08 |...... > > > .........| >=20 > > > cheers. > > > Alex > > > _______________________________________________ > > > freebsd-x11@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-x11 > > > To unsubscribe, send any mail to > > > "freebsd-x11-unsubscribe@freebsd.org" --=20 Robert Noland FreeBSD --=-/Sp6vvLKxCGUA3vjLpv9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAkneISIACgkQM4TrQ4qfROOaOQCfdJiP8IcKfb86+h/EsUg5i7hX QhcAnRIbeHfGXs2ARoM/AvUu/yzg2QnO =ZpVl -----END PGP SIGNATURE----- --=-/Sp6vvLKxCGUA3vjLpv9--