GithubHelp home page GithubHelp logo

usb_reset's Introduction

usb_reset

A simple macOS command line utility to re-enumerate a USB device. Essentially, this utility will simulate unplugging and replugging of a USB device. This is (somewhat) useful in the case of USB devices that become unresponsive, essentially forcing the OS to reload a device's driver. Note that this may not work under every circumstances (I once had an issue with a keyboard where nothing short of physically unplugging and replugging the device would bring it back to life), but can fix a somewhat wide variety of small issue.

This software is provided as-is, and I cannot be held responsible for any damage, either to your software or hardware, that might happen following your usage. But I've used extensively to force-reload the drivers of various USB devices and never encountered any damage. YMMV.

Install

Compile through XCode. Put it wherever makes sense for you (ideally, in your PATH, I guess).

Usage

Usage is pretty straightforward. The program expects to receive the vendor ID as well as the product ID. The ids can be gathered from System Information in the USB tab, or whatever other way you can get those values.

usb_reset -v 0x0000 -p 0x0000

usb_reset's People

Contributors

jufaua avatar

Watchers

James Cloos avatar  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.