Realtek wifi rtl8811au detected as 8812AU/8821AU Fixed

It appears, the system is detecting the USB wifi device but, is not, installing the correct driver for it. If I were more versed in coding I would surely figure out a way to install a driver for it.

usb:0bda-0811;ff-ff-ff;failed;network;;Realtek Semiconductor Corp.;Realtek 8812AU/8821AU 802.11ac WLAN Adapter [USB Wireless Dual-Band Adapter 2.4/5Ghz]

The device is actually a Realtek RTL8811au Wireless lan 802.11ac usb 2.0. ( Windows 10 Driver version 1030.38.712.2019)

I have seen someone post that the driver is proprietary and that is why it is not included into any repositories. However, it did work in an OpenSuse Tumbleweed distro that I tried. Just didn’t like the tumbleweed and decided to try Clear Linux.

Not sure if this is a bug or what but, I would be open to looking for a list of wifi / bluetooth devices that do work unit, this get worked out, if ever. So If you could post what is working for you, that would be great! Would like to incorporate both wifi and bluetooth either, together or separately.

Here is a link to a hardware probe which was done with, the hardware probe app:

Repair ran and ran a new hardware probe.

you probably have to get this driver GitHub - morrownr/8821au-20210708: Linux Driver for USB WiFi Adapters that are based on the RTL8811AU and RTL8821AU Chipsets - v5.12.5.2
get dkms via sudo swupd bundle-add dkms kernel-native-dkms
then clone the repo and run the commands starting from step 4. Let us know if you end up getting stuck

1 Like

it appears to install GCC 12 but the os is currently running 14.

cat /proc/version
Linux version 6.10.1-1453.native (mockbuild@84af3ea5e7e048c2a8e6bc25a61eaa42) (gcc (Clear Linux OS for Intel Architecture) 14.1.1 20240724 releases/gcc-14.1.0-332-gae2909a057, GNU ld (GNU Binutils) 2.42) #1 SMP Wed Jul 24 10:02:10 PDT 2024

Dont really want to down grade to get this done do I. Break dep’s?

Are you failing to build on GCC 14?
Edit: Step 8 is mainly referring to not have version mismatches between what the kernel and the driver are to be compiled in, and lists gcc 12 as an example.

So, try GCC 14?

Did not want to break the system. Thought I would ask first.

I was able to find this as well. It is supposed to be a compatible driver as well.

Yes, this is correct, CL shouldnt have that version mismtach issue thanks to how swupd works

Great!

This is also about the rtl88xxau-dkms.

Linux Driver: A driver package called “realtek-rtl88xxau-dkms” is available for Linux systems, which can be installed from Kali’s repository. This driver has been found to be reliable and useful for RTL8811AU-based devices.

I don’t have that USB WiFi adapter, so I’m unable to test. Unfortunately, you’re in uncharted waters :wink:, I just picked one that matched

Roger that.

I’ve been away from linux for quit some time. LOL

A required package is not installed.
Please install the following package: bc
Once the package is installed, please run “sudo ./install-driver.sh”

1 Like

added bundle bc then,

sudo ./install-driver.sh
: ---------------------------
: install-driver.sh v20240314
: x86_64 (kernel architecture)
: x86_64 (architecture to send to gcc)
: 8/8 (in-use/total processing units)
: 16309668 (total system memory)
: 6.10.1-1453.native (kernel version)
: gcc-14.1.0-332-gae2909a057, (version of gcc used to compile the kernel)
: gcc (Clear Linux OS for Intel Architecture) 14.1.1 20240724 releases/gcc-14.1.0-332-gae2909a057
: dkms-3.0.13
: This system doesn’t support Secure Boot
: ---------------------------

Checking for previously installed drivers…
Finished checking for and removing previously installed drivers.
: ---------------------------

Starting installation.
Installing 8821au.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8821au-5.12.5.2
Error! No write access to DKMS tree at /var/lib/dkms
An error occurred. dkms add error: 1
Please report this error.
Please copy all screen output and paste it into the problem report.
Run the following before reattempting installation.
$ sudo ./remove-driver.sh

1 Like

Unable to find /var/lib/dkms

no dkms dir

dkms bundle not installed.

will run uninstall, install dkms and try the install again.

dkms bundle already installed but cannot write to /var/lib/dkms.

I guess dkms cannot create the folder to write files to.

Unfortunately, the dkms bundle does not make the folder upon installation. Run the following command and try the driver installation again.

sudo mkdir -p /var/lib/dkms

Ran your command.
sudo mkdir -p /var/lib/dkms

then,

sudo ./install-driver.sh
: ---------------------------
: install-driver.sh v20240314
: x86_64 (kernel architecture)
: x86_64 (architecture to send to gcc)
: 8/8 (in-use/total processing units)
: 16309664 (total system memory)
: 6.10.1-1453.native (kernel version)
: gcc-14.1.0-332-gae2909a057, (version of gcc used to compile the kernel)
: gcc (Clear Linux OS for Intel Architecture) 14.1.1 20240724 releases/gcc-14.1.0-332-gae2909a057
: dkms-3.0.13
: This system doesn’t support Secure Boot
: ---------------------------

Checking for previously installed drivers…
Finished checking for and removing previously installed drivers.
: ---------------------------

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

Sign command: /lib/modules/6.10.1-1453.native/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Certificate or key are missing, generating self signed certificate for MOK…

Building module:
Cleaning build area…
Building module(s)…
Signing module /var/lib/dkms/rtl8821au/5.12.5.2/build/8821au.ko
Cleaning build area…
Compile time: 237.09 seconds
The driver was built by dkms successfully.
: ---------------------------

8821au.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.10.1-1453.native/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 to this driver SHOULD be performed before major
upgrades such as kernel 6.5 to 6.6.
Note: Updates can be performed as often as you like. It is
recommended to update at least every 3 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]

1 Like

So to finish this out…

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

I selected (Y) yes just to see what was in the file. To be blunt, not much so, I closed it unedited.
It then, asked me if, I wanted to reboot and I selected yes.

Clear linux rebooted without incident and the wifi is now in network settings and was showing all available networks and I was able to connect to my wifi system here.

Fantastic!

Thanks for the assist fellas!

3 Likes

Ran a new hardware probe to see what changed with the wifi device. Not much but, interesting.

Oops, I’ll try to fix that in the distro.

2 Likes

Fix should be in release 42120, when it rolls out.

Also, @JWarren we have an amateur-radio bundle, if you haven’t noticed already :wink:

1 Like

No help file for it? Nothing coming up. Is it accessed by a particular program?