

Sudo python reset_usb.py searchpci "search terms" : Search for PCI USB device using the search terms within the search string returned by listpci and reset matching device Sudo python reset_usb.py pathpci /sys/bus/pci/drivers/./XXXX:XX:XX.X : Reset PCI USB device using path Sudo python reset_usb.py listpci : List all PCI USB devices

Sudo python reset_usb.py search "search terms" : Search for USB device using the search terms within the search string returned by list and reset matching device

Sudo python reset_usb.py path /dev/bus/usb/XXX/YYY : Reset USB device using path /dev/bus/usb/XXX/YYY Sudo python reset_usb.py list : List all USB devices Usage: python reset_usb.py help : Show this help Sudo python reset_usb.py searchpci "search terms" # Search for PCI USB device using the search terms within the search string returned by listpci and reset matching device Sudo python reset_usb.py pathpci /sys/bus/pci/drivers/./XXXX:XX:XX.X # Reset PCI USB device using path /sys/bus/pci/drivers/./XXXX:XX:XX.X Sudo python reset_usb.py listpci # List all PCI USB devices Sudo python reset_usb.py search "search terms" # Search for USB device using the search terms within the search string returned by list and reset matching device Sudo python reset_usb.py path /dev/bus/usb/XXX/YYY # Reset USB device using path /dev/bus/usb/XXX/YYY Sudo python reset_usb.py list # List all USB devices Usage: python reset_usb.py help # Show this help Save the script below as reset_usb.py or clone this repo. I've created a Python script that simplifies the whole process based on answers here. If (fd and ids as found by running the lsusb command: $ sudo. Save the following as usbreset.c /* usbreset - send a USB port reset to a USB device */įprintf(stderr, "Usage: usbreset device-filename\n")
