Setting up WiFi with a Volans VL-UW120 AC1200 USB WiFi dongle

So I’m going to see if I can find out how to set up this WiFi dongle: Volans VL-UW120 AC1200. I couldn’t get it to work when I got it initially when I bought it about years ago, but I’ll see how I go. First I need to find the latest driver…

Hello @jamesray :wink:

Nope, that is wrong. If the dongle does not work, you need first the chip id and which chipset it uses.

lsusb -vt
inxi -Nazy

Then check the ID on the internet. Lets say: https://linux-hardware.org/?view=search
There type in the vendor id and the device id (vendor:device).

If it works there on other distros, then there is a way to let it work, otherwise search on github/gitlab if there is a dkms for this. If not, then no driver is available.

EDIT: This one could probably work:

pamac build rtl8812au-dkms-git

Dont forget to install the headers. For example:

pamac install linux54-headers

Thanks @megavolt

BTW I think I posted about this in the old forum a couple of years ago, with the same RTL88x2bu chipset as shown below

$ lsusb -vt
...
    |_ Port 2: Dev 6, If 0, Class=Vendor Specific Class, Driver=, 480M
        ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]
...
$ inxi -Nazy
Network:
   Device-1: Realtek RTL8111/8168/6411 PCI Express Gigabit Ethernet
# not the dongle, obviously this is the Ethernet cable
  vendor: ASUStek ...
[jr@fm ~]$ yay rtl88x2bu
2 aur/rtl88x2bu-cilynx-dkms-git 5.3.1.r39.eece063-1 (+0 0.00) (Orphaned) 
    Kernel module for Realtek rtl88x2bu WiFi chipset
1 aur/rtl88x2bu-dkms-git 5.8.7.1.r93.f915368-1 (+19 2.08) 
    Kernel module for Realtek rtl88x2bu WiFi chipset
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 

Looks like aur/rtl88x2bu-dkms-git is best

End of installation output, looks like I need to install the following kernel headers:

(2/2) Install DKMS modules
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 4.19.175-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.10.15-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.4.97-1-MANJARO: Missing kernel headers.
$ yay 54
...
2 core/linux54-headers 5.4.105-1 (9.4 MiB 47.0 MiB) 
    Header files and scripts for building modules for Linux54 kernel
1 core/linux54 5.4.105-1 (82.5 MiB 142.4 MiB) (Installed: 5.4.97-1)
    The Linux54 kernel and modules
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 2
[sudo] password for jr: 
resolving dependencies...
looking for conflicting packages...

Packages (1) linux54-headers-5.4.105-1

Total Download Size:    9.45 MiB
Total Installed Size:  46.96 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 linux54-headers-5.4.105-1-x86_64                                   9.4 MiB  1936 KiB/s 00:05 [#######################################################] 100%
(1/1) checking keys in keyring                                                                [#######################################################] 100%
(1/1) checking package integrity                                                              [#######################################################] 100%
(1/1) loading package files                                                                   [#######################################################] 100%
(1/1) checking for file conflicts                                                             [#######################################################] 100%
(1/1) checking available disk space                                                           [#######################################################] 100%
:: Processing package changes...
(1/1) installing linux54-headers                                                              [#######################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Install DKMS modules
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.4.105-1-MANJARO: Missing kernel modules tree.
[jr@fm ~]$ 

I have to leave this, will come back to it later.

Just trying to figure out how to solve this…

Found this:

Oops I don’t think I took in the rest of the above comment.

pamac build rtl8812au-dkms-git

Dont forget to install the headers. For example:

pamac install linux54-headers

Modifying for rtl88x2bu-dkms-git

[jr@fm ~]$ pamac build rtl88x2bu-dkms-git         
Preparing...
Cloning rtl88x2bu-dkms-git build files...
Checking rtl88x2bu-dkms-git dependencies...
Warning: downgrading package rtl88x2bu-dkms-git (5.8.7.1.r117.fbb5f57-1 => 5.8.7.1.r93.f915368-1)
Resolving dependencies...
Checking inter-conflicts...

To install (2):
  flex                2.6.4-3                                          core  304.4 kB
  bison               3.7.3-1                                          core  769.5 kB
To build (1):
  rtl88x2bu-dkms-git  5.8.7.1.r93.f915368-1  (5.8.7.1.r117.fbb5f57-1)  AUR

Total download size: 1.1 MB
Total installed size: 3.4 MB

Edit build files : [e] 
Apply transaction ? [e/y/N] y

Download of bison (3.7.3-1) started                                                                                                                         
Download of flex (2.6.4-3) started                                                                                                                          
Download of flex (2.6.4-3) finished                                                                                                                         
Download of bison (3.7.3-1) finished                                                                                                                        
Checking keyring...                                                                                                                                    [2/2]
Checking integrity...                                                                                                                                  [2/2]
Loading packages files...                                                                                                                              [2/2]
Checking file conflicts...                                                                                                                             [2/2]
Checking available disk space...                                                                                                                       [2/2]
Installing flex (2.6.4-3)...                                                                                                                           [1/2]
Installing bison (3.7.3-1)...                                                                                                                          [2/2]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                                                         [1/2]
Updating the info directory file...                                                                                                                    [2/2]

Building rtl88x2bu-dkms-git...
==> Making package: rtl88x2bu-dkms-git 5.8.7.1.r93.f915368-1 (Fri 02 Apr 2021 15:15:36)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning RTL88x2BU-Linux-Driver git repo...
Cloning into bare repository '/var/tmp/pamac-build-jr/rtl88x2bu-dkms-git/RTL88x2BU-Linux-Driver'...
remote: Enumerating objects: 734, done.
remote: Counting objects: 100% (734/734), done.
remote: Compressing objects: 100% (591/591), done.
remote: Total 2104 (delta 292), reused 262 (delta 141), pack-reused 1370
Receiving objects: 100% (2104/2104), 9.43 MiB | 3.27 MiB/s, done.
Resolving deltas: 100% (1068/1068), done.
==> Validating source files with sha256sums...
    RTL88x2BU-Linux-Driver ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of RTL88x2BU-Linux-Driver git repo...
Cloning into 'RTL88x2BU-Linux-Driver'...
done.
==> Starting pkgver()...
==> Updated version: rtl88x2bu-dkms-git 5.8.7.1.r117.fbb5f57-1
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "rtl88x2bu-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl88x2bu-dkms-git 5.8.7.1.r117.fbb5f57-1 (Fri 02 Apr 2021 15:15:49)
==> Cleaning up...

Checking keyring...                                                                                                                                    [1/1]
Checking integrity...                                                                                                                                  [1/1]
Loading packages files...                                                                                                                              [1/1]
Checking file conflicts...                                                                                                                             [1/1]
Checking available disk space...                                                                                                                       [1/1]
==> Unable to remove module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 4.19.175-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.4.105-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.10.15-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 4.9.261-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.4.97-1-MANJARO: Not found in dkms status output.
Reinstalling rtl88x2bu-dkms-git (5.8.7.1.r117.fbb5f57-1)...                                                                                            [1/1]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                                                         [1/2]
Install DKMS modules                                                                                                                                   [2/2]
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 4.19.175-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.4.105-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.10.15-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 4.9.261-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.4.97-1-MANJARO: Missing kernel headers.
Transaction successfully finished.

[jr@fm ~]$ pamac install linux54-headers
Preparing...
Resolving dependencies...
Checking inter-conflicts...

To install (2):
  linux510-headers  5.10.23-1     core  9.9 MB
  linux419-headers  4.19.180-1    core  9.2 MB

Total download size: 19.1 MB
Total installed size: 96.5 MB

Apply transaction ? [y/N] y
Download of linux419-headers (4.19.180-1) started                                                                                                           
Download of linux510-headers (5.10.23-1) started                                                                                                            
Download of linux419-headers (4.19.180-1) finished                                                                                                          
Download of linux510-headers (5.10.23-1) finished                                                                                                           
Checking keyring...                                                                                                                                    [2/2]
Checking integrity...                                                                                                                                  [2/2]
Loading packages files...                                                                                                                              [2/2]
Checking file conflicts...                                                                                                                             [2/2]
Checking available disk space...                                                                                                                       [2/2]
Installing linux510-headers (5.10.23-1)...                                                                                                             [1/2]
Installing linux419-headers (4.19.180-1)...                                                                                                            [2/2]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                                                         [1/3]
Updating module dependencies...                                                                                                                        [2/3]
Install DKMS modules                                                                                                                                   [3/3]
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 4.19.180-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.10.23-1-MANJARO: Missing kernel modules tree.
Transaction successfully finished.
[jr@fm ~]$ pamac install linux419-headers linux510-headers
Preparing...
Nothing to do.
Transaction successfully finished.
[jr@fm ~]$ 

==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 4.19.175-1-MANJARO: Missing kernel headers.

Similar error, however a different module, and the solution doesn’t seem to help:

BTW, WiFi still isn’t working.

[jr@fm ~]$ pamac build rtl8812au-dkms-git
Preparing...
Cloning rtl8812au-dkms-git build files...
Checking rtl8812au-dkms-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  rtl8812au-dkms-git  5.9.3.2.r8.gb95e750-1    AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building rtl8812au-dkms-git...
==> Making package: rtl8812au-dkms-git 5.9.3.2.r8.gb95e750-1 (Fri 02 Apr 2021 15:38:01)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning rtl8812au-5.9.3.2 git repo...
Cloning into bare repository '/var/tmp/pamac-build-jr/rtl8812au-dkms-git/rtl8812au-5.9.3.2'...
remote: Enumerating objects: 771, done.
remote: Counting objects: 100% (771/771), done.
remote: Compressing objects: 100% (437/437), done.
remote: Total 771 (delta 334), reused 765 (delta 328), pack-reused 0
Receiving objects: 100% (771/771), 2.72 MiB | 2.42 MiB/s, done.
Resolving deltas: 100% (334/334), done.
  -> Found dkms.conf
==> Validating source files with sha256sums...
    rtl8812au-5.9.3.2 ... Skipped
    dkms.conf ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of rtl8812au-5.9.3.2 git repo...
Cloning into 'rtl8812au-5.9.3.2'...
done.
==> Starting pkgver()...
==> Updated version: rtl8812au-dkms-git 5.9.3.2.r9.gd1bf6df-1
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "rtl8812au-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl8812au-dkms-git 5.9.3.2.r9.gd1bf6df-1 (Fri 02 Apr 2021 15:38:10)
==> Cleaning up...

Checking keyring...                                                                                                                                    [1/1]
Checking integrity...                                                                                                                                  [1/1]
Loading packages files...                                                                                                                              [1/1]
Checking file conflicts...                                                                                                                             [1/1]
Checking available disk space...                                                                                                                       [1/1]
Installing rtl8812au-dkms-git (5.9.3.2.r9.gd1bf6df-1)...                                                                                               [1/1]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                                                         [1/2]
Install DKMS modules                                                                                                                                   [2/2]
==> Unable to install module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 4.9.261-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 4.19.175-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 5.4.97-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 5.10.23-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 5.10.15-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 4.19.180-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 5.4.105-1-MANJARO: Missing kernel modules tree.
Transaction successfully finished.
[jr@fm ~]$ modinfo rtl8812au-dkms-git
modinfo: ERROR: Module rtl8812au-dkms-git not found.
[jr@fm ~]$ modinfo rtl88x2bu-dkms-git 
modinfo: ERROR: Module rtl88x2bu-dkms-git not found.
[jr@fm ~]$
[jr@fm ~]$ yay rtl8822bu
4 aur/rtl8822bu 1-1 (+1 0.02) 
    wireless lan driver for realtek devices like GigaBlue WLAN Stick 1200MBit Dual Band USB 3.0
3 aur/rtl8822bu-dkms-raspberrypi 1.1-1 (+2 0.02) 
    Kernel module for Edimax EW7822ULC USB3 and Asus AC53 Nano USB 802.11ac adapter. (for raspberrypi)
2 aur/rtl8822bu-git r51.9438d45-1 (+4 0.02) (Orphaned) 
    Driver for the Realtek 822bu chipset.
1 aur/rtl8822bu-dkms-git 20180723-12 (+23 1.21) 
    Kernel module for Edimax EW7822ULC USB3, Asus AC53 Nano USB 802.11ac and TP-Link Archer T4U adapter.
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1 4
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:2]  rtl8822bu-1-1  rtl8822bu-dkms-git-20180723-12

:: Downloaded PKGBUILD (1/2): rtl8822bu
:: Downloaded PKGBUILD (2/2): rtl8822bu-dkms-git
  2 rtl8822bu                                (Build Files Exist)
  1 rtl8822bu-dkms-git                       (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/2) Parsing SRCINFO: rtl8822bu
:: (2/2) Parsing SRCINFO: rtl8822bu-dkms-git
==> Making package: rtl8822bu-dkms 1-2 (Fri 02 Apr 2021 15:44:14)
==> Retrieving sources...
  -> Downloading master.zip...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   129  100   129    0     0    318      0 --:--:-- --:--:-- --:--:--   318
100 3840k    0 3840k    0     0  1592k      0 --:--:--  0:00:02 --:--:-- 2482k
  -> Found dkms.conf
==> Validating source files with md5sums...
    master.zip ... FAILED
    dkms.conf ... Passed
==> ERROR: One or more files did not pass the validity check!
error downloading sources: rtl8822bu
[jr@fm ~]$ yay rtl8822bu
4 aur/rtl8822bu 1-1 (+1 0.02) 
    wireless lan driver for realtek devices like GigaBlue WLAN Stick 1200MBit Dual Band USB 3.0
3 aur/rtl8822bu-dkms-raspberrypi 1.1-1 (+2 0.02) 
    Kernel module for Edimax EW7822ULC USB3 and Asus AC53 Nano USB 802.11ac adapter. (for raspberrypi)
2 aur/rtl8822bu-git r51.9438d45-1 (+4 0.02) (Orphaned) 
    Driver for the Realtek 822bu chipset.
1 aur/rtl8822bu-dkms-git 20180723-12 (+23 1.21) 
    Kernel module for Edimax EW7822ULC USB3, Asus AC53 Nano USB 802.11ac and TP-Link Archer T4U adapter.
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  rtl8822bu-dkms-git-20180723-12

  1 rtl8822bu-dkms-git                       (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: PKGBUILD up to date, Skipping (1/1): rtl8822bu-dkms-git
  1 rtl8822bu-dkms-git                       (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: rtl8822bu-dkms-git
==> Making package: rtl8822bu-dkms-git 20180723-12 (Fri 02 Apr 2021 15:45:08)
==> Retrieving sources...
  -> Cloning rtl8822bu git repo...
Cloning into bare repository '/home/jr/.cache/yay/rtl8822bu-dkms-git/rtl8822bu'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 2345 (delta 0), reused 2 (delta 0), pack-reused 2337
Receiving objects: 100% (2345/2345), 8.31 MiB | 3.52 MiB/s, done.
Resolving deltas: 100% (1437/1437), done.
  -> Found dkms.conf
==> Validating source files with sha256sums...
    rtl8822bu ... Skipped
    dkms.conf ... Passed
==> Making package: rtl8822bu-dkms-git 20180723-12 (Fri 02 Apr 2021 15:45:13)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating rtl8822bu git repo...
Fetching origin
  -> Found dkms.conf
==> Validating source files with sha256sums...
    rtl8822bu ... Skipped
    dkms.conf ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of rtl8822bu git repo...
Cloning into 'rtl8822bu'...
done.
==> Starting prepare()...
==> Sources are ready.
==> Making package: rtl8822bu-dkms-git 20180723-12 (Fri 02 Apr 2021 15:45:16)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "rtl8822bu-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl8822bu-dkms-git 20180723-12 (Fri 02 Apr 2021 15:45:23)
==> Cleaning up...
 -> Found git repo: github.com/Mephysto666/rtl8822bu.git
[sudo] password for jr: 
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) rtl8822bu-dkms-git-20180723-12

Total Installed Size:  22.78 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                                [#######################################################################################] 100%
(1/1) checking package integrity                                                                                                              [#######################################################################################] 100%
(1/1) loading package files                                                                                                                   [#######################################################################################] 100%
(1/1) checking for file conflicts                                                                                                             [#######################################################################################] 100%
(1/1) checking available disk space                                                                                                           [#######################################################################################] 100%
:: Processing package changes...
(1/1) installing rtl8822bu-dkms-git                                                                                                           [#######################################################################################] 100%

Creating symlink /var/lib/dkms/rtl8822bu/20180723/source ->
                 /usr/src/rtl8822bu-20180723

DKMS: add completed.
Error! echo
Your kernel headers for kernel 5.4.97-1-MANJARO cannot be found at
/usr/lib/modules/5.4.97-1-MANJARO/build or /usr/lib/modules/5.4.97-1-MANJARO/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> Unable to install module rtl8822bu/20180723 for kernel 5.4.97-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl8822bu/20180723 for kernel 5.10.23-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8822bu/20180723 for kernel 4.19.175-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl8822bu/20180723 for kernel 5.4.105-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8822bu/20180723 for kernel 5.10.15-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl8822bu/20180723 for kernel 4.19.180-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8822bu/20180723 for kernel 4.9.261-1-MANJARO: Missing kernel modules tree.
[jr@fm ~]$

This error is a bit more helpful, i.e.:

Error! echo
Your kernel headers for kernel 5.4.97-1-MANJARO cannot be found at
/usr/lib/modules/5.4.97-1-MANJARO/build or /usr/lib/modules/5.4.97-1-MANJARO/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
[jr@fm ~]$ yay linux54-rt-rtl88x2bu
no packages match search
[jr@fm ~]$ yay linux54-rt-rtl8822bu
no packages match search
[jr@fm ~]$ yay linux54-rt-rtl88
no packages match search
[jr@fm ~]$ 

linux510-headers, linux54-headers, and linux419-headers are all installed…

Oops, I thought the -rt above stood for Realtek! :man_facepalming:

Locating paths to kernel headers…

[jr@fm ~]$ mhwd-kernel -li
Currently running: 5.4.97-1-MANJARO (linux54)
The following kernels are installed in your system:
   * linux419
   * linux510
   * linux54

Not sure how to do that yet.

BTW, there’s this but I don’t think that package will help:

[jr@fm ~]$ yay linux54-rtl
1 extra/linux54-rtl8723bu 20210302-5 (11.0 MiB 11.1 MiB) [linux54-extramodules] 
    A kernel module for Realtek 8723bu network cards
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 

I tried installing it anyway, but this isn’t surprising:

(1/1) installing linux54-rtl8723bu                                                                                                            [#######################################################################################] 100%
>>> The module rtl8723bu conflicts with rtl8xxxu.
>>> rtl8xxxu has been blacklisted using \`/etc/modprobe.d/blacklist_rtlxxxu.conf\`
modprobe: ERROR: could not insert '8723bu': Invalid argument
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating module dependencies...
[jr@fm ~]$ 

I don’t expect that 8723bu will work with 8822bu.

It works on two distros (evidently GitHub Flavoured Markdown doesn’t work for tables on Discourse):

|HWid|Type|Vendor / Model|Probes|System|Last Status|
| — | — | — | — | — |
|97bb7 »|desktop|ASUSTek /
P8H77-M PRO|21|[image] ROSA R9-R11|works|[image]

Requires additional driver from https://github.com/EntropicEffect/rtl8822bu.|
|3189e »|mini
tower|HP /
339A|2|[image] Parrot 4.10|works|[image]

Only with downloaded DKMS-drivers: https://github.com/cilynx/rtl88x2bu|

Still trying to hack on a solution:

[jr@fm ~]$ yay rtl88x2bu
2 aur/rtl88x2bu-cilynx-dkms-git 5.3.1.r39.eece063-1 (+0 0.00) (Orphaned) 
    Kernel module for Realtek rtl88x2bu WiFi chipset
1 aur/rtl88x2bu-dkms-git 5.8.7.1.r93.f915368-1 (+19 2.06) (Installed: 5.8.7.1.r117.fbb5f57-1)
    Kernel module for Realtek rtl88x2bu WiFi chipset
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 2
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  rtl88x2bu-cilynx-dkms-git-5.3.1.r39.eece063-1

:: Downloaded PKGBUILD (1/1): rtl88x2bu-cilynx-dkms-git
  1 rtl88x2bu-cilynx-dkms-git                (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: rtl88x2bu-cilynx-dkms-git
==> Making package: rtl88x2bu-cilynx-dkms-git 5.3.1.r39.eece063-1 (Fri 02 Apr 2021 16:24:14)
==> Retrieving sources...
  -> Cloning rtl88x2bu-cilynx git repo...
Cloning into bare repository '/home/jr/.cache/yay/rtl88x2bu-cilynx-dkms-git/rtl88x2bu-cilynx'...
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 830 (delta 33), reused 29 (delta 13), pack-reused 762
Receiving objects: 100% (830/830), 3.67 MiB | 3.91 MiB/s, done.
Resolving deltas: 100% (297/297), done.
==> Validating source files with sha256sums...
    rtl88x2bu-cilynx ... Skipped
==> Making package: rtl88x2bu-cilynx-dkms-git 5.3.1.r39.eece063-1 (Fri 02 Apr 2021 16:24:18)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating rtl88x2bu-cilynx git repo...
Fetching origin
==> Validating source files with sha256sums...
    rtl88x2bu-cilynx ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of rtl88x2bu-cilynx git repo...
Cloning into 'rtl88x2bu-cilynx'...
done.
==> Starting pkgver()...
==> Updated version: rtl88x2bu-cilynx-dkms-git 5.3.1.r41.c1a5dab-1
==> Sources are ready.
==> Making package: rtl88x2bu-cilynx-dkms-git 5.3.1.r41.c1a5dab-1 (Fri 02 Apr 2021 16:24:21)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "rtl88x2bu-cilynx-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl88x2bu-cilynx-dkms-git 5.3.1.r41.c1a5dab-1 (Fri 02 Apr 2021 16:24:28)
==> Cleaning up...
 -> Found git repo: github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959.git
[sudo] password for jr: 
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) rtl88x2bu-cilynx-dkms-git-5.3.1.r41.c1a5dab-1

Total Installed Size:  22.78 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                                [#######################################################################################] 100%
(1/1) checking package integrity                                                                                                              [#######################################################################################] 100%
(1/1) loading package files                                                                                                                   [#######################################################################################] 100%
(1/1) checking for file conflicts                                                                                                             [#######################################################################################] 100%
(1/1) checking available disk space                                                                                                           [#######################################################################################] 100%
:: Processing package changes...
(1/1) installing rtl88x2bu-cilynx-dkms-git                                                                                                    [#######################################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> Unable to install module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 4.19.180-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 4.9.261-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 5.4.97-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 5.4.105-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 5.10.23-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 4.19.175-1-MANJARO: Missing kernel headers.
==> Unable to install module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 5.10.15-1-MANJARO: Missing kernel headers.
[jr@fm ~]$ 
[jr@fm ~]$ sudo pacman -S $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')
warning: linux419-headers-4.19.180-1 is up to date -- reinstalling
warning: linux510-headers-5.10.23-1 is up to date -- reinstalling
warning: linux54-headers-5.4.105-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (3) linux419-headers-4.19.180-1  linux510-headers-5.10.23-1  linux54-headers-5.4.105-1

Total Installed Size:  139.02 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] 
(3/3) checking keys in keyring                                                                                                                [#######################################################################################] 100%
(3/3) checking package integrity                                                                                                              [#######################################################################################] 100%
(3/3) loading package files                                                                                                                   [#######################################################################################] 100%
(3/3) checking for file conflicts                                                                                                             [#######################################################################################] 100%
(3/3) checking available disk space                                                                                                           [#######################################################################################] 100%
:: Running pre-transaction hooks...
(1/2) Remove upgraded DKMS modules
==> Unable to remove module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 4.19.180-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl8822bu/20180723 for kernel 5.10.23-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 4.19.180-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 5.10.23-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.4.105-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 4.19.180-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl8822bu/20180723 for kernel 5.4.105-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 5.4.105-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl8822bu/20180723 for kernel 4.19.180-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 5.4.105-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 5.10.23-1-MANJARO: Not found in dkms status output.
==> Unable to remove module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.10.23-1-MANJARO: Not found in dkms status output.
(2/2) Save Linux kernel modules
:: Processing package changes...
(1/3) reinstalling linux419-headers                                                                                                           [#######################################################################################] 100%
(2/3) reinstalling linux510-headers                                                                                                           [#######################################################################################] 100%
(3/3) reinstalling linux54-headers                                                                                                            [#######################################################################################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Install DKMS modules
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 4.19.180-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8822bu/20180723 for kernel 5.10.23-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 4.19.180-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 5.10.23-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.4.105-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 4.19.180-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8822bu/20180723 for kernel 5.4.105-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8812au/5.9.3.2.r9.gd1bf6df for kernel 5.4.105-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl8822bu/20180723 for kernel 4.19.180-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 5.4.105-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.3.1.r41.c1a5dab for kernel 5.10.23-1-MANJARO: Missing kernel modules tree.
==> Unable to install module rtl88x2bu/5.8.7.1.r117.fbb5f57 for kernel 5.10.23-1-MANJARO: Missing kernel modules tree.
(4/4) Restore Linux kernel modules

==> Warning:
         -> Kernel has been updated. Modules of the current kernel
         -> have been backed up so you can continue to use your
         -> computer. However, the new kernel will only work 
         -> at next boot.


[jr@fm ~]$

Until this point I hadn’t run a system update…

…
(10/36) Updating module dependencies...
(11/36) Install DKMS modules
==> dkms install --no-depmod -m rtl88x2bu -v 5.8.7.1.r117.fbb5f57 -k 4.19.180-1-MANJARO
==> dkms install --no-depmod -m rtl8822bu -v 20180723 -k 5.10.23-1-MANJARO
==> dkms install --no-depmod -m rtl88x2bu -v 5.3.1.r41.c1a5dab -k 4.19.180-1-MANJARO
Error! Module version v5.3.1_27678.20180430_COEX20180427-5959 for 88x2bu.ko.xz
is not newer than what is already found in kernel 4.19.180-1-MANJARO (v5.8.7.2_36899.20200819_COEX20191120-7777).
You may override by specifying --force.
==> dkms install --no-depmod -m rtl8812au -v 5.9.3.2.r9.gd1bf6df -k 5.10.23-1-MANJARO
==> dkms install --no-depmod -m rtl88x2bu -v 5.8.7.1.r117.fbb5f57 -k 5.4.105-1-MANJARO
==> dkms install --no-depmod -m rtl8812au -v 5.9.3.2.r9.gd1bf6df -k 4.19.180-1-MANJARO
==> dkms install --no-depmod -m rtl8822bu -v 20180723 -k 5.4.105-1-MANJARO
Error! Module version v5.3.1_27678.20180430_COEX20180427-5959 for 88x2bu.ko.xz
is not newer than what is already found in kernel 5.4.105-1-MANJARO (v5.8.7.2_36899.20200819_COEX20191120-7777).
You may override by specifying --force.
==> dkms install --no-depmod -m rtl8812au -v 5.9.3.2.r9.gd1bf6df -k 5.4.105-1-MANJARO
==> dkms install --no-depmod -m rtl8822bu -v 20180723 -k 4.19.180-1-MANJARO
Error! Module version v5.3.1_27678.20180430_COEX20180427-5959 for 88x2bu.ko.xz
is not newer than what is already found in kernel 4.19.180-1-MANJARO (v5.8.7.2_36899.20200819_COEX20191120-7777).
You may override by specifying --force.
==> dkms install --no-depmod -m rtl88x2bu -v 5.3.1.r41.c1a5dab -k 5.4.105-1-MANJARO
Error! Module version v5.3.1_27678.20180430_COEX20180427-5959 for 88x2bu.ko.xz
is not newer than what is already found in kernel 5.4.105-1-MANJARO (v5.8.7.2_36899.20200819_COEX20191120-7777).
You may override by specifying --force.
==> dkms install --no-depmod -m rtl88x2bu -v 5.3.1.r41.c1a5dab -k 5.10.23-1-MANJARO
Error! Bad return status for module build on kernel: 5.10.23-1-MANJARO (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.3.1.r41.c1a5dab/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m rtl88x2bu -v 5.3.1.r41.c1a5dab -k 5.10.23-1-MANJARO' returned 10
==> dkms install --no-depmod -m rtl88x2bu -v 5.8.7.1.r117.fbb5f57 -k 5.10.23-1-MANJARO
==> depmod 5.4.105-1-MANJARO
==> depmod 5.10.23-1-MANJARO
==> depmod 4.19.180-1-MANJARO
(12/36) Restarting cronie for libc upgrade...
(13/36) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux419.preset: 'default'
  -> -k /boot/vmlinuz-4.19-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-4.19-x86_64.img
==> Starting build: 4.19.180-1-MANJARO
…

I should remove the drivers that I don’t need.

After the system upgrade and reboot it works!

Wow, after all that, it looks like what did the trick was to do a full system upgrade (which should’ve been obvious), and then run pamac build rtl8822bu-dkms-git and install the headers with sudo pacman -Syu $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ') and then reboot, I just did that in a different order which seems like the reason why I got errors with dkms removing modules and installing them, with errors for missing kernel modules tree.