https://github.com/lsongdev/rtl8821cu
Realtek 802.11ac USB WLAN driver
https://github.com/lsongdev/rtl8821cu
driver hardware modeswitch networking raspberry-pi wifi
Last synced: 7 months ago
JSON representation
Realtek 802.11ac USB WLAN driver
- Host: GitHub
- URL: https://github.com/lsongdev/rtl8821cu
- Owner: lsongdev
- License: gpl-2.0
- Created: 2020-01-06T02:35:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-10T04:48:58.000Z (about 6 years ago)
- Last Synced: 2025-06-30T20:59:41.502Z (7 months ago)
- Topics: driver, hardware, modeswitch, networking, raspberry-pi, wifi
- Language: C
- Homepage:
- Size: 3.5 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rtl8821cu
Wifi driver for rtl8811cu/rtl8821cu
### Install
```
sudo ./dkms-install.sh
```
### Remove
```
sudo ./dkms-remove.sh
```
## Build and install without DKMS
```
~$ sudo apt install bc linux-headers-$(uname -r)
```
Use following commands in source directory:
```
make
sudo make install
sudo modprobe 8821cu
```
## Raspberry Pi
To build this driver on Raspberry Pi you need to set correct platform in Makefile.
Change
```
CONFIG_PLATFORM_I386_PC = y
CONFIG_PLATFORM_ARM_RPI = n
CONFIG_PLATFORM_ARM_RPI3 = n
```
to
```
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_RPI = y
CONFIG_PLATFORM_ARM_RPI3 = n
```
For the Raspberry Pi 3 you need to change it to
```
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_RPI = n
CONFIG_PLATFORM_ARM_RPI3 = y
```
### 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:
1. find your usb-wifi-adapter device ID, like "0bda:1a2b", by type:
```
lsusb
```
2. switch the mode by type: (the device ID must be yours.)
Need install `usb_modeswitch` (debian: `sudo apt install usb_modeswitch`)
```
sudo usb_modeswitch -KW -v 0bda -p 1a2b
```
It should work.
### Modeswitch
Just modify the file */lib/udev/rules.d/40-usb_modeswitch.rules* appending before the line *LABEL="modeswitch_rules_end"* with:
```
# Realtek 8811CU/8821CU Wifi AC USB
ATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="usb_modeswitch -K -v 0bda -p 1a2b"
```