Realtek rtl8811cu wifi linux

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.

Читайте также:  Jedi academy server linux

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

Читайте также:  Размонтировать сетевой диск linux

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

Источник

Realtek RTL8811CU Wifi Dongle

How may I get the USB Wifi recognized and operational when I plug it in? When I use the lsusb command it shows:
Realtek Semiconductor Corp . For the manufacturer I know the driver is RTL8811CU On the package I can read:

Dual band USB Adapter; 600 mbps; 2.4 GHz + 5 GHz; USB 2.0 High-Speed; IEEE: 802.11 ac; Supported OS: Windows XP/Vista/7/8/10/Mac/Linux; 
Ubuntu 18.04.4 LTS; Release: 18.04; Codename: bionic; 

use this driver for support of the latest version of the Linux kernel. github.com/morrownr/8821cu-20210916

2 Answers 2

It should work. Just open your network configuration manager and connect to your wi-fi hotspot.

enter image description here

In my case it is in Main menu -> Preferences -> Settings -> Wi-Fi:

If your adapter does not work, you could try:

  • sudo apt install dkms -y
  • sudo ubuntu-drivers autoinstall
  • then

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: find your usb-wifi-adapter device ID, like 0bda:1a2b , by type:
lsusb
switch the mode by type: (the device ID must be yours.) Need install usb_modeswitch sudo usb_modeswitch -KW -v 0bda -p 1a2b
It should work.

sudo apt install build-essential -y mkdir -p ~/build cd ~/build sudo apt install git git clone https://github.com/brektrou/rtl8821CU.git cd rtl8821CU make sudo make install 

Источник

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

License

wikimao/RTL8811CU

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

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver version 5.4.1 for Linux 4.4.x up to 5.6.x

A few known wireless cards that use this driver include:

To build, you have to retrieve source and run make . If via Git, do following:

sudo apt-get update sudo apt-get install -y build-essential dkms git git clone https://github.com/fastoe/RTL8811CU.git cd RTL8811CU make sudo make install sudo reboot

Plug your USB Wi-Fi adapter into your PC.

Use the tool ‘iw’, please don’t use other tools like ‘airmon-ng’

iw dev wlan0 set monitor none 

Источник

Оцените статью
Adblock
detector