USBCONFIG(8) | MidnightBSD System Manager's Manual | USBCONFIG(8) |
usbconfig
—
configure the USB subsystem
usbconfig |
[-u unit]
[-a addr]
[-i interface_index]
[-v ] [cmds...] |
usbconfig |
-d
[[/dev/]ugen]<unit>.<addr>
[-i interface_index]
[-v ] [cmds...] |
The usbconfig
utility is used to configure
and dump information about the USB subsystem.
The options are as follows:
-u
unit-a
addr-d
[[/dev/]ugen]<unit>.<addr>-h
-i
interface_index-v
dump_device_desc
,
dump_curr_config_desc
, and
show_ifdrv
commands (“verbose
mode”).The following commands may be used with
usbconfig
:
set_config
cfg_indexdump_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.set_alt
alt_indexdump_curr_config_desc
output. Usually there is no
need to adjust this setting. This command uses the
-i
interface_index
option.set_template
templateget_template
add_dev_quirk_vplh
vid pid
lo_rev hi_rev
quirk_nameremove_dev_quirk_vplh
vid pid
lo_rev hi_rev
quirk_nameadd_quirk
quirk_nameremove_quirk
quirk_namedump_all_desc
dump_quirk_names
dump_device_quirks
dump_device_desc
dump_curr_config_desc
dump_all_config_desc
dump_string
indexdump_info
dump_stats
show_ifdrv
detach_kernel_driver
-i
interface_index option.suspend
resume
power_off
power_save
power_on
reset
list
usbconfig
is called without specifying a
command.do_request
bmReqTyp bReq
wVal wIdx
wLen data...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
December 21, 2021 | midnightbsd-3.1 |