angus53

Untitled

Aug 13th, 2025
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. $ lsusb
  2. Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  3. Bus 001 Device 002: ID 0bda:5852 Realtek Semiconductor Corp. Bluetooth Radio
  4. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  5. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  6. Bus 003 Device 002: ID 2717:4106 Xiaomi Inc. MediaTek MT7601U [MI WiFi]
  7. Bus 003 Device 035: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (Driver CDROM Mode)
  8. Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  9. Bus 004 Device 002: ID 046d:c077 Logitech, Inc. Mouse
  10. Bus 004 Device 003: ID 05af:1023 Jing-Mold Enterprise Co., Ltd Ghost Key Elimiantion Keyboard
  11. Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  12. Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  13. Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  14. Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  15.  
  16. $ sudo usb_modeswitch -v 0bda -p 1a2b -KW
  17. Take all parameters from the command line
  18.  
  19.  
  20. * usb_modeswitch: handle USB devices with multiple modes
  21. * Version 2.6.2 (C) Josua Dietze 2017
  22. * Based on libusb1/libusbx
  23.  
  24. ! PLEASE REPORT NEW CONFIGURATIONS !
  25.  
  26. DefaultVendor= 0x0bda
  27. DefaultProduct= 0x1a2b
  28.  
  29. StandardEject=1
  30.  
  31. Look for default devices ...
  32. found USB ID 2717:4106
  33. found USB ID 0bda:1a2b
  34. vendor ID matched
  35. product ID matched
  36. found USB ID 1d6b:0002
  37. found USB ID 05af:1023
  38. found USB ID 046d:c077
  39. found USB ID 1d6b:0001
  40. found USB ID 1d6b:0002
  41. found USB ID 0bda:5852
  42. vendor ID matched
  43. found USB ID 1d6b:0001
  44. found USB ID 1d6b:0003
  45. found USB ID 1d6b:0002
  46. found USB ID 1d6b:0003
  47. found USB ID 1d6b:0002
  48. Found devices in default mode (1)
  49. Access device 035 on bus 003
  50. Get the current device configuration ...
  51. Current configuration number is 1
  52. Use interface number 0
  53. with class 8
  54. Use endpoints 0x05 (out) and 0x84 (in)
  55.  
  56. USB description data (for identification)
  57. -------------------------
  58. Manufacturer: Realtek
  59. Product: DISK
  60. Serial No.: not provided
  61. -------------------------
  62. Sending standard EJECT sequence
  63. Looking for active drivers ...
  64. OK, driver detached
  65. Set up interface 0
  66. Use endpoint 0x05 for message sending ...
  67. Trying to send message 1 to endpoint 0x05 ...
  68. Sending the message returned error -7. Try to continue
  69. Read the response to message 1 (CSW) ...
  70. Response successfully read (13 bytes), status 1
  71. Trying to send message 2 to endpoint 0x05 ...
  72. OK, message successfully sent
  73. Read the response to message 2 (CSW) ...
  74. Response successfully read (13 bytes), status 0
  75. Trying to send message 3 to endpoint 0x05 ...
  76. libusb: error [submit_bulk_transfer] submiturb failed, errno=113
  77. Sending the message returned error -1. Try to continue
  78. Read the response to message 3 (CSW) ...
  79. Device seems to have vanished after reading. Good.
  80. Device is gone, skip any further commands
  81. -> Run lsusb to note any changes. Bye!
  82.  
  83. $ lsusb
  84. Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  85. Bus 001 Device 002: ID 0bda:5852 Realtek Semiconductor Corp. Bluetooth Radio
  86. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  87. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  88. Bus 003 Device 002: ID 2717:4106 Xiaomi Inc. MediaTek MT7601U [MI WiFi]
  89. Bus 003 Device 036: ID 2001:332a D-Link Corp. 802.11ax WLAN Adapter
  90. Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  91. Bus 004 Device 002: ID 046d:c077 Logitech, Inc. Mouse
  92. Bus 004 Device 003: ID 05af:1023 Jing-Mold Enterprise Co., Ltd Ghost Key Elimiantion Keyboard
  93. Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  94. Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  95. Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  96. Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Advertisement
Add Comment
Please, Sign In to add comment