From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 15 20:17:52 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3FB226B3 for ; Thu, 15 Nov 2012 20:17:52 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id AAFFC8FC08 for ; Thu, 15 Nov 2012 20:17:51 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 344155867; Thu, 15 Nov 2012 21:17:49 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Subject: Re: linux joystick Date: Thu, 15 Nov 2012 21:19:29 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <1TZ2UN-0007lV-2Q@internal.tormail.org> In-Reply-To: <1TZ2UN-0007lV-2Q@internal.tormail.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211152119.29494.hselasky@c2i.net> Cc: Jan Beich X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 20:17:52 -0000 On Thursday 15 November 2012 17:37:37 Jan Beich wrote: > Many linux games and wine provide support only for linux joystick. > emulators/joytran helps but some games do not even support more than one > keyboard player e.g., Shank. > > As devel/linux-js is nowadays broken I've tried to comile webcamd with > CONFIG_INPUT_JOYDEV but it still fails to attach to my usb gamepad. > OTOH, webcamd has no trouble attaching to my wacom tablet. Any clue > what may be missing? > > -- > # ubuntu (laptop) > [ 33.907951] usb 2-1.5: new low-speed USB device number 3 using ehci_hcd > [ 34.097118] input: Mega World Thrustmaster dual analog 3.2 as > /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/input/input15 [ > 34.097409] generic-usb 0003:044F:B315.0001: input,hidraw0: USB HID v1.10 > Gamepad [Mega World Thrustmaster dual analog 3.2] on > usb-0000:00:1d.0-1.5/input0 [ 34.097427] usbcore: registered new > interface driver usbhid > [ 34.097430] usbhid: USB HID core driver > > # freebsd (foobox) > $ usbconfig -d 3.3 dump_curr_config_desc > ugen3.3: at usbus3, 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 = 0x00af > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0001 > bInterfaceClass = 0x0003 > bInterfaceSubClass = 0x0000 > bInterfaceProtocol = 0x0000 > iInterface = 0x0000 > > Additional Descriptor > > bLength = 0x09 > bDescriptorType = 0x21 > bDescriptorSubType = 0x10 > RAW dump: > 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x6c, > 0x08 | 0x00 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0008 > bInterval = 0x000a > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > $ webcamd -d 3.3 > webcamd: Cannot find USB device Hi, How did you configure this? Did you install work/webcamd*/tools/linux_make ? And did you run "make -C work/webcamd* configure", after make extract patch? --HPS