Part two... Andrew Klaassen
----- Forwarded message from Andrew Klaassen <[EMAIL PROTECTED]> ----- Date: Thu, 21 Aug 2003 16:25:56 -0400 From: Andrew Klaassen <[EMAIL PROTECTED]> Subject: Re: USB fails after power cycle To: [EMAIL PROTECTED] On Thu, Aug 21, 2003 at 03:04:49PM -0400, Charles Lepple wrote: > Andrew Klaassen said: > > Anything I can do software-wise to force it to check? > > Anything else I should try/think of? > > I can't recall where I found it, but at one point, I used a > Perl script to turn a hub port off and back on again. I think > it was associated with the ezhid project on SourceForge, but I > could be mistaken. > > If you can't find anything else, let me know and I can look > for it again. Handy little tool. Hasn't fixed my problem, but at least it gives me some information. Before unplug-replug: # ./hub.pl -l -d /proc/bus/usb/001/001 HUB Status: Local power supply good No over-current condition currently exists Number of Ports: 2 Ganged port power switching Port 1 Status: PORT_CONNECTION : 0 PORT_ENABLE : 0 PORT_SUSPEND : 0 PORT_OVER_CURRENT : 0 PORT_RESET : 0 PORT_POWER : 1 PORT_LOW_SPEED : 0 Port 2 Status: PORT_CONNECTION : 1 PORT_ENABLE : 1 PORT_SUSPEND : 0 PORT_OVER_CURRENT : 0 PORT_RESET : 0 PORT_POWER : 1 PORT_LOW_SPEED : 0 # After unplug-replug: # ./hub.pl -l -d /proc/bus/usb/001/001 HUB Status: Local power supply good No over-current condition currently exists Number of Ports: 2 Ganged port power switching Port 1 Status: PORT_CONNECTION : 1 PORT_ENABLE : 1 PORT_SUSPEND : 0 PORT_OVER_CURRENT : 0 PORT_RESET : 0 PORT_POWER : 1 PORT_LOW_SPEED : 1 Port 2 Status: PORT_CONNECTION : 1 PORT_ENABLE : 1 PORT_SUSPEND : 0 PORT_OVER_CURRENT : 0 PORT_RESET : 0 PORT_POWER : 1 PORT_LOW_SPEED : 0 # I saw that Port 2 seems to be up-and-running right from the start and tried plugging the UPS into it, but it didn't seem to help. And using the -c <portnum> option to reset port power didn't seem to do anything. I also tried modifying the function called by -c so that it would unset/reset "PORT_LOW_SPEED" instead of "PORT_POWER". That didn't do anything either. I'm not sure I'm using the -c option correctly, though; no matter what junk I feed to it, it always says "Clear Port Power ok...Set Port Power ok". Typical: # ./hub.pl -v -c 0 -d /proc/bus/usb/001/001 001 001 Scanning bus name = 001 Bus: 001 001 Device: 002 001 Device: 001 001 Found device idVendor 0x0000, idProduct 0x0000, Class 9 A total of 1 hubs was found. Clear Port Power ok Set Port Power ok # I've tried "-c 1", "-c 2", "-c 001", "-c 001/001", etc, etc, but nothin' seems to do nuthin'. So... I dunno. > Not sure about the root cause of the problem, though. What > kind of USB host controller is it? (UHCI, OHCI; also, which > driver?) UHCI, hidups driver. Andrew Klaassen - ----- End forwarded message ----- ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel