Summary: | joydev: USB joysticks do not recover gracefully from disconnects by hub | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Yang Zhao <yang> |
Component: | [OLD] Core system | Assignee: | Greg Kroah-Hartman (RETIRED) <gregkh> |
Status: | VERIFIED INVALID | ||
Severity: | enhancement | CC: | jakub |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Yang Zhao
2006-06-09 01:06:23 UTC
Erm, it's AFAIK not a kernel, but an udev "problem" and you can easily "patch" it by configuring udev properly, so that it always assigns the same device node to a device based on its name or whatever else. Greg, comments? :) Hm... right, udev. I'd somehow completely forgotten about it. Oops. :P I'll see if modifying udev to favour js* names with lower numbers will help. It seems that assigning device names according to device information available to the system is a poor solution when people do use multiple identical USB joystick devices at the same time, and it appears that the USB ID assigned to the same physical device over disconnect/reconnect cycles are not consistent. Of course the device ids are not consistant, they are not supposed to be. We don't want to give you a sense that they would be and then find out that they are not in reality some time later in the future :) There's no real bug here, this is how these devices work. If you want, we can add the persistant device naming for input devices that Debian and SuSE has implemented. It's on my todo list for udev, but pretty far down right now. Am closing out. I've modified my udev scripts such that it will always assign as low numbered js* device as possible. Even with the disconnecting device being re-assigned its previous name, applications using the device still loses the device entirely. It looks like what I untimately wanted to achieve can't be done through software. Closing bug. |