Created
October 31, 2020 09:24
-
-
Save tomlankhorst/4f1713cbec89685e1123e5c973530061 to your computer and use it in GitHub Desktop.
Re-bind XHCI driver to make USB devices responsive again after a wakeup. https://tomlankhorst.nl/unresponsive-usb-unbind-bind-linux
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
#!/bin/bash | |
# See https://tomlankhorst.nl/unresponsive-usb-unbind-bind-linux | |
DEV=${1:-0000:06:00.3} | |
echo $DEV | sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind | |
sleep 1 | |
echo $DEV | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment