- Saved searches
- Use saved searches to filter your results more quickly
- axiomware/RTL8821CU_driver_v5.8.1
- 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
- Realtek 8821cu linux driver
- Установка
- 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
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.
Linux Driver for RTL8821CU, RTL8811CU USB Wi-Fi NIC
axiomware/RTL8821CU_driver_v5.8.1
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
Git stats
Files
Failed to load latest commit information.
README.md
RTL8821CU_RTL8811CU_driver version v5.8.1
RTL8811CU and RTL8821CU driver
The Realtek RTL8811CU-CG is a highly integrated single-chip that supports 1-stream 802.11ac solutions with Multi-user MIMO (Multiple-Input, Multiple-Output) and Wireless LAN (WLAN) USB interface controller. It combines a WLAN MAC, a 1T1R capable WLAN baseband, and RF in a single chip. The RTL8811CU-CG provides an outstanding solution for a high-performance integrated wireless device.:
- USB high speed interface
- 802.11ac/abgn, 802.11ac
- 2.4 GHz Support
- 5.8 GHz Support
- Supports concurrent mode (operates as two virtual WLAN interfaces)
- MIMO config — 1×1
- MU-MIMO
- AC wave2
- 256 QAM
- IEEE 802.11 b/g/n/ac WiFi compliant
- 802.1x, WEP, WPA TKIP and WPA2 AES/Mixed mode for PSK and TLS (Radius)
- WPA3 SAE (Personal)
- WPS — PIN and PBC Methods
- IEEE 802.11b/g/n/ac Client mode
- Support wireless security for WEP, WPA TKIP and WPA2 AES PSK
- Support site survey scan and manual connect
- Support WPA/WPA2 TLS client
- Support power saving mode
The Linux driver appears as 8821cu.ko. Check if the USB sub-system recognizes the device.
uname -a Linux nes3 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
lsusb | grep Realtek Bus 001 Device 003: ID 0bda:c811 Realtek Semiconductor Corp.
lsmod | grep 8821cu 8821cu 2260992 0 cfg80211 589824 1 8821cu usbcore 253952 6 ehci_hcd,xhci_pci,btusb,8821cu,xhci_hcd,ehci_pci
If 8821cu is present, everything is good to go!
If the driver is not present, it can be built using the included driver sources.
- Driver version : rtl8821CU_WiFi_linux_v5.8.1_34171.20190628_COEX20190509-4141
- Driver changelog.pdf
- Build tools — Install build tools, if needed (see below)
# Install build tools sudo apt-get install build-essential -y sudo apt-get install bc -y sudo apt-get install unzip git -y # install kernel headers sudo apt-get install linux-headers-$(uname -r) # check apt search linux-headers-$(uname -r) ls -l /usr/src/linux-headers-$(uname -r)
git clone https://github.com/axiomware/RTL8821CU_driver_v5.8.1.git cd RTL8821CU_driver_v5.8.1
Following customizations have been made to the default Makefile(see installation document for details):
- Choose x86 target
- Concurrent mode enabled (To disable, comment out EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE )
- Mesh point enabled (To disable, comment out EXTRA_CFLAGS += -DCONFIG_RTW_MESH )
- Monitor mode enabled (To disable, set CONFIG_WIFI_MONITOR = n )
- Log Level = 3 (default is 4, set CONFIG_RTW_LOG_LEVEL = 4 )
# Build make # install sudo make install # reboot to start the wireless module or use modprobe to load the driver sudo modprobe 8821cu #uninstall the driver using make sudo make uninstall # or uninstall directly if make is not installed KVER=$(uname -r) MODFILE=/lib/modules/$KVER/kernel/drivers/net/wireless/8821cu.ko sudo rm -f $MODFILE sudo /sbin/depmod -a $KVER
Option 2 — DKMS build (verified on Debian 10 LTS with Kernel version 4.19)
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 and follow the steps listed below:
sudo apt-get install dkms DRV_NAME=rtl8821CU DRV_VERSION=5.8.1 git clone https://github.com/axiomware/RTL8821CU_driver_v5.8.1.git # Modify Makefile, if needed (see installation document for details) # default Makefile is for: # x86 target # Concurrent mode enabled # Monitor mode enabled # Mesh point sudo cp -r RTL8821CU_driver_v5.8.1 /usr/src/$ -$ # Build and install sudo dkms add -m $ -v $ sudo dkms build -m $ -v $ sudo dkms install -m $ -v $ # reboot to start the wireless module or use modprobe to load the driver sudo modprobe 8821cu # To remove a driver, do the following: DRV_NAME=rtl8821CU DRV_VERSION=5.8.1 sudo dkms remove $ /$ --all
sudo iwconfig enp3s0 no wireless extensions. enp1s0 no wireless extensions. wlx30eb1f04ecad unassociated Nickname:"" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 enp2s0 no wireless extensions. lo no wireless extensions. wlp0s18u1u2 unassociated Nickname:"" Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
About
Linux Driver for RTL8821CU, RTL8811CU USB Wi-Fi NIC
Realtek 8821cu linux driver
Установка драйвера для Wi-Fi адаптера от Realtek под Linux может стать небольшой проблемой. Есть несколько версий драйверов на github, но не все подходят для ядра линукс версий 5.+ . Здесь покажу рабочий вариант
У меня USB адаптер, и вот так он выглядит в lsusb. ID: 0bda:c811
Bus 001 Device 003: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC
Установка
Вот этот драйвер подойдет к адаптерам на базе RTL8811CU RTL8821CU RTL8731AU, и к Linux kernel версий 4.19-6.1: https://github.com/morrownr/8821cu-20210916
Устанавливаю на Ubuntu 22.10:
sudo apt update && sudo apt install build-essential git dkms bc git clone https://github.com/morrownr/8821cu-20210916.git cd 8821cu-20210916 sudo ./install-driver.sh
Если все прошло успешно, скрипт спросит “Do you want to edit the driver options file now?” — отказываемся. На предложение перезагрузки соглашаемся 🙂
После ребута получаем рабочий Wi-Fi адаптер:
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