mvp / uhubctl

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

Add CalDigit TS4 to supported device list #530

Closed pedropombeiro closed 1 year ago

pedropombeiro commented 1 year ago
$ hubctl
Current status for hub 2-1.1.1.3 [0451:8442 94050089C998, USB 2.10, 6 ports, ppps]
  Port 1: 0503 power highspeed enable connect [046d:085b Logitech Webcam C925e 48D65C5F]
  Port 2: 0103 power enable connect [0fd9:0070 Elgato Systems Elgato Wave:3 BS12L1A02198]
  Port 3: 0100 power
  Port 4: 0100 power
  Port 5: 0503 power highspeed enable connect [0451:82ff]
  Port 6: 0503 power highspeed enable connect [0451:82ee]
Current status for hub 2-2.4.1.3 [0451:8440, USB 3.20, 4 ports, ppps]
  Port 1: 06a0 power Rx.Detect
  Port 2: 06a0 power Rx.Detect
  Port 3: 06a0 power Rx.Detect
  Port 4: 06a0 power Rx.Detect
Current status for hub 2-1.1.2 [2188:5512 CalDigit, Inc TS4 USB2.0 HUB, USB 2.01, 5 ports, ppps]
  Port 1: 0503 power highspeed enable connect [0fd9:006c]
  Port 2: 0103 power enable connect [3496:0006 Keyboardio Model 100 6564B2881339]
  Port 3: 0100 power
  Port 4: 0100 power
  Port 5: 0100 power
Current status for hub 2-1.1.1 [2188:5511 CalDigit, Inc TS4 USB2.0 HUB, USB 2.01, 4 ports, ppps]
  Port 1: 0503 power highspeed enable connect [1a40:0101 USB 2.0 Hub, USB 2.00, 4 ports, ganged]
  Port 2: 0103 power enable connect [2b04:c006 Particle Photon 3a0027000351353530373132]
  Port 3: 0503 power highspeed enable connect [0451:8442 94050089C998, USB 2.10, 6 ports, ppps]
  Port 4: 0103 power enable connect [2188:6536 CalDigit,Inc. CalDigit TS4 Audio - Rear]
Current status for hub 2-2.4.2 [2188:5502 CalDigit, Inc TS4 USB3.2 Gen2 HUB, USB 3.20, 4 ports, ppps]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 2-2.4.1 [2188:5501 CalDigit, Inc TS4 USB3.2 Gen2 HUB, USB 3.20, 4 ports, ppps]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 0203 power 5gbps U0 enable connect [0451:8440, USB 3.20, 4 ports, ppps]
  Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 2-1.1 [2188:5510 CalDigit, Inc TS4 USB2.0 HUB, USB 2.01, 5 ports, ppps]
  Port 1: 0503 power highspeed enable connect [2188:5511 CalDigit, Inc TS4 USB2.0 HUB, USB 2.01, 4 ports, ppps]
  Port 2: 0503 power highspeed enable connect [2188:5512 CalDigit, Inc TS4 USB2.0 HUB, USB 2.01, 5 ports, ppps]
  Port 3: 0100 power
  Port 4: 0100 power
  Port 5: 0103 power enable connect [2188:7112]
Current status for hub 2-2.4 [2188:5500 CalDigit, Inc TS4 USB3.2 Gen2 HUB, USB 3.20, 4 ports, ppps]
  Port 1: 0203 power 5gbps U0 enable connect [2188:5501 CalDigit, Inc TS4 USB3.2 Gen2 HUB, USB 3.20, 4 ports, ppps]
  Port 2: 0203 power 5gbps U0 enable connect [2188:5502 CalDigit, Inc TS4 USB3.2 Gen2 HUB, USB 3.20, 4 ports, ppps]
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 2-2 [8087:0b40 Intel Corporation. USB3.0 Hub, USB 3.20, 4 ports, ppps]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 0203 power 5gbps U0 enable connect [2188:5500 CalDigit, Inc TS4 USB3.2 Gen2 HUB, USB 3.20, 4 ports, ppps]
Current status for hub 2-1 [2188:5802 CalDigit, Inc. TS4 USB2.0 Hub, USB 2.10, 5 ports, ppps]
  Port 1: 0503 power highspeed enable connect [2188:5510 CalDigit, Inc TS4 USB2.0 HUB, USB 2.01, 5 ports, ppps]
  Port 2: 0100 power
  Port 3: 0303 power lowspeed enable connect [0451:ace1 Texas Instruments Inc TPS DMC Family B39F331616D20196D047C64B81797AA]
  Port 4: 0100 power
  Port 5: 0100 power
mvp commented 1 year ago

Can you please provide some evidence that it supports true vbus control per each port?

pedropombeiro commented 1 year ago

Can you please provide some evidence that it supports true vbus control per each port?

I'm using the app to turn off power to my Elgato Stream Deck, which shuts down the display in response. Is that sufficient evidence, or should I test something else?

pedropombeiro commented 1 year ago

I also tested cycling the power to my mechanical keyboard, and could the its lights turn off and then on as if I had unplugged the cable and back in:

$ uhubctl --action cycle -l 2-1.1.2 -p 2
Current status for hub 2-1.1.2 [2188:5512 CalDigit, Inc TS4 USB2.0 HUB, USB 2.01, 5 ports, ppps]
  Port 2: 0103 power enable connect [3496:0006 Keyboardio Model 100 6564B2881339]
Sent power off request
New status for hub 2-1.1.2 [2188:5512 CalDigit, Inc TS4 USB2.0 HUB, USB 2.01, 5 ports, ppps]
  Port 2: 0000 off
Current status for hub 2-1.1.2 [2188:5512 CalDigit, Inc TS4 USB2.0 HUB, USB 2.01, 5 ports, ppps]
  Port 2: 0000 off
Sent power on request
New status for hub 2-1.1.2 [2188:5512 CalDigit, Inc TS4 USB2.0 HUB, USB 2.01, 5 ports, ppps]
  Port 2: 0100 power
mvp commented 1 year ago

Good test is phone that stops charging when you turn power off to that port.

pedropombeiro commented 1 year ago

@mvp The fact that the Stream Deck shut down the display with the command made me think that it actually powered off the port, but I did the test and the phone still charges even after the command was sent to turn off the power to that port (even with repeat and wait options). I'll close this PR then, thanks for the help.