Mercusys MA20N Wi-Fi Adapter Realtek 8812AU/8821AU 802.11ac not available for use

Good day!
I connected the new Mercusys MA20N Wi-Fi Adapter, but it is not available for use.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.1.106-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 2 × AMD A6-9500E RADEON R5, 6 COMPUTE CORES 2C+4G
Memory: 15.1 ГиБ of RAM
Graphics Processor: AMD Radeon R5 Graphics
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: A320M-H

The system defines as:
Realtek 8812AU/8821AU 802.11ac WLAN Adapter [USB Wireless Dual-Band Adapter 2.4/5Ghz])

Completed the seven steps of the following instructions
https://github.com/morrownr/8821cu-20210916

sudo pacman -Syu

sudo pacman -S --noconfirm linux-headers dkms git bc iw

mkdir -p ~/src

cd ~/src

git clone GitHub - morrownr/8821cu-20210916: Linux Driver for USB WiFi Adapters that are based on the RTL8811CU, RTL8821CU, RTL8821CUH and RTL8731AU Chipsets - v5.12.0.4

cd ~/src/8821cu-20210916

cat /proc/version

Linux version 6.1.106-1-MANJARO (builduser@fv-az1211-232) 
(gcc (GCC) 14.2.1 20240805, GNU ld (GNU Binutils) 2.43.0) 
#1 SMP PREEMPT_DYNAMIC Mon Aug 19 10:07:05 UTC 2024

gcc --version

gcc (GCC) 14.2.1 20240805
Copyright (C) 2024 Free Software Foundation, Inc.

sudo ./install-driver.sh

Your kernel header files aren't properly installed.
Please consult your distro documentation or user support forums.
Once the header files are properly installed, please run "sudo ./install-driver.sh"

Then I found the next topic and followed it

pamac search 8821cu

rtl8821cu-morrownr-dkms-git  5.12.0.4.120.7d16a68-1 AUR
    rtl8821cu chipset driver (morrownr fork)
rtl8821cu-git  5.12.0.34.76605e4-1 AUR
    Linux Driver for USB WiFi Adapters that use the RTL8811CU, RTL8821CU and RTL8731AU Chipsets 
rtl8821cu-dkms-git  5.12.0.1785b39398-1 AUR
    rtl8821cu chipset driver

pamac install $(pamac list --quiet --installed | grep “^linux[0-9][-rt]$” | awk ‘{print $1"-headers"}’ ORS=’ ')

pamac build rtl8821cu-dkms-git

cd ~/src/8821cu-20210916

sudo ./install-driver.sh

: ---------------------------
: install-driver.sh v20231115
: x86_64 (kernel architecture)
: x86_64 (architecture to send to gcc)
: 2/2 (in-use/total processing units)
: 15807872 (total system memory)
: 6.1.106-1-MANJARO (kernel version)
: gcc (version of gcc used to compile the kernel)
: gcc (GCC) 14.2.1 20240805
: dkms-3.0.12
: mokutil not installed
: ---------------------------

Checking for previously installed drivers...
--> rtl8821cu 5.12.0.1881597dfe 6.1.106-1-MANJARO
Module rtl8821cu-5.12.0.1881597dfe for kernel 6.1.106-1-MANJARO (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

8821cu.ko.zst:
 - Uninstallation
   - Deleting from: /usr/lib/modules/6.1.106-1-MANJARO/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod....
Deleting module rtl8821cu-5.12.0.1881597dfe completely from the DKMS tree.
Finished checking for and removing previously installed drivers.
: ---------------------------

Starting installation.
Installing 8821cu.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8821cu-5.12.0.4
Creating symlink /var/lib/dkms/rtl8821cu/5.12.0.4/source -> /usr/src/rtl8821cu-5.12.0.4
The driver was added to dkms successfully.
: ---------------------------

Sign command: /usr/lib/modules/6.1.106-1-MANJARO/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
kernelver=6.1.106-1-MANJARO ./dkms-make.sh....................................................................
Signing module /var/lib/dkms/rtl8821cu/5.12.0.4/build/8821cu.ko
Cleaning build area...
The driver was built by dkms successfully.
: ---------------------------

8821cu.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/6.1.106-1-MANJARO/updates/dkms/
depmod...
The driver was installed by dkms successfully.
: ---------------------------

Info: Update this driver with the following commands as needed:

$ git pull
$ sudo sh install-driver.sh

Note: Updates to this driver SHOULD be performed before distro
      upgrades such as Ubuntu 23.10 to 24.04.
Note: Updates can be performed as often as you like. It is
      recommended to update at least every 2 months.
Note: Work on this driver, like the Linux kernel, is continuous.

Enjoy!

Do you want to edit the driver options file now? (recommended) [Y/n] y

# /etc/modprobe.d/8821cu.conf
#
# Purpose: Allow easy access to specific driver options.
#
# Note: pull-request: wireless-next-2022-12-12
#               wireless-next patches for v6.2
#               wifi: rtw88: Add rtw8821cu chipset support
#
# The following line blacklists (deactivates) the above in-kernel driver.
blacklist rtw88_8821cu
#
# Edit the following line to change, add or delete options:
options 8821cu rtw_led_ctrl=1
#
# Note: The above `options` line is a good default for managed mode. Below is
# an example for AP mode. Modify as required after reading the documentation:
#options 8821cu rtw_drv_log_level=1 rtw_led_ctrl=1 rtw_vht_enable=2 rtw_power_mgnt=1 rtw_beamform_cap=1 rtw_dfs_region_domain=1
#
# After editing is complete, save this file (if using nano: Ctrl + x, y, Enter)
# and reboot to activate the changes.
#
# Important: Some adapters based on the rtl8821cu chipset may require the
# `rtw_RFE_type` option to be set. If wifi or bluetooth does not work
# after driver installation, see the appropriate section in the below
# documentation. This issue has not been seen on wifi only adapters.
#
# Documentation:
#
# -----

I changed

blacklist rtw88_8821cu to #blacklist rtw88_8821cu
options 8821cu rtw_led_ctrl=1 to #options 8821cu rtw_led_ctrl=1
#options 8821cu rtw_drv_log_level=1 rtw_led_ctrl=1 rtw_vht_enable=2 rtw_power_mgnt=1 rtw_beamform_cap=1 rtw_dfs_region_domain=1
to
options 8821cu rtw_drv_log_level=1 rtw_led_ctrl=1 rtw_vht_enable=2 rtw_power_mgnt=1 rtw_beamform_cap=1 rtw_dfs_region_domain=1

sudo reboot

sudo pacman -Syu dkms base-devel --needed

sudo pacman -S $(ls /boot | awk -F “-” ‘/^linux/ { print $1"-headers" }’)

I imagine support requests should ideally be directed to morrownr/8821cu-20210916.

According to the page, the procedure given has only been tested in Manjaro using a very old kernel 5.15.

However, this is the portion you should likely focus on:

Your kernel header files aren't properly installed.
Please consult your distro documentation or user support forums.
Once the header files are properly installed, please run "sudo ./install-driver.sh"

At a minimum, you will need to properly install kernel headers, before you install the drivers.

pamac install linuxXXX-headers

Substitute XXX for the appropriate kernel reference.

And this :point_down:

This is your Chipset. But you installed a driver for 8821CU . Why do you expect this to work?

There are two DKMS packages, for this older chip. You might want to start with rtl8821au-dkms-git . If it does not work you should try the aircrack version.

Thank you very much for paying attention.
I tried to set up a Wi-Fi adapter at 12 o’clock at night, did not pay attention to the discrepancy.
Wi-Fi began to be detected, I managed to connect to the 2.4 and 5 GHz network.
But it works very unstably.
At 5GHz it almost does not work at all. At 2.4GHz pages periodically load, the speed test is interrupted.
I decided to install the latest version of Manjaro, but so far I have encountered another problem.

On another PC I repeated all the steps according to GitHub - morrownr/8821au-20210708: Linux Driver for USB WiFi Adapters that are based on the RTL8811AU and RTL8821AU Chipsets - v5.12.5.2
the Wi-Fi adapter started working.
Thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.