Skip to content

Instantly share code, notes, and snippets.

@jadwigo
Created October 14, 2025 14:02
Show Gist options
  • Select an option

  • Save jadwigo/c2fff75bb1cdbb4b2c11ac59429c2891 to your computer and use it in GitHub Desktop.

Select an option

Save jadwigo/c2fff75bb1cdbb4b2c11ac59429c2891 to your computer and use it in GitHub Desktop.
Reset USB devices from the commandline

Reset USB devices from the commandline

For people who use USB webcam on ubuntu or another linux, those cameras can get lost in powersave mode and then are unresponsive.

You can unplug it and reconnect it to get the camera back, but that's kind of hard to do when you're remote.

To do it remote you can login to the console of the machine

  • use the command usbreset to get a list of the USB devices
  • then usbreset 001/001 for example to reset a device that is located on that bus number.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment