angus53

Untitled

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