USB power - how to turn off and on again from command-line

Is there a way how to turn off and on USB power (remotely, command-line)? In order to restart USB connected device.

I have searched this forum, read https://openwrt.org/docs/guide-user/hardware/usb.overview and https://forum.archive.openwrt.org/viewtopic.php?id=44909 , but those did not work on Omnia. Couldn’t find the right GPIO.

Any idea?

No idea? I tried multiple other recommendations, but still no luck :frowning:

Just landed on this page, would love to know the answer to this question too

1 Like

Hello,
I’ve been using the following cmd (TOS 6.3.3) :

  • “Unplug” : echo “5-1” > /sys/bus/usb/drivers/usb/unbind
  • “Plug” : echo “5-1” > /sys/bus/usb/drivers/usb/bind

for my case “5-1” is the usb located at the back of the turris omnia, but not sure if it’s always the case.
that ID can be confirmed with the cmd “dmesg” after pluging in the usb device.

Hope it help.
best regards.

2 Likes