Skip to content

Instantly share code, notes, and snippets.

@tomlankhorst
Created October 31, 2020 09:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomlankhorst/4f1713cbec89685e1123e5c973530061 to your computer and use it in GitHub Desktop.
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
#!/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