Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
Nilton
Posts: 1
Joined: 12 May 2024, 21:31

0bda:1a2b switch

Post by Nilton » 12 May 2024, 21:48

Hi!
Im trying to switch mode of device 0bda:1a2b

Code: Select all

$ lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (Driver CDROM Mode)
Bus 002 Device 003: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 002 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ sudo usb_modeswitch -KW -v 0x0bda -p 0x1a2b
Take all parameters from the command line

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.6.1 (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 1d6b:0001
  found USB ID 0bda:1a2b
   vendor ID matched
   product ID matched
  found USB ID 1c4f:0002
  found USB ID 1a40:0101
  found USB ID 1d6b:0002
  found USB ID 1d6b:0001
  found USB ID 1d6b:0002
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 004 on bus 002
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 8
Use endpoints 0x0b (out) and 0x8a (in)

USB description data (for identification)
-------------------------
Manufacturer: Realtek
     Product: DISK
  Serial No.: not provided
-------------------------
Sending standard EJECT sequence
Looking for active drivers ...
Set up interface 0
Use endpoint 0x0b for message sending ...
Trying to send message 1 to endpoint 0x0b ...
 Sending the message returned error -7. Try to continue
Read the response to message 1 (CSW) ...
 Response reading failed (error -8)
 Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!

So, there are message returned error -7 and nothing changing in lsusb list. How I can fix it?
I'm not sure that device driver good because there are some of them in Internet. And I tried all unsucess:
1. native in distro Armbian_24.2.1_Orangepione_jammy_current_6.6.16
2. https://github.com/morrownr/8821cu-20210916
3. https://github.com/andydvsn/rtl8821cu_wlan
3. https://github.com/brektrou/rtl8821CU

The same error - device 0bda:1a2b not switching to device 0bda:c820. On another computer it switches good.

sabrina23
Posts: 1
Joined: 18 Oct 2024, 09:51
Contact:

Re: 0bda:1a2b switch

Post by sabrina23 » 18 Oct 2024, 09:58

Have you update the latest version of `usb_modeswitch`. The error you're receiving (`-7` and `-8`) might be related to an outdated version of the software. You can do it by running:

Code: Select all

sudo apt-get update
sudo apt-get install usb-modeswitch

Post Reply