BASH – Porte USB viste da Ubuntu

2 Marzo, 2014 (20:14) | BASH, Linux | By: sargonsei

BASH – Porte USB viste da Ubuntu – Aggiornamento anno 2024.
Se l’ output è incompleto, impartire i comandi in modalità Super Utente.
I comandi:
inxi -SJxxx # Sistema operativo e porte USB
lspci -k | grep -iA 2 USB # Informazioni relative a porte USB
lspci -vs 00:10.0 # Informazioni relative a porte USB
lspci -vs 00:12.0 # Informazioni relative a porte USB
lspci -vs 00:13.0 # Informazioni relative a porte USB
lsusb # Elenca periferiche USB

lsusb -v | grep -iA 22 usb # Informazioni dettagliate periferiche USB connesse
lsusb -s 001:005 -v # Informazioni dettagliate periferica USB connessa al Bus 001 Device 005
#
hwinfo |grep ': USB' -A 10 # Informazioni dettagliate relative a porte USB
hwinfo -usb # Informazioni relative a USB

Esempi di output:

:~$ inxi -SJxxx # Sistema operativo e porte USB
System:
  Host: ubuntustudio22k04-X555YI Kernel: 5.15.0-92-lowlatency x86_64 bits: 64
    compiler: gcc v: 11.4.0 Desktop: KDE Plasma 5.24.7 tk: Qt 5.15.3
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Ubuntu 22.04.3 LTS (Jammy Jellyfish)
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Advanced Micro Devices Root Hub ports: 4 rev: 2.0
    speed: 480 Mb/s power: 100mA chip-ID: 0438:7900 class-ID: 0900
  Device-1: 1-1.1:6 info: Kensington Orbit Trackball with Scroll Ring
    type: Mouse driver: hid-generic,usbhid interfaces: 1 rev: 2.0
    speed: 1.5 Mb/s power: 100mA chip-ID: 047d:2048 class-ID: 0301
  Device-2: 1-1.3:4 info: Realtek Bluetooth Radio type: Bluetooth
    driver: btusb interfaces: 2 rev: 2.1 speed: 12 Mb/s power: 500mA
    chip-ID: 0bda:b721 class-ID: e001 serial: 00e04c000001
  Device-3: 1-1.4:5 info: Realtek USB Camera type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0bda:57b5
    class-ID: 0e02 serial: 200901010001
  Hub-3: 2-0:1 info: Full speed or root hub ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 2-1:2 info: Advanced Micro Devices Root Hub ports: 2 rev: 2.0
    speed: 480 Mb/s power: 100mA chip-ID: 0438:7900 class-ID: 0900
  Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-1:4 info: LogiLink UDisk flash drive type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 100mA
    chip-ID: abcd:1234 class-ID: 0806 serial: Љ
  Hub-6: 4-0:1 info: Super-speed hub ports: 2 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
:~$ lspci -k | grep -iA 2 USB # Informazioni relative a porte USB
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11)
        Subsystem: ASUSTeK Computer Inc. FCH USB XHCI Controller
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
--
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
        Subsystem: ASUSTeK Computer Inc. FCH USB EHCI Controller
        Kernel driver in use: ehci-pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
        Subsystem: ASUSTeK Computer Inc. FCH USB EHCI Controller
        Kernel driver in use: ehci-pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42)
:~$ lspci -vs 00:10.0 # Informazioni relative a porte USB
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11) (prog-if 30 [XHCI])
        Subsystem: ASUSTeK Computer Inc. FCH USB XHCI Controller
        Flags: bus master, fast devsel, latency 0, IRQ 18
        Memory at fea68000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: 
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

:~$ lspci -vs 00:12.0 # Informazioni relative a porte USB
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) (prog-if 20 [EHCI])
        Subsystem: ASUSTeK Computer Inc. FCH USB EHCI Controller
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18
        Memory at fea6d000 (32-bit, non-prefetchable) [size=256]
        Capabilities: 
        Kernel driver in use: ehci-pci

:~$ lspci -vs 00:13.0 # Informazioni relative a porte USB
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) (prog-if 20 [EHCI])
        Subsystem: ASUSTeK Computer Inc. FCH USB EHCI Controller
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18
        Memory at fea6c000 (32-bit, non-prefetchable) [size=256]
        Capabilities: 
        Kernel driver in use: ehci-pci

:~$ lsusb # Elenca periferiche USB
Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. Root Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0bda:57b5 Realtek Semiconductor Corp. USB Camera
Bus 001 Device 004: ID 0bda:b721 Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 006: ID 047d:2048 Kensington Orbit Trackball with Scroll Ring
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. Root Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID abcd:1234 LogiLink UDisk flash drive
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
:~$