Created
January 1, 2026 10:51
-
-
Save kekneus373/f12957668765d0508b4febafb06bcad3 to your computer and use it in GitHub Desktop.
Fix "xHCI host controller not responding, assume dead" w/o rebooting
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
| #!/usr/bin/env bash | |
| # Re-run the script as root if not already running as root | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "This script requires root. Re-running with sudo..." | |
| exec sudo "$0" "$@" | |
| fi | |
| ID="0000:00:14.0" # your controller id; look for ID with `sudo ls /sys/bus/pci/drivers/xhci_hcd/` (SUDO REQUIRED) | |
| echo "Unbinding xHCI controller #$ID..." # fix bluetooth and usb disappearing | |
| echo -n "$ID" > /sys/bus/pci/drivers/xhci_hcd/unbind | |
| echo "Binding #$ID back..." | |
| echo -n "$ID" > /sys/bus/pci/drivers/xhci_hcd/bind | |
| # SOURCEs: https://bbs.archlinux.org/viewtopic.php?pid=1782456#p1782456; https://techoverflow.net/2021/09/16/how-i-fixed-xhci-host-controller-not-responding-assume-dead/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment