I am a newbie to USB under Linux (though by far not a newbie to
Linux). I am trying to get Dell laptop running Linux (Mandrake with a
self-built kernel 2.4.17) to work neatly with an Advanced Port
Replicator (APR). The laptop has one USB port on the back, and the
APR has two. In a nutshell my question is how to handle that my
laptop goes in and out of the APR without having to reboot to get the
USB system right.
Everything works well at boot time. When booting the laptop out of
the APR, I get the following in /var/log/messages from /etc/init.d/usb start:
Feb 27 17:35:48 pan kernel: usb.c: registered new driver usbdevfs
Feb 27 17:35:48 pan kernel: usb.c: registered new driver hub
Feb 27 17:35:48 pan kernel: usb-uhci.c: $Revision: 1.268 $ time 15:57:26 Feb 20 2002
Feb 27 17:35:48 pan kernel: usb-uhci.c: High bandwidth mode enabled
Feb 27 17:35:48 pan kernel: PCI: Found IRQ 11 for device 00:1d.0
Feb 27 17:35:48 pan kernel: PCI: Sharing IRQ 11 with 01:00.0
Feb 27 17:35:48 pan kernel: PCI: Setting latency timer of device 00:1d.0 to 64
Feb 27 17:35:48 pan kernel: usb-uhci.c: USB UHCI at I/O 0xbf80, IRQ 11
Feb 27 17:35:48 pan kernel: usb-uhci.c: Detected 2 ports
Feb 27 17:35:48 pan kernel: usb.c: new USB bus registered, assigned bus number 1
Feb 27 17:35:48 pan kernel: hub.c: USB hub found
Feb 27 17:35:48 pan kernel: hub.c: 2 ports detected
so it picked up the one port (called bus in the driver, I presume).
When booting sitting in the APR, I get:
Feb 27 17:43:35 pan kernel: usb.c: registered new driver usbdevfs
Feb 27 17:43:35 pan kernel: usb.c: registered new driver hub
Feb 27 17:43:35 pan kernel: usb-uhci.c: $Revision: 1.268 $ time 15:57:26 Feb 20
2002
Feb 27 17:43:35 pan kernel: usb-uhci.c: High bandwidth mode enabled
Feb 27 17:43:35 pan kernel: PCI: Found IRQ 11 for device 00:1d.0
Feb 27 17:43:35 pan kernel: PCI: Sharing IRQ 11 with 01:00.0
Feb 27 17:43:35 pan kernel: PCI: Setting latency timer of device 00:1d.0 to 64
Feb 27 17:43:35 pan kernel: usb-uhci.c: USB UHCI at I/O 0xbf80, IRQ 11
Feb 27 17:43:35 pan kernel: usb-uhci.c: Detected 2 ports
Feb 27 17:43:35 pan kernel: usb.c: new USB bus registered, assigned bus number 1
Feb 27 17:43:35 pan kernel: hub.c: USB hub found
Feb 27 17:43:35 pan kernel: hub.c: 2 ports detected
Feb 27 17:43:35 pan kernel: PCI: Found IRQ 11 for device 00:1d.1
Feb 27 17:43:35 pan kernel: PCI: Sharing IRQ 11 with 02:01.0
Feb 27 17:43:35 pan kernel: PCI: Sharing IRQ 11 with 02:01.1
Feb 27 17:43:35 pan kernel: PCI: Setting latency timer of device 00:1d.1 to 64
Feb 27 17:43:35 pan kernel: usb-uhci.c: USB UHCI at I/O 0xbf40, IRQ 11
Feb 27 17:43:35 pan kernel: usb-uhci.c: Detected 2 ports
Feb 27 17:43:35 pan kernel: usb.c: new USB bus registered, assigned bus number 2
Feb 27 17:43:35 pan kernel: hub.c: USB hub found
Feb 27 17:43:35 pan kernel: hub.c: 2 ports detected
Feb 27 17:43:35 pan kernel: PCI: Found IRQ 11 for device 00:1d.2
Feb 27 17:43:35 pan kernel: PCI: Sharing IRQ 11 with 00:1f.1
Feb 27 17:43:35 pan kernel: PCI: Sharing IRQ 11 with 02:00.0
Feb 27 17:43:35 pan kernel: PCI: Sharing IRQ 11 with 02:08.0
Feb 27 17:43:35 pan kernel: PCI: Setting latency timer of device 00:1d.2 to 64
Feb 27 17:43:35 pan kernel: usb-uhci.c: USB UHCI at I/O 0xbf20, IRQ 11
Feb 27 17:43:35 pan kernel: usb-uhci.c: Detected 2 ports
Feb 27 17:43:35 pan kernel: usb.c: new USB bus registered, assigned bus number 3
Feb 27 17:43:35 pan kernel: hub.c: USB hub found
Feb 27 17:43:35 pan kernel: hub.c: 2 ports detected
Feb 27 17:43:35 pan kernel: usb-uhci.c: v1.268:USB Universal Host Controller
Interface driver
so it picked all three ports.
Also, plugging and unplugging of devices work neatly.
Now, if have booted my laptop outside of the APR and plug it into the
APR, I would like to be able to pick up the extra ports. I had
expected that /etc/init.d/usb stop before plugging it in, and then usb
start afterwards could have done the trick. But after restarting the
USB system, I still only had one port available.
Similarly, I would like to deregister the extra busses when I remove
the laptop from the APR since it seemed to confuse the mouse system of
the X server when the USB mouse were gone. In particular, replugging
and restarting usb a couple of times, I got a constant stream of error
messages saying that Bus 1, port 1,2,3,4,5,6,7 were unreachable.
So my question is, is there a way for me to have the USB system
reassess how many ports there actually are on the machine?
Thanks in advance
/Peter
--
http://www.linearity.org/turtle/contact.html
``When you have had all the experiences, met all the famous people,
made some money, toured the world and got all the acclaim you still
think--is that it? Some might be satisfied--but I wasn't'' -- G. Harrison
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users