Skip to content
List USB devices and reset a USB device from the command line
Python
Branch: master
Clone or download
Latest commit c24460e Jan 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jan 24, 2018
LICENSE Initial commit Jan 24, 2018
README.md Reset USB Jan 24, 2018
reset_usb.py Reset USB Jan 24, 2018

README.md

List USB devices and reset one of them from command line

Usage:

python reset_usb.py help : Show this help
sudo python reset_usb.py list : List all USB devices
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 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 listpci : List all PCI USB devices
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 searchpci "search terms" : Search for PCI USB device using the search terms within the search string returned by listpci and reset matching device       
You can’t perform that action at this time.