linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Wisegroup MP-8866 Dual USB Joypad aka Super Dual Box
@ 2006-01-18 23:57 Andrew Fuller
  2006-01-19  0:02 ` Marco d'Itri
  2006-01-19  1:30 ` Andrew Fuller
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Fuller @ 2006-01-18 23:57 UTC (permalink / raw)
  To: linux-hotplug

There are a number of posts on various support forums trying to get
the MP-8866 device to function in Linux.  The device in question is a
PS2->USB adapter that actually has two PS2 plugs.

Currently, when this device is plugged in, it is detected, and joydev
is loaded (the correct module), /dev/input/js0 is created (only
identified as a single joystick, but that's a minor issue), but
cat'ing the js0 node does not respond to joystick input.  A few bytes
appear immediately as cat is started, but then falls silent.

This post goes into more detail on the behaviour:
http://marc.theaimsgroup.com/?l=linux-usb-users&m\x108292426517740&w=2

Through my own Googling and debugging, I've come up with a hack to get
this to function.  Surprisingly, this change does not touch anything
with USB (several posts requesting help have been on the usb mailing
list), but in fact it is with hotplug.

The change is in /etc/hotplug/hotplug.functions in the following block of code:

    # should we use usbmodules, pcimodules?  not on 2.5+, because sysfs
    # ought to expose the data we need to find all candidate drivers.
    # (on 2.5.48 it does for usb; but maybe not yet for pci.)
    case "$KERNEL" in
    2.2*|2.3*|2.4*)     LISTER=`which ${TYPE}modules` ;;
    *)                  LISTER="" ;;
    esac

Change the 2nd to last line to the following:

    *)                  LISTER=`type -p ${TYPE}modules` ;;

Now this looks to me to be flat out wrong.  I am running a 2.6 kernel,
and this check was explicitly put in to NOT use usbmodules with a 2.6
kernel.

I'm asking for help to track down a the real culprit here so a proper
fix can be made and applied in the appropriate package to avoid this
hack on my system, and provide a working MP-8866 to others with their
future upgrade of said package.

Perhaps the USB module not exposing something properly in the sysfs
that the comment in  hotplug.functions refers to?  Is it a shortcoming
of sysfs?  Is it a problem in hotplug, and we really should be using
usbmodules even with a 2.6 kernel?  Is it a problem in hotplug in the
way it deals with items when usbmodules is .not. used?

Any thoughts on how to debug this?

Thanks,
-Andrew


-------------------------------------------------------
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_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-19  1:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-18 23:57 Wisegroup MP-8866 Dual USB Joypad aka Super Dual Box Andrew Fuller
2006-01-19  0:02 ` Marco d'Itri
2006-01-19  1:30 ` Andrew Fuller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).