Andrew, great job -- this little C program does enable the joystick! (On my working Slack distro, without downgrading usbutils)

I would not be surprised that this cheapo adapter has some sort of bugs. On the other hand, when you plug it into a Windoze box, it just works without any drivers, therefore I don't see why Linux should fall behind. ;)

The way to automate the invocation of this little proggy is via hotplug -- see this link
http://synce.sourceforge.net/synce/hotplug.php
It's about connecting pocketpc device (via usb), but the idea is exactly the same for joypad.

However, I think the proper place for this fix is in the kernel --
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).

However, we're not quite done with this puppy -- only one device node is created (js0), but there should be two, right? (And no, the SDL library patch that handles two joysticks via one device is just not cool).

Michael


From: "Andrew Fuller" <[EMAIL PROTECTED]>
To: "David Brownell" <[EMAIL PROTECTED]>
CC: linux-usb-devel@lists.sourceforge.net, "Michael Alladin" <[EMAIL PROTECTED]>
Subject: Re: [linux-usb-devel] Re: Wisegroup MP-8866 Dual USB Joypad
Date: Sat, 18 Feb 2006 22:52:36 -0500

On 2/18/06, David Brownell <[EMAIL PROTECTED]> wrote:
> Nobody should be using "usbmodules" on kernels newer than 2.5, so
> don't bother with that.  Just use the most current "usbutils", which
> is going to be a 0.71 or CVS version.

With the most current usbutils (0.71) my PS2->USB adapter does not
work.  That's what we've been attempting to solve in this thread.

I've done some additional hacking to find a more precise event that's
"enabling" this device we're fighting with.  I've gone through the old
usbmodules and found what part of it is making it all work.  I've
picked out the pieces to make a stand alone program to address the
issue.  I've attached the file to this email.  (does the mailing list
take attachments?  if not, I'll send it in the body of a message; it's
only ~75 lines long)

It seems to be the single ioctl call which is working the magic.  But
what all the parameters mean I truly haven't the foggiest.  If anyone
here can explain to me what's going on it would be greatly appreciated
and might help us know if there's a better way to address the issue.
Otherwise perhaps someone could point the way to where we could get
some similar code executed automatically so that this thing works when
plugged in.

> For pretty much any device /sys/$DEV, "modprobe /sys/$DEV/modalias"
> is what to modprobe with recent (since maybe 2.6.12?) kernels and
> matching module-init-tools.

Ok, I'm rather clueless about these things.  I don't know what this
"modalias" is about.  The files there I found say
usb:bunch'o'gibberish and modprob'ing that file just gave errors.

-AF


<< wisegroup.c >>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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

Reply via email to