<div dir="ltr">it may be handy to some people, so here is my usb restart script:<br><br><br>=====  cat /root/scripts/usb_restart ====<br>#! /bin/bash<br><br>echo &quot;please do the following:&quot;<br><br>for i in $(lspci|grep &quot;USB controller&quot;|awk &#39;{print $1}&#39;) ; do echo echo &quot;0000:&quot;$i &quot;|&quot; sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind ; echo echo &quot;0000:&quot;$i &quot;|&quot; sudo tee /sys/bus/pci/drivers/ehci_hcd/bind; done<br>

<br>====================================<br><br><br>this script does not actually do the restart, just tells you what to do, on my server it is:<br><br>please do the following:<br>echo 0000:00:1a.0 | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind<br>

echo 0000:00:1a.0 | sudo tee /sys/bus/pci/drivers/ehci_hcd/bind<br>echo 0000:00:1d.0 | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind<br>echo 0000:00:1d.0 | sudo tee /sys/bus/pci/drivers/ehci_hcd/bind<br>echo 0000:01:00.4 | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind<br>

echo 0000:01:00.4 | sudo tee /sys/bus/pci/drivers/ehci_hcd/bind<br><br><br><br>if you want it to really do it, not just tell you what (not tested, may be a typo):<br>for i in $(lspci|grep &quot;USB controller&quot;|awk &#39;{print $1}&#39;) ; do echo &quot;0000:&quot;$i | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind ; echo &quot;0000:&quot;$i | sudo tee /sys/bus/pci/drivers/ehci_hcd/bind; done<br>

<br><br></div>