Power-Off Ubertooth Device on Raspberry 4
Hi, I was dealing with powering off the ubertooth devices on raspberry 4 and I came across with an issue, here is the problem:
I have an ubertooth on port 1-1.4

Here is the output of uhubctl command

I am powering off the device, and red light turns off


Here is the problem
The part I am not understanding is that : I do not know why 2 yellow leds still active although I powered the device off. Also when I plug my mobile phone it keeps charging on that powered off port.
This is the output of lsusb showing that I can per-port switching on 1-1,

And this is the output of my bootloader version of raspberry since raspberry needs an update for uhubctl.

If you help me I would be appreciated . Thanks in advance
Problem here is that your attempt to turn power off on hub 1-1 doesn't automatically do the same on hub 2 (its dual device). Without this, vbus will not turn off.
Questions:
- Did you upgrade RPi firmware? vl805 firmware must be 00137ac or later.
- Did you build uhubctl from master branch? Older binary might not have proper handling for dual devices.
- Can you please provide container id for RPi 4 USB 2.1 4 port hub? You can find it by looking at
sudo lsusb -voutput, check for container id line.
Workarounds:
It should work if you turn power off/on by 2 commands:
uhubctl -e -l 1-1 -p 4 -a 0
uhubctl -e -l 2 -p 4 -a 0
Possible reasons:
My bet is that container id for dual device is not hardcoded, and might change across models or device batches. I may need to use different hack to make work reliably.
Here is the vl805 firmware update code I used

Output of code update script

Yes, I used latest master version of uhubctl binary.
Output of lsusb -v command container ID:

I tried what you suggested

It is still not working unfortunately

Your container id shows correctly.
But your firmware still shows 13701 in your picture. It should be 137ac or more.
If fixing firmware version doesn't help, try turning off all 4 ports. That said, turn off port 4 should kill power to all 4 ports anyway.
I guess I correctly updated the firmware. But still red led turns off but other 2 yellow led still do not turn off. Since I am not sure, should vl805 software binary be in a specific folder or something to be able to execute properly?

As you said when I turn off all 4 ports it works. Unfortunately I need my other 3 ports
You last picture was showing vl805 firmware as 13701. Does it show newer than that now?
As for using ports separately, it is not possible - it's Raspberry Pi 4 hardware limitation as described in FAQ. Closest you can get to this if you downgrade to Raspberry Pi 3B+ - the only model that supports true per-port power switching on 2 out of 4 ports. However, you lose USB 3 support, and get slower hardware.
Alternatively, you can obtain any external hub from supported list, connect your devices via such hub and control power as you wish.
Yes I have 137ac now as seen in last picture. I guess I will need external hub. Thanks for your help!