brektrou / rtl8821CU

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
GNU General Public License v2.0
1.58k stars 458 forks source link

Getting error when using sudo modswitch #221

Open LumenYoung opened 11 months ago

LumenYoung commented 11 months ago

Hi, I'm trying to install this driver on a ubuntu 20.04 guest machine in QEMU. I successfully compiled the driver and installed. But I got the following error when I'm running sudo usb_modeswitch -KW -v 0bda -p b812:

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0bda
DefaultProduct= 0xb812

StandardEject=1

Look for default devices ...
  found USB ID 1d6b:0003
  found USB ID 0bda:b812
   vendor ID matched
   product ID matched
  found USB ID 0627:0001
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 003 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 255
Error: can't use storage command in MessageContent with interface 0; interface class is 255, expected 8. Abort

This vendor id and product id matches what I get from the lsusb:

yang@ubuntuvm:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:b812 Realtek Semiconductor Corp. 802.11ac NIC
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Any help on this would be appreciated!

ChienKaiMa commented 7 months ago

I had the same problem. I saw some comments mentioning the following repo and it worked for me. 8821cu-20210916