GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
USBCONFIG(8) FreeBSD System Manager's Manual USBCONFIG(8)

usbconfig
configure the USB subsystem

usbconfig [
-u unit
] [
-a addr
] [
cmds...
]

usbconfig [
[
-d
] [ugen]<unit>.<addr>
] [
cmds...
]

The usbconfig utility is used to configure and dump information about the USB subsystem.
The options are as follows:
unit
Limit device range to USB devices connected to the given USBUS unit.
addr
Limit device range to the given USB device index. Should only be used in conjunction with the unit argument.
[ugen]<unit>.<addr>
Limit device range to USB devices connected to the given unit and address. The unit and address coordinates may be prefixed by the lowercased word "ugen".
Show help and available commands.
The following commands may be used with usbconfig:
cfg_index
Choose the configuration for the USB device. Valid values range from zero to the number reported as the bNumConfigurations in dump_device_desc output. The special value of 255 unconfigures the device, detaching the interface drivers and reducing the power consumption to minimum, but without going into power saving mode or detaching from the bus. In some cases, it prevents the device from charging.
alt_index
Choose the alternate interface for the USB device. Alternative settings for the current configuration are available as the bAlternateSetting in dump_curr_config_desc output. Usually there is no need to adjust this setting.
template
Set the global USB device side template. See usb_template(4) for more information.
Get the current USB device side template.
vid pid lo_rev hi_rev quirk_name
Add a quirk by specifying the Vendor ID, Product ID, low and high revision numbers, and the quirk name. See usb_quirk(4) for more information.
vid pid lo_rev hi_rev quirk_name
Remove a quirk.
quirk_name
Add quirk for the currently selected USB device.
quirk_name
Remove a quirk for the currently selected USB device.
Display the device and configuration descriptors.
Display the list of supported quirk names.
Display the list of current device quirks.
Display the device descriptor.
Display current configuration descriptor.
Display all the configuration descriptors.
index
Display string descriptor at selected index.
Display summary information about the device.
Display the list of interface drivers (such as ukbd(4) or u3g(4)) currently attached to the device.
Force the device to suspend.
Force the device to resume.
Turn the device off.
Turn the automatic suspend and resume on. This is the default for USB hubs.
Turn the device on and disable automatic suspend and resume. This is the default for non-hub devices.
Reset the device. This forces the USB stack to reenumerate the bus.
List all available USB devices. This is the default if usbconfig is called without specifying a command.
bmReqTyp bReq wVal wIdx wLen data...
Perform a synchronous control request on the specified device. See libusb20_dev_request_sync(3) for more information.

List all connected USB devices and their attached interface drivers:
usbconfig show_ifdrv
Dump device and configuration descriptors for device on USB bus 1 at address 2:
usbconfig ugen1.2 dump_all_desc
Dump HID descriptor for device on USB bus 1 at address 2:
usbconfig ugen1.2 do_request 0x81 0x06 0x2200 0 0x100
Power off the device on USB bus 1 at address 2:
usbconfig ugen1.2 power_off

usb(4), usb_quirk(4), usb_template(4)
April 29, 2018 FreeBSD 12.0-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.