Summary: | Hotplug >=20040311 doesn't work with my USB gamepad | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tommy Li <realitymage> |
Component: | [OLD] Core system | Assignee: | Greg Kroah-Hartman (RETIRED) <gregkh> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Tommy Li
2004-04-03 18:39:02 UTC
Erm, it is a hid-compliant USB gamepad. Not a joystick. But it has analog-knobs, so - yeah. In fact, it's a PSX-PC usb converter with a hooked-up Dual Shock 1 controller. It's HID compliant though - so that other stuff should be irrelavant. This isn't a hotplug issue, looks like the kernel driver is getting loaded properly. So it's probably a kernel issue. If this still happens with a 2.6.5 kernel, try creating a bug at bugzilla.kernel.org for it. Actually, earlier hotplugs than the one I listed work (mostly). So it's not a kernel issue, but rather a hotplug one. What different kernel modules does the older scripts load that the newer ones do not? That's all the hotplug scripts do, they shoulnd't affect the way your device works at all. I did lsmod comparisons, and the modules loaded are exactly the same. In fact, I found that the problem lies somewhere within the /etc/hotplug/ scripts. If I use the latest hotplug, and keep the /etc/hotplug/ files from 20040105 (the last working version), my joystick works fine. However, if I do an etc-update, my joystick no longer works. I'm sure the problem is within hotplug. All other variables have been eliminated. Same kernel, same hardware, same everything, the only thing that changes is the /etc/hotplug scripts - and thats when the situation goes between "working" and "not-working". Oh - and by the way - in all cases, the joystick shows up in dmesg and a device node is created by joydev... I can actually "cat" the device node in all cases. It's just that with the new scripts, the joystick never registers stimulus. Some additional information: The right number of axes and buttons (18 axes, 24 buttons) are reported in jscalibrator. It just never registers any stimuli. Hotplug-20040105 is the last version where it works properly. Interestingly enough, if I unload hid and let vmware-windows98 take over the device, it works fine in there. Ok, this should be fixed in the next hotplug release (in a day or so.) The problem still exists for me. Does the proper kernel driver get loaded if you plug your device in? That's all that the hotplug scripts do, they don't control the access to your device. Yeah - the proper driver does get loaded. In fact, I'm preloading the driver in my modules.autoload.d. The problem still exists - though - that hotplug scripts from Janurary work, but the new ones do not. |