2016年4月5日星期二

Reset all USB Device in Linux

You can try the script below:

reference from

http://billauer.co.il/blog/2013/02/usb-reset-ehci-uhci-linux/

#!/bin/bash

# USB drivers
rmmod xhci_pci
rmmod ehci_pci

# uncomment if you have firewire
#rmmod ohci_pci

modprobe xhci_pci
modprobe ehci_pci

# uncomment if you have firewire
#modprobe ohci_pci

------------------------------------------------------------------------------------

I used the one on SME Linux Server

#!/bin/bash

# Stop USB Drivers
rmmod uhci_hcd
rmmod ehci_hcd

# Start USB Drivers
modprobe xhci_hcd
modprobe ehci_hcd

沒有留言: