You are not logged in.

#1 2012-04-19 19:52:13

luolimao
Member
Registered: 2011-09-29
Posts: 10

[SOLVED] Disable an individual USB port

I want to know how to disable an individual USB port. This port seems to throw up a continuous stream of errors, and I want to disable it. I know for sure it doesn't work, because it doesn't work in Windows either. I can live without this one port; however, I need to use the other ports (my keyboard and mouse are connected via USB wireless adapter) and all the solutions I have found are all-or-nothing, because they disable USB support completely. How can I disable an individual port? (Ostensibly this is port #2, according to the dmesg output.)

> dmesg | tail -n 20
[  106.208800] usb 2-1.2: new full-speed USB device number 108 using ehci_hcd
[  106.222230] hub 2-1:1.0: unable to enumerate USB device on port 2
[  106.408667] usb 2-1.2: new high-speed USB device number 109 using ehci_hcd
[  106.445524] hub 2-1:1.0: unable to enumerate USB device on port 2
[  106.658542] usb 2-1.2: new high-speed USB device number 110 using ehci_hcd
[  106.815017] usb 2-1.2: new full-speed USB device number 111 using ehci_hcd
[  106.828822] hub 2-1:1.0: unable to enumerate USB device on port 2
[  107.015099] usb 2-1.2: new high-speed USB device number 112 using ehci_hcd
[  107.051958] hub 2-1:1.0: unable to enumerate USB device on port 2
[  107.238233] usb 2-1.2: new high-speed USB device number 113 using ehci_hcd
[  107.275091] hub 2-1:1.0: unable to enumerate USB device on port 2
[  107.681385] usb 2-1.2: new high-speed USB device number 114 using ehci_hcd
[  107.784827] hub 2-1:1.0: unable to enumerate USB device on port 2
[  107.971233] usb 2-1.2: new high-speed USB device number 116 using ehci_hcd
[  108.127777] usb 2-1.2: new high-speed USB device number 117 using ehci_hcd
[  108.284429] usb 2-1.2: new high-speed USB device number 118 using ehci_hcd
[  108.697304] usb 2-1.2: device not accepting address 118, error -71
[  108.764191] usb 2-1.2: new high-speed USB device number 119 using ehci_hcd
[  109.177135] usb 2-1.2: device not accepting address 119, error -71
[  109.177368] hub 2-1:1.0: unable to enumerate USB device on port 2

Last edited by luolimao (2012-06-24 21:53:38)

Offline

#2 2012-04-20 06:27:12

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Disable an individual USB port

So it's 2-1.2 that you want to disable? Try the following:

echo suspend | sudo tee /sys/bus/usb/devices/2-1.2/power/level

Burninate!

Offline

#3 2012-06-24 21:53:23

luolimao
Member
Registered: 2011-09-29
Posts: 10

Re: [SOLVED] Disable an individual USB port

I tried what you suggested, but it mentioned something about the file not existing. Bseides, the specific numbers were changing randomly on startup, until the message finally and magically disappeared. Regardless, I'm marking this solved.

Offline

Board footer

Powered by FluxBB