lukaszjokiel Posted February 26, 2017 Posted February 26, 2017 Is it possible to shut down power to a particular USB port? I have a sensor that is using USB also to power itself. I don't need it running all the time - hence - I'd like to turn it off.
tkaiser Posted February 26, 2017 Posted February 26, 2017 Works on some boards, on others not (even if wrongly declared in fex file). For details please see https://forum.armbian.com/index.php/topic/1631-tutorial-marriage-between-a20-and-h3-ups-mode-sunxi-pio-utility/ 1
lukaszjokiel Posted February 26, 2017 Author Posted February 26, 2017 Thanks, that would be another plus over RPi B+ - where it does not work... Diving into the thread, thanks!
lukaszjokiel Posted February 26, 2017 Author Posted February 26, 2017 WORKS on Orange Pi with A20 CPU! [ 6147.974310] usbcore: registered new interface driver usbserial [ 6147.974431] usbcore: registered new interface driver usbserial_generic [ 6147.974545] usbserial: USB Serial support registered for generic [ 6147.987223] usbcore: registered new interface driver ch341 [ 6147.987369] usbserial: USB Serial support registered for ch341-uart [ 6147.987504] ch341 1-1.4:1.0: ch341-uart converter detected [ 6147.995354] usb 1-1.4: ch341-uart converter now attached to ttyUSB0 root@orangepi:~# sunxi-pio -m PH26'<1><0><default><0>' [19291.117183] usb 1-1: USB disconnect, device number 2 [19291.117207] usb 1-1.4: USB disconnect, device number 3 root@orangepi:~# sunxi-pio -m PH26'<1><0><default><1>' [19302.506325] usb 1-1: new high-speed USB device number 4 using ehci-platform [19302.696925] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101 [19302.696944] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [19302.696954] usb 1-1: Product: USB 2.0 Hub [19302.698312] hub 1-1:1.0: USB hub found [19302.698584] hub 1-1:1.0: 4 ports detected [19303.016366] usb 1-1.4: new full-speed USB device number 5 using ehci-platform [19303.167800] usb 1-1.4: New USB device found, idVendor=1a86, idProduct=7523 [19303.167823] usb 1-1.4: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [19303.167833] usb 1-1.4: Product: USB2.0-Serial [19303.169292] ch341 1-1.4:1.0: ch341-uart converter detected [19303.171908] usb 1-1.4: ch341-uart converter now attached to ttyUSB0 Thanks @tkaiser, I'll put it in the blog, and investigate Zero, One and Lite. 1
tkaiser Posted February 26, 2017 Posted February 26, 2017 Thanks, that would be another plus over RPi B+ - where it does not work... Diving into the thread, thanks! Just for the record: On all RPi models with integrated USB hub you can at least switch off/on all USB ports entirely: please search for 'buspower' here: https://forum.armbian.com/index.php/topic/1748-sbc-consumptionperformance-comparisons/ WORKS on Orange Pi with A20 CPU! Thanks for confirming. That is good to know that even in this regard Steven's (Xunlong) Banana Pi 'clone' is better than the original
lukaszjokiel Posted February 26, 2017 Author Posted February 26, 2017 I've checked only the method per port on RPi B+ but it didn't work - and from what I glanced from your link - it kills also Ethernet, which is not what I want.PS: Bonus question - can you point me to turning off power for Orange Pi ? I don't need that eating power...
Recommended Posts