usbconfig.8 (874108aed99d76099ff9eb6c8d830479a504c1ad) usbconfig.8 (cf109686d0a89f698ba59a65d3199bdfc151f88a)
1.\" $FreeBSD$
2.\"
1.\" $FreeBSD$
2.\"
3.\" Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
3.\" Copyright (c) 2008-2010 Hans Petter Selasky. All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\" notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\" notice, this list of conditions and the following disclaimer in the

--- 6 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\" notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\" notice, this list of conditions and the following disclaimer in the

--- 6 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.Dd November 1, 2009
26.Dd January 6, 2010
27.Dt USBCONFIG 8
28.Os
29.Sh NAME
30.Nm usbconfig
31.Nd configure the USB subsystem
32.Sh SYNOPSIS
33.Nm
34.Op Fl u Ar unit
35.Op Fl a Ar addr
36.Op cmds...
27.Dt USBCONFIG 8
28.Os
29.Sh NAME
30.Nm usbconfig
31.Nd configure the USB subsystem
32.Sh SYNOPSIS
33.Nm
34.Op Fl u Ar unit
35.Op Fl a Ar addr
36.Op cmds...
37.Nm
38.Op Fl d Ar [ugen]<unit>.<addr>
39.Op cmds...
37.Sh DESCRIPTION
38The
39.Nm
40utility is used to configure and dump information about the USB subsystem.
41.Pp
42The options are as follows:
43.Bl -tag -width " "
44.It Fl u Ar unit
45Limit device range to USB devices connected to the given USBUS unit.
46.It Fl a Ar addr
47Limit device range to the given USB device index.
48Should only be used in conjunction with the unit argument.
40.Sh DESCRIPTION
41The
42.Nm
43utility is used to configure and dump information about the USB subsystem.
44.Pp
45The options are as follows:
46.Bl -tag -width " "
47.It Fl u Ar unit
48Limit device range to USB devices connected to the given USBUS unit.
49.It Fl a Ar addr
50Limit device range to the given USB device index.
51Should only be used in conjunction with the unit argument.
52.It Fl d Ar [ugen]<unit>.<addr>
53Limit device range to USB devices connected to the given unit and address.
54The unit and address coordinates may be prefixed by the lowercased word "ugen".
49.It Fl h
50Show help and available commands.
51.El
52.Pp
53When called without options,
54.Nm
55prints a list of all available USB devices.
56.Sh EXAMPLES
57Show information about the device on USB bus 1 at address 2:
58.Pp
59.Dl usbconfig -u 1 -a 2 dump_info
55.It Fl h
56Show help and available commands.
57.El
58.Pp
59When called without options,
60.Nm
61prints a list of all available USB devices.
62.Sh EXAMPLES
63Show information about the device on USB bus 1 at address 2:
64.Pp
65.Dl usbconfig -u 1 -a 2 dump_info
66.Pp
67Dump HID descriptor for device on USB bus 1 at address 2:
68.Pp
69.Dl usbconfig -u 1 -a 2 do_request 0x81 0x06 0x2200 0 0x100
70.Pp
71Dump string descriptor at index Z for device on USB bus 1 at address 2:
72.Pp
73.Dl usbconfig -u 1 -a 2 dump_string Z
74.Pp
75Dump current configuration descriptor for device on USB bus 1 at address 2:
76.Pp
77.Dl usbconfig -u 1 -a 2 dump_curr_config_desc
78.Pp
79Dump device descriptor for device on USB bus 1 at address 2:
80.Pp
81.Dl usbconfig -u 1 -a 2 dump_device_desc
82.Pp
83Program the device on USB bus 1 at address 2 to suspend, resume, power off, go into power save, or power on:
84.Pp
85.Dl usbconfig -u 1 -a 2 suspend
86.Dl usbconfig -u 1 -a 2 resume
87.Dl usbconfig -u 1 -a 2 power_off
88.Dl usbconfig -u 1 -a 2 power_save
89.Dl usbconfig -u 1 -a 2 power_on
90.Pp
91Display a list of available quirk names:
92.Pp
93.Dl usbconfig dump_quirk_names
94.Pp
60.Sh SEE ALSO
61.Xr usb 4
95.Sh SEE ALSO
96.Xr usb 4