- Wireless USB Adapter 0bda:c811 Realtek Semiconductor Corp
- Saved searches
- Use saved searches to filter your results more quickly
- License
- brektrou/rtl8821CU
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- Installing WiFi Driver For Realtek 802.11ac on Linux (0bda:c811)
- For Fedora and RPM-esque distributions
- For Ubuntu and Debian-esque distributions
Wireless USB Adapter 0bda:c811 Realtek Semiconductor Corp
I am a bit lost sorting through the pile of documentation and Q&As about this topic so im just going to specifically ask. I run an ASUS laptop, its a few years old and is unable to use 5ghz wifi, so i have use a usb wireless adapter (Flenco is the brand name, its just a standard 600mbps adapter, and no im not sure what serious of words and numbers anyone would need to identify it lol), to connect to the much faster wifi. on windows obviously no issue, plug and play etc. its the difference between 4-6 mbps download and 45-60mbps download. I can not for the life of me get my linux to see it, and im too much of a noob to keep randomly messing up my system grasping at straws. It doesnt show up when i run lsusb, at least not under any name that would lead me down a fix path, not that i would know what to do from there anyways.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 04ca:2006 Lite-On Technology Corp. Broadcom BCM43142A0 Bluetooth Device Bus 001 Device 003: ID 04f2:b483 Chicony Electronics Co., Ltd Bus 001 Device 008: ID 05a7:1020 Bose Corp. Bus 001 Device 007: ID 04d9:a0f0 Holtek Semiconductor, Inc. Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 002: ID 0bda:c811 Realtek Semiconductor Corp. Bus 001 Device 005: ID 0c45:5004 Microdia Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I am completely positive this has been solved a hundred times over and I apologize for that, if someone could maybe point me towards a prior answer or offer a little more direct guidance that would be amazing. I run Ubuntu 19.04, everything is up to date and working very well, just this issue. Thanks!
Bus 001 Device 009: ID 0bda:c811 Realtek Semiconductor Corp. Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0bda Realtek Semiconductor Corp. idProduct 0xc811 bcdDevice 2.00 iManufacturer 1 iProduct 2 iSerial 3 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0035 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 5 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 2 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x84 EP 4 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x05 EP 5 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x06 EP 6 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x87 EP 7 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 3 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x08 EP 8 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
License
brektrou/rtl8821CU
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Clean up all compilation warnings
Git stats
Files
Failed to load latest commit information.
README.md
Realtek RTL8811CU/RTL8821CU USB wifi adapter driver version 5.4.1 for Linux 4.4.x up to 5.x
Before build this driver make sure make , gcc , linux-header / kernel-devel , bc and git have been installed.
First, clone this repository
mkdir -p ~/build cd ~/build git clone https://github.com/brektrou/rtl8821CU.git
Check the name of the interface
Check the interface name of your wifi adapter using ifconfig . Usually, it will be wlan0 by default, but it may vary depends on the kernel and your device. On Ubuntu, for example, it may be named as wlx + MAC address. (https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/)
If this is the case, you can either disable the feature following the link above, or replace the name used in the driver by
grep -lr . | xargs sed -i '' -e '/ifcfg-wlan0/!s/wlan0//g'
Build and install with DKMS
DKMS is a system which will automatically recompile and install a kernel module when a new kernel gets installed or updated. To make use of DKMS, install the dkms package.
To make use of the DKMS feature with this project, just run:
If you later on want to remove it, run:
Plug your USB-wifi-adapter into your PC
If wifi can be detected, congratulations. If not, maybe you need to switch your device usb mode by the following steps in terminal:
Need install usb_modeswitch (Archlinux: sudo pacman -S usb_modeswitch )
sudo usb_modeswitch -KW -v 0bda -p 1a2b systemctl start bluetooth.service - starting Bluetooth service if it's in inactive state
If steps above worked fine and in order to avoid periodically having to make usb_modeswitch you can make it permanent (Working in Ubuntu 18.04 LTS):
- Edit usb_modeswitch rules:
sudo nano /lib/udev/rules.d/40-usb_modeswitch.rules
# Realtek 8211CU Wifi AC USB ATTR=="0bda", ATTR=="1a2b", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b"
Make sure to set your ATTR and the -v argument to the left portion of the output of lsusb device ID, and your ATTR and -p argument to the right portion of the lsusb device ID. For example (for the Cudy AC600 usb wifi adapter) the output from lsusb command looks like this:
Bus 001 Device 016: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC
then your configuration in /lib/udev/rules.d/40-usb_modeswitch.rules should be
# Realtek 8211CU Wifi AC USB ATTR=="0bda", ATTR=="c811", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p c811"
Build and install without DKMS
cd ~/build/rtl8821CU make sudo make install
If you later on want to remove it, do the following:
cd ~/build/rtl8821CU sudo make uninstall
Checking installed driver
If you successfully install the driver, the driver is installed on /lib/modules//kernel/drivers/net/wireless/realtek/rtl8821cu . Check the driver with the ls command:
ls /lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek/rtl8821cu
Make sure 8821cu.ko file present on that directory
Check with DKMS (if installing via DKMS):
Use the tool ‘iw’, please don’t use other tools like ‘airmon-ng’
iw dev wlan0 set monitor none
About
Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
Installing WiFi Driver For Realtek 802.11ac on Linux (0bda:c811)
So you just purchased one of those 802.11ac USB WiFi cards but it’s not working on Linux. Not to worry, I’ve compiled a list of steps to get it working on your Fedora or Debian based distribution. If you’re on Arch Linux or a derivative, the steps will be similar but you’ll have to use pacman to make sure you have the right dependencies.
For Fedora and RPM-esque distributions
Fedora was a bit tricky so you need to make sure you update your system and ensure you have kernel-devel installed. I have the steps for you below
# Ensure your system is up-to-date sudo dnf update # If there are new kernel updates, please restart. Once done, install the kernel-devel and dkms package sudo dnf install kernel-devel kernel-devel-debug dkms # Once done, you can proceed with the following one-liner cd /tmp && git clone https://github.com/brektrou/rtl8821CU.git && cd rtl8821CU && chmod +x dkms-install.sh # Now you can install the dkms script sudo ./dkms-install.sh # If all goes well, you can now run the modprobe command sudo modprobe 8821cu
For Ubuntu and Debian-esque distributions
Very similar to Fedora, we’re just going to use apt to install a few packages.
# Ensure your system is up-to-date sudo apt update && sudo apt upgrade # If there are new kernel updates, please restart. Once done, install the build-essential git and dkms packages. sudo apt install build-essential git dkms # Once done, you can proceed with the following one-liner cd /tmp && git clone https://github.com/brektrou/rtl8821CU.git && cd rtl8821CU && chmod +x dkms-install.sh # Now you can install the dkms script sudo ./dkms-install.sh # If all goes well, you can now run the modprobe command sudo modprobe 8821cu
If you run into any issues, feel free to let me know.