ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
linux:usbutils

lsusb

$ lsusb -h
Usage: lsusb [options]...
List USB devices
  -v, --verbose
      Increase verbosity (show descriptors)
  -s [[bus]:][devnum]
      Show only devices with specified device and/or
      bus numbers (in decimal)
  -d vendor:[product]
      Show only devices with the specified vendor and
      product ID numbers (in hexadecimal)
  -D device
      Selects which device lsusb will examine
  -t, --tree
      Dump the physical USB device hierarchy as a tree
  -V, --version
      Show version of program
  -h, --help
      Show usage and help
$ lsusb -d 18d1:4ee7 
Bus 001 Device 058: ID 18d1:4ee7 Google Inc. Nexus/Pixel Device (charging + debug)
$ lsusb -d 18d1:4ee7 -v | wc -l
86

usb-devices

usbhid-dump

usbreset

https://github.com/gregkh/usbutils/blob/master/usbreset.c

$ lsusb | grep Google
Bus 001 Device 058: ID 18d1:4ee7 Google Inc. Nexus/Pixel Device (charging + debug)

.vid:pid 指定

$ usbreset 18d1:4ee7
Resetting HOLI-MTP _SN:3B89BCC2 ... ok

.bus/device 指定

$ usbreset 001/058
Resetting HOLI-MTP _SN:3B89BCC2 ... ok

.product name 指定

$ lsusb -d 18d1:4ee7 -v | grep iProduct
  iProduct                2 HOLI-MTP _SN:3B89BCC2
$ usbreset "HOLI-MTP _SN:3B89BCC2"
Resetting HOLI-MTP _SN:3B89BCC2 ... ok

コメント

コメントを入力. Wiki文法が有効です:
  _____  _      __  _____  _   __  _      __
 / ___/ | | /| / / / ___/ | | / / | | /| / /
/ (_ /  | |/ |/ / / (_ /  | |/ /  | |/ |/ / 
\___/   |__/|__/  \___/   |___/   |__/|__/
 
linux/usbutils.txt · 最終更新: 2023/05/23 05:33 by matoken