mvp / uhubctl

uhubctl - USB hub per-port power control
Other
2.23k stars 232 forks source link

What did I do with Raspberry Pi? #491

Closed dims12 closed 1 year ago

dims12 commented 1 year ago

I had my Raspi 3B+ running old raspbian Jessy. I was connecting to it by ssh. I have installed uhubctl and got

# uhubctl
Current status for hub 1-1 [0424:9514, USB 2.00, 5 ports, ppps]
  Port 1: 0503 power highspeed enable connect [0424:ec00]
  Port 2: 0100 power
  Port 3: 0100 power
  Port 4: 0100 power
  Port 5: 0100 power
Current status for hub 1 [1d6b:0002 Linux 4.14.50-v7+ dwc_otg_hcd DWC OTG Controller 3f980000.usb, USB 2.00, 1 ports, ppps]
  Port 1: 0503 power highspeed enable connect [0424:9514, USB 2.00, 5 ports, ppps]

Then I did

# uhubctl -a off -l 1-1 -p 1
Current status for hub 1-1 [0424:9514, USB 2.00, 5 ports, ppps]
  Port 1: 0503 power highspeed enable connect [0424:ec00]

and lost access to my Raspi.

What did I do? Powered off my network card or what?

mvp commented 1 year ago

This cannot be Raspberry Pi 3B+ - it has different USB topology https://github.com/mvp/uhubctl#raspberry-pi-3b.

Your topology corresponds to Raspberry Pi 2B or 3B, which have 5 USB ports on one hub 1-1, first port being network (both wifi and Ethernet), and ports 2-5 all controlled by port 2 https://github.com/mvp/uhubctl#raspberry-pi-b2b3b.

mvp commented 1 year ago

Basically, don't turn network off unless you want to save some power and don't need network connection. To recover from this, simply reset your Pi power.

dims12 commented 1 year ago

Yes, sorry my revision is a02082.

How to turn off correct device then?

mvp commented 1 year ago

Please readme for Raspberry Pi. Note that for 2B or 3B you can control port 2 to turn off power on ports 2-5 all ot once. Unfortunately, RPI hardware doesn't support controlling power per port - nothing can do that, all ports are powered from the same source. Port 1 controls network, and is independent from other ports.