Andrew, joysticks after the patch work great.
There is a little side effect though. According to dmesg, four input classes
are registered (wrong, should be 2), but only two jsX nodes are created
(which is good).
This is tested on Slackware and Gentoo.
I don't think this is serious, but it might affect something.
Either way, the patch works and you should push kernel maintainers to
include it in the official release. Great job!
usb-storage: device scan complete
usb 3-2: new low speed USB device using uhci_hcd and address 2
usb 3-2: string descriptor 0 read error: -32
usb 3-2: string descriptor 0 read error: -32
usbcore: registered new driver hiddev
input: HID 0925:8866 as /class/input/input1
input: HID 0925:8866 as /class/input/input2
input: HID 0925:8866 as /class/input/input3
input: HID 0925:8866 as /class/input/input4
input: USB HID v1.00 Joystick [HID 0925:8866] on usb-0000:00:10.2-2
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
From: "Andrew Fuller" <[EMAIL PROTECTED]>
To: "Alan Stern" <[EMAIL PROTECTED]>, "Michael Alladin"
<[EMAIL PROTECTED]>, "Tim Christie" <[EMAIL PROTECTED]>
CC: linux-usb-devel@lists.sourceforge.net
Subject: Re: [linux-usb-devel] [PATCH] Re: Wisegroup MP-8866 Dual USB
Joypad
Date: Sun, 19 Feb 2006 16:51:44 -0500
On 2/19/06, Michael Alladin <[EMAIL PROTECTED]> wrote:
> see [kernel_src]/drivers/usb/input/hid-core.c this joypad belongs in
the
> big table of quirky devices, or perhaps it even warrants it's own driver
> (like the xbox).
Great! Thanks for pointing out that file! (see my attached patch)
On 2/19/06, Alan Stern <[EMAIL PROTECTED]> wrote:
> you got probably wouldn't help very much. Clearly the device does start
> off in a working state; otherwise it wouldn't even show up in
> /proc/bus/usb/devices.
That was very useful information to know. So obviously it started off
by working, then somewhere along the init process it got confused and
locked itself up until a re-probing reset it. I dug into the file
Michael pointed out and have created a patch for this thing.
The HID_QUIRK_NOGET flag was required to make it work (so I'm guessing
whatever this "get" thing is that the flag is avoiding is what's been
locking it ... couldn't find any documentation about any of the flags
to know what was going on). With it set, this works right out of the
box; none of these ugly usbmodules workarounds needed!
The HID_QUIRK_MULTI_INPUT flag is required for it to register two js#
nodes so we don't need the ugly hack in libsdl.
Michael, Tim, and anyone else on this list wish a Dual Joypad, please
test this patch and tell us if it works on yours' as well (possibly
different revisions, though I expect we all have the same problem). I
would like to see this in the kernel :)
There is a 4-port version of this adapter, which has a similar hack in
libsdl for the multi-input. I expect that one could also use the
MULTI_INPUT quirk flag, and possibly the NOGET, as well. But I don't
have one to test nor do I even know the device ID.
Cheers,
-AF
<< wisegroup.patch >>
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel