informatique:identifier_un_device_usb
Table des matières
Identifier un device USB sous GNU/Linux
Voici quelques commandes, explications et exemples pour identifier précisément un device USB sous GNU/Linux.
lsusb
lsusb permet de lister ce qui est connecté sur les ports USB d'une machine.
$ lsusb Bus 002 Device 004: ID 04b3:310c IBM Corp. Wheel Mouse Bus 002 Device 005: ID 1038:1202 Ideazon, Inc. Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 004: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
On peut préciser différentes choses, afficher les résultat pour un seul device
# lsusb -s 001:002 Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Avec l'option -v
(verbose), on obtient beaucoup de détails !
# lsusb -v -s 001:005 (... plein de détails! ...)
dmesg
On peut voir pas mal de choses via dmesg.
Combinaison de watch, dmesg et tail :
$ watch 'dmesg | tail -n 25' [11715.340424] usb 1-1.4: USB disconnect, device number 5 [11715.342479] cdc_ether 1-1.4:1.0 usb0: unregister 'cdc_ether' usb-0000:00:1a.0-1.4, CDC Ethernet Device [11721.624573] usb 1-1.4: new high-speed USB device number 6 using ehci-pci [11721.719324] usb 1-1.4: New USB device found, idVendor=0525, idProduct=a4a2 [11721.719329] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [11721.719331] usb 1-1.4: Product: RNDIS/Ethernet Gadget [11721.719333] usb 1-1.4: Manufacturer: Linux 3.10.40+ with tegra-udc [11721.721259] cdc_ether 1-1.4:1.0 usb0: register 'cdc_ether' at usb-0000:00:1a.0-1.4, CDC Ethernet Device, 36:f1:cd:19:ca:56 [11878.242195] usb 1-1.4: USB disconnect, device number 6 [11878.244389] cdc_ether 1-1.4:1.0 usb0: unregister 'cdc_ether' usb-0000:00:1a.0-1.4, CDC Ethernet Device [11878.466612] usb 1-1.4: new high-speed USB device number 7 using ehci-pci [11878.559636] usb 1-1.4: New USB device found, idVendor=0955, idProduct=7740 [11878.559641] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [11878.559643] usb 1-1.4: Product: APX [11878.559645] usb 1-1.4: Manufacturer: NVIDIA Corp. [11887.449193] usb 1-1.4: USB disconnect, device number 7 [11887.741747] usb 1-1.4: new high-speed USB device number 8 using ehci-pci [11887.834440] usb 1-1.4: New USB device found, idVendor=0955, idProduct=7740 [11887.834445] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [11887.834448] usb 1-1.4: Product: APX [11887.834450] usb 1-1.4: Manufacturer: NVIDIA Corp. [12127.086904] usb 1-1.4: USB disconnect, device number 8 [12151.361153] usb 1-1.4: new high-speed USB device number 9 using eh ci-pci [12151.454129] usb 1-1.4: New USB device found, idVendor=0955, idProd uct=7740 [12151.454135] usb 1-1.4: New USB device strings: Mfr=1, Product=2, S erialNumber=0 [12151.454137] usb 1-1.4: Product: APX [12151.454139] usb 1-1.4: Manufacturer: NVIDIA Corp. [12263.926649] loop: module loaded [12266.237587] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null) [12851.726213] usb 1-1.4: USB disconnect, device number 9 [12872.800267] usb 1-1.4: new high-speed USB device number 10 using e hci-pci [12872.895059] usb 1-1.4: New USB device found, idVendor=0525, idProd uct=a4a2 [12872.895064] usb 1-1.4: New USB device strings: Mfr=1, Product=2, S erialNumber=0 [12872.895076] usb 1-1.4: Product: RNDIS/Ethernet Gadget [12872.895078] usb 1-1.4: Manufacturer: Linux 3.10.40+ with tegra-udc [12872.896911] cdc_ether 1-1.4:1.0 usb0: register 'cdc_ether' at usb- 0000:00:1a.0-1.4, CDC Ethernet Device, 26:e1:b1:af:cf:29
informatique/identifier_un_device_usb.txt · Dernière modification : 2020/08/09 13:03 de 127.0.0.1