Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ lsusb
- Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 001 Device 002: ID 0bda:5852 Realtek Semiconductor Corp. Bluetooth Radio
- Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 003 Device 002: ID 2717:4106 Xiaomi Inc. MediaTek MT7601U [MI WiFi]
- Bus 003 Device 035: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (Driver CDROM Mode)
- Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 004 Device 002: ID 046d:c077 Logitech, Inc. Mouse
- Bus 004 Device 003: ID 05af:1023 Jing-Mold Enterprise Co., Ltd Ghost Key Elimiantion Keyboard
- Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
- Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
- $ sudo usb_modeswitch -v 0bda -p 1a2b -KW
- Take all parameters from the command line
- * usb_modeswitch: handle USB devices with multiple modes
- * Version 2.6.2 (C) Josua Dietze 2017
- * Based on libusb1/libusbx
- ! PLEASE REPORT NEW CONFIGURATIONS !
- DefaultVendor= 0x0bda
- DefaultProduct= 0x1a2b
- StandardEject=1
- Look for default devices ...
- found USB ID 2717:4106
- found USB ID 0bda:1a2b
- vendor ID matched
- product ID matched
- found USB ID 1d6b:0002
- found USB ID 05af:1023
- found USB ID 046d:c077
- found USB ID 1d6b:0001
- found USB ID 1d6b:0002
- found USB ID 0bda:5852
- vendor ID matched
- found USB ID 1d6b:0001
- found USB ID 1d6b:0003
- found USB ID 1d6b:0002
- found USB ID 1d6b:0003
- found USB ID 1d6b:0002
- Found devices in default mode (1)
- Access device 035 on bus 003
- Get the current device configuration ...
- Current configuration number is 1
- Use interface number 0
- with class 8
- Use endpoints 0x05 (out) and 0x84 (in)
- USB description data (for identification)
- -------------------------
- Manufacturer: Realtek
- Product: DISK
- Serial No.: not provided
- -------------------------
- Sending standard EJECT sequence
- Looking for active drivers ...
- OK, driver detached
- Set up interface 0
- Use endpoint 0x05 for message sending ...
- Trying to send message 1 to endpoint 0x05 ...
- Sending the message returned error -7. Try to continue
- Read the response to message 1 (CSW) ...
- Response successfully read (13 bytes), status 1
- Trying to send message 2 to endpoint 0x05 ...
- OK, message successfully sent
- Read the response to message 2 (CSW) ...
- Response successfully read (13 bytes), status 0
- Trying to send message 3 to endpoint 0x05 ...
- libusb: error [submit_bulk_transfer] submiturb failed, errno=113
- Sending the message returned error -1. Try to continue
- Read the response to message 3 (CSW) ...
- Device seems to have vanished after reading. Good.
- Device is gone, skip any further commands
- -> Run lsusb to note any changes. Bye!
- $ lsusb
- Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 001 Device 002: ID 0bda:5852 Realtek Semiconductor Corp. Bluetooth Radio
- Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 003 Device 002: ID 2717:4106 Xiaomi Inc. MediaTek MT7601U [MI WiFi]
- Bus 003 Device 036: ID 2001:332a D-Link Corp. 802.11ax WLAN Adapter
- Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Bus 004 Device 002: ID 046d:c077 Logitech, Inc. Mouse
- Bus 004 Device 003: ID 05af:1023 Jing-Mold Enterprise Co., Ltd Ghost Key Elimiantion Keyboard
- Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
- Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Advertisement
Add Comment
Please, Sign In to add comment