Skip to content

Instantly share code, notes, and snippets.

@mikeesto
Last active September 21, 2022 04:19
Show Gist options
  • Save mikeesto/c9b3420547458800b37e6f528545caec to your computer and use it in GitHub Desktop.
Save mikeesto/c9b3420547458800b37e6f528545caec to your computer and use it in GitHub Desktop.
Reset USB ports on Raspberry Pi (useful for USB audio)

Reset USB ports on Raspberry Pi on boot

Add to /etc/rc.local:

# To shut off power on USB ports (this shuts power on ethernet as well):
echo '1-1' | tee /sys/bus/usb/drivers/usb/unbind

# To turn power back on
echo '1-1' | tee /sys/bus/usb/drivers/usb/bind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment