I'm modifying my desktop computer case and I want to plug everything into the USB ports in the back of it. However, the ports are not easy to reach and sometimes I have to unplug some devices because the operating system acts funny in certain cases.
So I thought of this: I want to connect a plug to an USB port, connect the +5V line to a rocker switch, and then collect all the lines into a socket, to which I will plug my device. Now, here is my problem.
Would I be limited by cable length due to capacitance etc? I don't want to harm the computer or its USB port by making a stupid mistake.
Would I need to disconnect all lines? In that case a set of relays seem much more logical. However, passing the data lines over relays could distort the signals maybe. I don't know anything about high speed cables. Do you think this could affect communication?
Also, in case of disconnecting all the lines, in what order should I connect/disconnect the lines?
Will I get in trouble because of the bouncing from the switch? I guess the USB connectors also have some bouncing but the USB system is probably engineered for their bouncing characteristics.
Edit: Thank you all for your answers, I originally asked this question on the electronics forum of the same network but somebody migrated it to here, sorry if I wasted your time.
A hub would definitely work, but I want to hide the cables and the ports as much as possible, so it's not a solution I'd prefer. This is a case mod after all, aesthetics is somewhat important also.
The problem with the operating system isn't easily solved, i.e. by ejecting. The OS initializes my Bluetooth dongle in a weird way if it's plugged in during bootup and then I have to recycle it before I can use it. That's one of the devices I'd like to switch. The other one is a webcam which I occasionally use and rather not have connected all the time.