воскресенье, 17 июля 2016 г.

Restart a USB device from command line

How to restart a USB device from command line?

aka

How to restart a USB device without hardware operations?

Step 1. Find a device to restart

% usbconfig
Find the line according to the device to restart by its name (specified in the cornet brackets). Then find the sub string at the beginning of the found line. It will look like ugenU.A (in the example above: ugen0.3) if U is kinda bus number and A kinda port number.

Step 2. Restart the device

% usbconfig -u 0 -a 3 power_off
% usbconfig -u 0 -a 3 power_on
That's all. Thank you for reading.

Комментариев нет:

Отправить комментарий