NAME
usbconfig —
configure the USB subsystem
SYNOPSIS
usbconfig |
[-u unit]
[-a addr] [cmds...] |
usbconfig |
[-d
[ugen]<unit>.<addr>] [cmds...] |
DESCRIPTION
Theusbconfig utility is used to configure and dump
information about the USB subsystem.
The options are as follows:
-uunit- Limit device range to USB devices connected to the given USBUS unit.
-aaddr- Limit device range to the given USB device index. Should only be used in conjunction with the unit argument.
-d[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".
-h- Show help and available commands.
When called without options, usbconfig
prints a list of all available USB devices.
EXAMPLES
Show information about the device on USB bus 1 at address 2:
usbconfig -u 1 -a 2
dump_infoDump HID descriptor for device on USB bus 1 at address 2:
usbconfig -u 1 -a 2 do_request 0x81
0x06 0x2200 0 0x100Dump string descriptor at index Z for device on USB bus 1 at address 2:
usbconfig -u 1 -a 2 dump_string
ZDump current configuration descriptor for device on USB bus 1 at address 2:
usbconfig -u 1 -a 2
dump_curr_config_descDump device descriptor for device on USB bus 1 at address 2:
usbconfig -u 1 -a 2
dump_device_descProgram the device on USB bus 1 at address 2 to suspend, resume, power off, go into power save, or power on:
usbconfig -u 1 -a 2
suspendusbconfig -u 1 -a 2
resumeusbconfig -u 1 -a 2
power_offusbconfig -u 1 -a 2
power_saveusbconfig -u 1 -a 2
power_onDisplay a list of available quirk names:
usbconfig
dump_quirk_namesSee usb_quirk(4) for more information on quirks.