Skip to content

Instantly share code, notes, and snippets.

View yumpy's full-sized avatar

Jan Varga yumpy

  • 8ft0
  • Sydney, Australia
View GitHub Profile
@yumpy
yumpy / reset-usb.txt
Last active October 27, 2022 12:08
To reset USB Hub
# from: https://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line
#
# This will reset all of USB1/2/3 attached ports[1]:
#
for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do
echo "${i##*/}" > "${i%/*}/unbind"
echo "${i##*/}" > "${i%/*}/bind"
done