Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] [Orange Pi A20] USB power shutdown? (armbian, 4.x.x)

Featured Replies

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.

  • Author
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.

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 :)

  • Author

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...

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.