e7d / usbreset

A simple, yet efficient, program to reset any Linux USB device.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

usbreset

A simple, yet efficient, program to reset any Linux USB device.

Original idea by Alan Stern.

How-To

  1. Compile:
$ cc usbreset.c -o usbreset
  1. Ensure the compiled program is executable:
$ chmod +x usbreset
  1. Execute the program to find the Bus and Device ID of the USB device you want to reset:
$ ./usbreset
Usage: usbreset <Bus> <Device>

Available USB devices:
Bus 001 Device 014: ID 0fd9:006c Elgato Systems GmbH Stream Deck XL  
  1. Execute the program again, this time passing the found Bus and Device as parameter:
$ sudo ./usbreset 001 014
Resetting USB device /dev/bus/usb/001/014
Reset successful

About

A simple, yet efficient, program to reset any Linux USB device.

License:MIT License


Languages

Language:C 100.0%