Last active
October 27, 2022 12:08
-
-
Save yumpy/f0747129740e062dc929e38b8e329cb4 to your computer and use it in GitHub Desktop.
To reset USB Hub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
This saved me a lot of headaches.
Built a script around it at https://github.com/netinvent/usb_resetter
Thanks again