You are not logged in.

#1 2013-04-26 00:55:10

akatz712
Member
Registered: 2013-04-11
Posts: 12

How do I remove a root usb hub from my computer

Here is my lsusb:

Bus 001 Device 008: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 002 Device 003: ID 8564:1000  
Bus 002 Device 004: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
Bus 002 Device 005: ID 058f:6335 Alcor Micro Corp. SD/MMC Card Reader
Bus 002 Device 007: ID 05e3:0505 Genesys Logic, Inc. 
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 009: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub

I want to remove the Linux Foundation 1.1 root hubs so that my Genesys Logic USB 2.0 Hub will use the Linux Foundation 2.0 root hub.

I want to do this interactively and also be able to re-enable the 1.1 root hubs

I found this:

 ls -al /sys/devices/pci0000:00/0000:00:1d.3/usb5/remove
--w------- 1 root root 4096 Apr 25 20:37 /sys/devices/pci0000:00/0000:00:1d.3/usb5/remove
echo 1 > /sys/devices/pci0000:00/0000:00:1d.3/usb5/remove
bash: echo: write error: Invalid argument

I am assuming that the remove file is there for the purpose I am asking about, since a similar ability is in the MS Windows Device manager.
But I could not find anywhere what valid argument is.

Offline

#2 2013-04-26 11:24:49

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,972

Re: How do I remove a root usb hub from my computer

Can't help with the removal part, but often usb ports are hardwired to a specific hub.
Switching to another hub then means switching physical ports.

run lsusb --tree, that will show how the hubs and devices are interconnected.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2013-04-26 13:38:52

akatz712
Member
Registered: 2013-04-11
Posts: 12

Re: How do I remove a root usb hub from my computer

andrew@andrew-901 ~ $ lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 12M
        |__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/4p, 12M
            |__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            |__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            |__ Port 4: Dev 6, If 0, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 6, If 1, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 6, If 2, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 6, If 3, Class=Human Interface Device, Driver=cm109, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
    |__ Port 3: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 4: Dev 7, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 5: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 8: Dev 6, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 8: Dev 6, If 1, Class=Video, Driver=uvcvideo, 480M

I discovered with usbmon that usb ports are not hardwired to a specific hub. That these hubs are virtual. That is why I want to gain control over them, so a particular bus does not take control.

Offline

Board footer

Powered by FluxBB