Você não pode fazer isso usando lsusb
apenas. Você pode:
-
Use as opções
-s
ou-d
para fazerlsusb
mostra a saída apenas para dispositivos específicos:-s [[bus]:][devnum] Show only devices in specified bus and/or devnum. Both ID's are given in decimal and may be omitted. -d [vendor]:[product] Show only devices with the specified vendor and product ID. Both ID's are given in hexadecimal.
-
E use
grep
para filtrar os campos.
Por exemplo:
$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 003 Device 004: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 003 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
$ lsusb -s 003:003
Bus 003 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
$ lsusb -s 003:003 -v | grep bInterfaceProtocol
bInterfaceProtocol 0 Full speed (or root) hub
# lsusb -v | grep -e bInterfaceProtocol -e Bus
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
bInterfaceProtocol 0 Full speed (or root) hub
Bus 003 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
bInterfaceProtocol 0 Full speed (or root) hub
Bus 003 Device 004: ID 0e0f:0003 VMware, Inc. Virtual Mouse
bInterfaceProtocol 2 Mouse
Bus 003 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
bInterfaceProtocol 0 Full speed (or root) hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
bInterfaceProtocol 0 Full speed (or root) hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
bInterfaceProtocol 0 Full speed (or root) hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
bInterfaceProtocol 0 Full speed (or root) hub