I'm running into a similar issue with an HP Zbook Studio G4 running Ubuntu 18.04, HP Thunderbolt 3 dock and an IOGEAR 3.0/4 Port Peripheral Sharing Switch (GUS434). Often shortly after I switch back to the HP using the USB switch I get the xHCI host controller not responding, assume dead message. Based on Oded's input above I created the following service to fix it for me:
/lib/systemd/system/xhci-watch.service
```
[Unit]
Description=Restart xhci when it dies
obviously this is an ugly hack, but it might help some while a better fix is developed. My bash/awk skills are not the best, so please feel free to offer suggestions for improvement
I'm running into a similar issue with an HP Zbook Studio G4 running Ubuntu 18.04, HP Thunderbolt 3 dock and an IOGEAR 3.0/4 Port Peripheral Sharing Switch (GUS434). Often shortly after I switch back to the HP using the USB switch I get the xHCI host controller not responding, assume dead message. Based on Oded's input above I created the following service to fix it for me:
/lib/systemd/ system/ xhci-watch. service
```
[Unit]
Description=Restart xhci when it dies
[Service] /path/to/ restart- xhci.sh
ExecStart=
[Install] multi-user. target
WantedBy=
```
script:
/xhci_ hcd.*dead/ {
system( "sleep 1");
device= substr( $7, 1, length($7)-1);
```
#!/bin/bash
dmesg -l err -w -T | awk -F " " '
}'
```
obviously this is an ugly hack, but it might help some while a better fix is developed. My bash/awk skills are not the best, so please feel free to offer suggestions for improvement