Coder Social home page Coder Social logo

usb-reset's Introduction

usb-reset

This is usb-reset, which allows you to easily perform a bus reset on a USB device using its vendor and product ID.

If the device has got confused, this may sort it out.

Usage

Reset a single device:

sudo usb-reset 0328:6f51

Reset all USB devices in one go, for even easier operation:

sudo usb-reset -a

This option does not reset USB hubs (to avoid interfering with internal hubs), if you need to reset a hub you should specify the vendor and product ID as above.

Installing

The latest source can be found at:

https://github.com/ralight/usb-reset

It only depends on libusb 1.0 and should compile anywhere libusb is supported.

On systems where snaps are supported, usb-reset can be installed from the Ubuntu Store. On Ubuntu 15.10 and earlier, or on other systems, you may need to install snapd first.

Get it from the Snap Store

History

usb-reset was inspired by the Ubuntu Podcast episode S10E20 where a piece of code was described that did the same thing but based on usb bus and device numbers, which sounded like a pain. Getting the snap working took longer than writing the code.

usb-reset's People

Contributors

ralight avatar

Stargazers

Catsmimi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.