usbconfig.8 (912280b4b4bb73550319bb860aa3d3b641e1ddfe) | usbconfig.8 (41adbaa596765145392ca1b560940dcc495ef445) |
---|---|
1.\" $FreeBSD$ 2.\" 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 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.\" | 1.\" $FreeBSD$ 2.\" 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 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 April 17, 2018 | 26.Dd April 29, 2018 |
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 --- 106 unchanged lines hidden (view full) --- 141is called without specifying a command. 142.It Cm do_request Ar bmReqTyp Ar bReq Ar wVal Ar wIdx Ar wLen Ar data... 143Perform a synchronous control request on the specified device. 144See 145.Xr libusb20_dev_request_sync 3 146for more information. 147.El 148.Sh EXAMPLES | 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 --- 106 unchanged lines hidden (view full) --- 141is called without specifying a command. 142.It Cm do_request Ar bmReqTyp Ar bReq Ar wVal Ar wIdx Ar wLen Ar data... 143Perform a synchronous control request on the specified device. 144See 145.Xr libusb20_dev_request_sync 3 146for more information. 147.El 148.Sh EXAMPLES |
149Show information about the device on USB bus 1 at address 2: | 149List all connected USB devices and their attached interface drivers: |
150.Pp | 150.Pp |
151.Dl usbconfig -d ugen1.2 dump_info | 151.Dl usbconfig show_ifdrv |
152.Pp | 152.Pp |
153Dump HID descriptor for device on USB bus 1 at address 2: | 153Dump device and configuration descriptors for device on USB bus 1 at address 2: |
154.Pp | 154.Pp |
155.Dl usbconfig -d ugen1.2 do_request 0x81 0x06 0x2200 0 0x100 | 155.Dl usbconfig ugen1.2 dump_all_desc |
156.Pp | 156.Pp |
157Dump string descriptor at index Z for device on USB bus 1 at address 2: | 157Dump HID descriptor for device on USB bus 1 at address 2: |
158.Pp | 158.Pp |
159.Dl usbconfig -d ugen1.2 dump_string Z | 159.Dl usbconfig ugen1.2 do_request 0x81 0x06 0x2200 0 0x100 |
160.Pp | 160.Pp |
161Dump current configuration descriptor for device on USB bus 1 at address 2: | 161Power off the device on USB bus 1 at address 2: |
162.Pp | 162.Pp |
163.Dl usbconfig -d ugen1.2 dump_curr_config_desc 164.Pp 165Dump device descriptor for device on USB bus 1 at address 2: 166.Pp 167.Dl usbconfig -d ugen1.2 dump_device_desc 168.Pp 169Program the device on USB bus 1 at address 2 to suspend, resume, power off, go into power save, or power on: 170.Pp 171.Dl usbconfig -d ugen1.2 suspend 172.Dl usbconfig -d ugen1.2 resume 173.Dl usbconfig -d ugen1.2 power_off 174.Dl usbconfig -d ugen1.2 power_save 175.Dl usbconfig -d ugen1.2 power_on | 163.Dl usbconfig ugen1.2 power_off |
176.Sh SEE ALSO 177.Xr usb 4 , 178.Xr usb_quirk 4 , 179.Xr usb_template 4 | 164.Sh SEE ALSO 165.Xr usb 4 , 166.Xr usb_quirk 4 , 167.Xr usb_template 4 |