Skip to content

Instantly share code, notes, and snippets.

@turingbirds
Created October 31, 2014 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turingbirds/3cb9e64df0c09f5ffda6 to your computer and use it in GitHub Desktop.
Save turingbirds/3cb9e64df0c09f5ffda6 to your computer and use it in GitHub Desktop.
usbreset.c

usbreset.c

Due to Alan Stern1.

List your USB devices

or use the dev node:

(list the bus IDs)

(list the device IDs)

Compile

Compile ANSI C code:

If necessary, make the binary executable:

Execute the program

With the bus + device ID that you selected, execute the program as a superuser:

The code


  1. http://marc.info/?l=linux-usb&m=121459435621262&w=2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment