I have a quick question.
Using the following code I found in another topic on this forum, I am able to successfully cut power to a USB device on my Raspberry Pi Zero W:
Code: Select all
echo 0 > /sys/devices/platform/soc/20980000.usb/buspower sleep 5 echo 1 > /sys/devices/platform/soc/20980000.usb/buspower
I was under the impression it should stay off until the echo 1 command is sent.
Am I doing something wrong?
Does anyone know how to cut power for 5 seconds?
I have a USB device that freezes, and would like to automate unplugging/replugging to save me the tedious exercise of doing so manually each day