https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/lsusb&feed=atom&action=history
Comandos de la terminal/lsusb - Historial de revisiones
2024-03-28T13:29:07Z
Historial de revisiones para esta página en el wiki
MediaWiki 1.32.1
https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/lsusb&diff=5373&oldid=prev
Rrc en 19:11 18 abr 2014
2014-04-18T19:11:38Z
<p></p>
<p><b>Página nueva</b></p><div>__NOTOC__<br />
* [[:#lsusb| lsusb]]<br />
<br />
== lsusb ==<br />
<br />
<syntaxhighlight lang="bash"><br />
<br />
[root@Llawyr ~]# lsusb --help<br />
Usage: lsusb [options]...<br />
List USB devices<br />
-v, --verbose<br />
Increase verbosity (show descriptors)<br />
-s [[bus]:][devnum]<br />
Show only devices with specified device and/or<br />
bus numbers (in decimal)<br />
-d vendor:[product]<br />
Show only devices with the specified vendor and<br />
product ID numbers (in hexadecimal)<br />
-D device<br />
Selects which device lsusb will examine<br />
-t, --tree<br />
Dump the physical USB device hierarchy as a tree<br />
-V, --version<br />
Show version of program<br />
-h, --help<br />
Show usage and help<br />
<br />
[root@Llawyr ~]# lsusb --version<br />
lsusb (usbutils) 007<br />
<br />
[root@Llawyr ~]# lsusb<br />
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub<br />
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 001 Device 005: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader<br />
Bus 001 Device 004: ID 1bcf:2885 Sunplus Innovation Technology Inc. ASUS Webcam<br />
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub<br />
Bus 003 Device 002: ID 17ef:600e Lenovo <br />
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
<br />
[root@Llawyr ~]# lsusb -v<br />
<br />
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub<br />
Device Descriptor:<br />
bLength 18<br />
bDescriptorType 1<br />
bcdUSB 2.00<br />
bDeviceClass 9 Hub<br />
bDeviceSubClass 0 Unused<br />
bDeviceProtocol 1 Single TT<br />
bMaxPacketSize0 64<br />
idVendor 0x8087 Intel Corp.<br />
idProduct 0x0024 Integrated Rate Matching Hub<br />
bcdDevice 0.00<br />
iManufacturer 0 <br />
iProduct 0 <br />
iSerial 0 <br />
bNumConfigurations 1<br />
Configuration Descriptor:<br />
bLength 9<br />
bDescriptorType 2<br />
wTotalLength 25<br />
bNumInterfaces 1<br />
bConfigurationValue 1<br />
iConfiguration 0 <br />
bmAttributes 0xe0<br />
Self Powered<br />
Remote Wakeup<br />
MaxPower 0mA<br />
Interface Descriptor:<br />
bLength 9<br />
bDescriptorType 4<br />
bInterfaceNumber 0<br />
bAlternateSetting 0<br />
bNumEndpoints 1<br />
bInterfaceClass 9 Hub<br />
bInterfaceSubClass 0 Unused<br />
bInterfaceProtocol 0 Full speed (or root) hub<br />
iInterface 0 <br />
Endpoint Descriptor:<br />
bLength 7<br />
bDescriptorType 5<br />
bEndpointAddress 0x81 EP 1 IN<br />
bmAttributes 3<br />
Transfer Type Interrupt<br />
Synch Type None<br />
Usage Type Data<br />
wMaxPacketSize 0x0002 1x 2 bytes<br />
bInterval 12<br />
Hub Descriptor:<br />
bLength 11<br />
bDescriptorType 41<br />
nNbrPorts 8<br />
wHubCharacteristic 0x0009<br />
Per-port power switching<br />
Per-port overcurrent protection<br />
TT think time 8 FS bits<br />
bPwrOn2PwrGood 50 * 2 milli seconds<br />
bHubContrCurrent 0 milli Ampere<br />
DeviceRemovable 0x00 0x00<br />
PortPwrCtrlMask 0xff 0xff<br />
Hub Port Status:<br />
Port 1: 0000.0100 power<br />
Port 2: 0000.0100 power<br />
Port 3: 0000.0100 power<br />
Port 4: 0000.0100 power<br />
Port 5: 0000.0100 power<br />
Port 6: 0000.0100 power<br />
Port 7: 0000.0100 power<br />
Port 8: 0000.0100 power<br />
Device Qualifier (for other device speed):<br />
bLength 10<br />
bDescriptorType 6<br />
bcdUSB 2.00<br />
bDeviceClass 9 Hub<br />
bDeviceSubClass 0 Unused<br />
bDeviceProtocol 0 Full speed (or root) hub<br />
bMaxPacketSize0 64<br />
bNumConfigurations 1<br />
Device Status: 0x0001<br />
Self Powered<br />
<br />
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Device Descriptor:<br />
bLength 18<br />
bDescriptorType 1<br />
bcdUSB 2.00<br />
bDeviceClass 9 Hub<br />
bDeviceSubClass 0 Unused<br />
bDeviceProtocol 0 Full speed (or root) hub<br />
bMaxPacketSize0 64<br />
idVendor 0x1d6b Linux Foundation<br />
idProduct 0x0002 2.0 root hub<br />
bcdDevice 3.12<br />
iManufacturer 3 Linux 3.12.13-desktop-2.mga4 ehci_hcd<br />
iProduct 2 EHCI Host Controller<br />
iSerial 1 0000:00:1d.0<br />
bNumConfigurations 1<br />
Configuration Descriptor:<br />
bLength 9<br />
bDescriptorType 2<br />
wTotalLength 25<br />
bNumInterfaces 1<br />
bConfigurationValue 1<br />
iConfiguration 0 <br />
bmAttributes 0xe0<br />
Self Powered<br />
Remote Wakeup<br />
MaxPower 0mA<br />
Interface Descriptor:<br />
bLength 9<br />
bDescriptorType 4<br />
bInterfaceNumber 0<br />
bAlternateSetting 0<br />
bNumEndpoints 1<br />
bInterfaceClass 9 Hub<br />
bInterfaceSubClass 0 Unused<br />
bInterfaceProtocol 0 Full speed (or root) hub<br />
iInterface 0 <br />
Endpoint Descriptor:<br />
bLength 7<br />
bDescriptorType 5<br />
bEndpointAddress 0x81 EP 1 IN<br />
bmAttributes 3<br />
Transfer Type Interrupt<br />
Synch Type None<br />
Usage Type Data<br />
wMaxPacketSize 0x0004 1x 4 bytes<br />
bInterval 12<br />
Hub Descriptor:<br />
bLength 9<br />
bDescriptorType 41<br />
nNbrPorts 2<br />
wHubCharacteristic 0x000a<br />
No power switching (usb 1.0)<br />
Per-port overcurrent protection<br />
bPwrOn2PwrGood 10 * 2 milli seconds<br />
bHubContrCurrent 0 milli Ampere<br />
DeviceRemovable 0x00<br />
PortPwrCtrlMask 0xff<br />
Hub Port Status:<br />
Port 1: 0000.0507 highspeed power suspend enable connect<br />
Port 2: 0000.0100 power<br />
Device Status: 0x0001<br />
Self Powered<br />
<br />
Bus 001 Device 005: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader<br />
Device Descriptor:<br />
bLength 18<br />
bDescriptorType 1<br />
bcdUSB 2.00<br />
bDeviceClass 0 (Defined at Interface level)<br />
bDeviceSubClass 0 <br />
bDeviceProtocol 0 <br />
bMaxPacketSize0 64<br />
idVendor 0x058f Alcor Micro Corp.<br />
idProduct 0x6366 Multi Flash Reader<br />
bcdDevice 1.00<br />
iManufacturer 1 Generic<br />
iProduct 2 Flash Card Reader/Writer<br />
iSerial 3 058F63666435<br />
bNumConfigurations 1<br />
Configuration Descriptor:<br />
bLength 9<br />
bDescriptorType 2<br />
wTotalLength 32<br />
bNumInterfaces 1<br />
bConfigurationValue 1<br />
iConfiguration 0 <br />
bmAttributes 0x80<br />
(Bus Powered)<br />
MaxPower 250mA<br />
Interface Descriptor:<br />
bLength 9<br />
bDescriptorType 4<br />
bInterfaceNumber 0<br />
bAlternateSetting 0<br />
bNumEndpoints 2<br />
bInterfaceClass 8 Mass Storage<br />
bInterfaceSubClass 6 SCSI<br />
bInterfaceProtocol 80 Bulk-Only<br />
iInterface 0 <br />
Endpoint Descriptor:<br />
bLength 7<br />
bDescriptorType 5<br />
bEndpointAddress 0x01 EP 1 OUT<br />
bmAttributes 2<br />
Transfer Type Bulk<br />
Synch Type None<br />
Usage Type Data<br />
wMaxPacketSize 0x0200 1x 512 bytes<br />
bInterval 0<br />
Endpoint Descriptor:<br />
bLength 7<br />
bDescriptorType 5<br />
bEndpointAddress 0x82 EP 2 IN<br />
bmAttributes 2<br />
Transfer Type Bulk<br />
Synch Type None<br />
Usage Type Data<br />
wMaxPacketSize 0x0200 1x 512 bytes<br />
bInterval 0<br />
Device Qualifier (for other device speed):<br />
bLength 10<br />
bDescriptorType 6<br />
bcdUSB 2.00<br />
bDeviceClass 0 (Defined at Interface level)<br />
bDeviceSubClass 0 <br />
bDeviceProtocol 0 <br />
bMaxPacketSize0 64<br />
bNumConfigurations 1<br />
Device Status: 0x0000<br />
(Bus Powered)<br />
<br />
.<br />
.<br />
.<br />
<br />
<br />
[root@Llawyr ~]# lsusb -D /dev/bus/usb/001/001<br />
Device: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Device Descriptor:<br />
bLength 18<br />
bDescriptorType 1<br />
bcdUSB 2.00<br />
bDeviceClass 9 Hub<br />
bDeviceSubClass 0 Unused<br />
bDeviceProtocol 0 Full speed (or root) hub<br />
bMaxPacketSize0 64<br />
idVendor 0x1d6b Linux Foundation<br />
idProduct 0x0002 2.0 root hub<br />
bcdDevice 3.12<br />
iManufacturer 3 Linux 3.12.13-desktop-2.mga4 ehci_hcd<br />
iProduct 2 EHCI Host Controller<br />
iSerial 1 0000:00:1a.0<br />
bNumConfigurations 1<br />
Configuration Descriptor:<br />
bLength 9<br />
bDescriptorType 2<br />
wTotalLength 25<br />
bNumInterfaces 1<br />
bConfigurationValue 1<br />
iConfiguration 0 <br />
bmAttributes 0xe0<br />
Self Powered<br />
Remote Wakeup<br />
MaxPower 0mA<br />
Interface Descriptor:<br />
bLength 9<br />
bDescriptorType 4<br />
bInterfaceNumber 0<br />
bAlternateSetting 0<br />
bNumEndpoints 1<br />
bInterfaceClass 9 Hub<br />
bInterfaceSubClass 0 Unused<br />
bInterfaceProtocol 0 Full speed (or root) hub<br />
iInterface 0 <br />
Endpoint Descriptor:<br />
bLength 7<br />
bDescriptorType 5<br />
bEndpointAddress 0x81 EP 1 IN<br />
bmAttributes 3<br />
Transfer Type Interrupt<br />
Synch Type None<br />
Usage Type Data<br />
wMaxPacketSize 0x0004 1x 4 bytes<br />
bInterval 12<br />
Hub Descriptor:<br />
bLength 9<br />
bDescriptorType 41<br />
nNbrPorts 2<br />
wHubCharacteristic 0x000a<br />
No power switching (usb 1.0)<br />
Per-port overcurrent protection<br />
bPwrOn2PwrGood 10 * 2 milli seconds<br />
bHubContrCurrent 0 milli Ampere<br />
DeviceRemovable 0x00<br />
PortPwrCtrlMask 0xff<br />
Hub Port Status:<br />
Port 1: 0000.0503 highspeed power enable connect<br />
Port 2: 0000.0100 power<br />
Device Status: 0x0001<br />
Self Powered<br />
<br />
[root@Llawyr ~]# lsusb -vd 1d6b:0003<br />
<br />
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub<br />
Device Descriptor:<br />
bLength 18<br />
bDescriptorType 1<br />
bcdUSB 3.00<br />
bDeviceClass 9 Hub<br />
bDeviceSubClass 0 Unused<br />
bDeviceProtocol 3 <br />
bMaxPacketSize0 9<br />
idVendor 0x1d6b Linux Foundation<br />
idProduct 0x0003 3.0 root hub<br />
bcdDevice 3.12<br />
iManufacturer 3 Linux 3.12.13-desktop-2.mga4 xhci_hcd<br />
iProduct 2 xHCI Host Controller<br />
iSerial 1 0000:00:14.0<br />
bNumConfigurations 1<br />
Configuration Descriptor:<br />
bLength 9<br />
bDescriptorType 2<br />
wTotalLength 31<br />
bNumInterfaces 1<br />
bConfigurationValue 1<br />
iConfiguration 0 <br />
bmAttributes 0xe0<br />
Self Powered<br />
Remote Wakeup<br />
MaxPower 0mA<br />
Interface Descriptor:<br />
bLength 9<br />
bDescriptorType 4<br />
bInterfaceNumber 0<br />
bAlternateSetting 0<br />
bNumEndpoints 1<br />
bInterfaceClass 9 Hub<br />
bInterfaceSubClass 0 Unused<br />
bInterfaceProtocol 0 Full speed (or root) hub<br />
iInterface 0 <br />
Endpoint Descriptor:<br />
bLength 7<br />
bDescriptorType 5<br />
bEndpointAddress 0x81 EP 1 IN<br />
bmAttributes 3<br />
Transfer Type Interrupt<br />
Synch Type None<br />
Usage Type Data<br />
wMaxPacketSize 0x0004 1x 4 bytes<br />
bInterval 12<br />
bMaxBurst 0<br />
Hub Descriptor:<br />
bLength 12<br />
bDescriptorType 42<br />
nNbrPorts 4<br />
wHubCharacteristic 0x000a<br />
No power switching (usb 1.0)<br />
Per-port overcurrent protection<br />
bPwrOn2PwrGood 10 * 2 milli seconds<br />
bHubContrCurrent 0 milli Ampere<br />
bHubDecLat 0.0 micro seconds<br />
wHubDelay 0 nano seconds<br />
DeviceRemovable 0x00<br />
Hub Port Status:<br />
Port 1: 0000.02a0 5Gbps power Rx.Detect<br />
Port 2: 0000.02a0 5Gbps power Rx.Detect<br />
Port 3: 0000.02a0 5Gbps power Rx.Detect<br />
Port 4: 0000.02a0 5Gbps power Rx.Detect<br />
Binary Object Store Descriptor:<br />
bLength 5<br />
bDescriptorType 15<br />
wTotalLength 15<br />
bNumDeviceCaps 1<br />
SuperSpeed USB Device Capability:<br />
bLength 10<br />
bDescriptorType 16<br />
bDevCapabilityType 3<br />
bmAttributes 0x00<br />
wSpeedsSupported 0x0008<br />
Device can operate at SuperSpeed (5Gbps)<br />
bFunctionalitySupport 3<br />
Lowest fully-functional device speed is SuperSpeed (5Gbps)<br />
bU1DevExitLat 10 micro seconds<br />
bU2DevExitLat 512 micro seconds<br />
Device Status: 0x0001<br />
Self Powered<br />
<br />
[root@Llawyr ~]# lsusb -d 1d6b:<br />
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub<br />
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
<br />
[root@Llawyr ~]# lsusb -t<br />
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M<br />
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M<br />
|__ Port 3: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M<br />
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M<br />
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M<br />
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M<br />
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M<br />
|__ Port 3: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M<br />
|__ Port 3: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M<br />
|__ Port 4: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M<br />
<br />
<br />
</syntaxhighlight><br />
<br />
[[Category:Comandos de la terminal]]</div>
Rrc