https://github.com/mcarans/resetusb
List USB devices and reset a USB device from the command line
https://github.com/mcarans/resetusb
reset usb-devices usb-reset usb-resetter
Last synced: 9 months ago
JSON representation
List USB devices and reset a USB device from the command line
- Host: GitHub
- URL: https://github.com/mcarans/resetusb
- Owner: mcarans
- License: mit
- Created: 2018-01-24T15:06:21.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-06-19T03:59:10.000Z (about 3 years ago)
- Last Synced: 2025-04-12T07:25:19.619Z (about 1 year ago)
- Topics: reset, usb-devices, usb-reset, usb-resetter
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 110
- Watchers: 13
- Forks: 39
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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