Asus AC-56 (8812au) USB wifi wont work

To cut a long story short, I had to reinstall Zorin Core. When I first intstalled it back at late last year, I had issues getting my Asus AC-56 (8812AU) USB Wifi dongle to work. But I managed to get it working somehow.

I have tried installing drivers from github but keep getting this error when I make the install:

steve@PC:~/Downloads/rtl8812au-master$ make

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.13.0-51-generic/build M=/home/steve/Downloads/rtl8812au-master modules

make[1]: Entering directory '/usr/src/linux-headers-5.13.0-51-generic'

CC [M] /home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.o

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c: In function ‘isFileReadable’:

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2096:11: error: implicit declaration of function ‘get_fs’; did you mean ‘get_ds’? [-Werror=implicit-function-declaration]

2096 | oldfs = get_fs();

*| ^~~~~~*

| get_ds

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2096:11: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct ’} from type ‘int’

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2097:3: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]

2097 | set_fs(get_ds());

*| ^~~~~~*

| sget_fc

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2076:21: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?

2076 | #define get_ds() (KERNEL_DS)

*| ^~~~~~~~~*

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2097:10: note: in expansion of macro ‘get_ds’

2097 | set_fs(get_ds());

*| ^~~~~~*

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2076:21: note: each undeclared identifier is reported only once for each function it appears in

2076 | #define get_ds() (KERNEL_DS)

*| ^~~~~~~~~*

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2097:10: note: in expansion of macro ‘get_ds’

2097 | set_fs(get_ds());

*| ^~~~~~*

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c: In function ‘retriveFromFile’:

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2134:12: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct ’} from type ‘int’

2134 | oldfs = get_fs();

*| ^~~~~~*

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2076:21: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?

2076 | #define get_ds() (KERNEL_DS)

*| ^~~~~~~~~*

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2135:11: note: in expansion of macro ‘get_ds’

2135 | set_fs(get_ds());

*| ^~~~~~*

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c: In function ‘storeToFile’:

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2169:12: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct ’} from type ‘int’

2169 | oldfs = get_fs();

*| ^~~~~~*

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2076:21: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?

2076 | #define get_ds() (KERNEL_DS)

*| ^~~~~~~~~*

/home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.c:2170:11: note: in expansion of macro ‘get_ds’

2170 | set_fs(get_ds());

*| ^~~~~~*

cc1: some warnings being treated as errors

make[2]: *** [scripts/Makefile.build:281: /home/steve/Downloads/rtl8812au-master/os_dep/osdep_service.o] Error 1

make[1]: *** [Makefile:1879: /home/steve/Downloads/rtl8812au-master] Error 2

make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-51-generic'

make: *** [Makefile:1852: modules] Error 2

Any ideas why?

Also, when I do lsusb I can see the USB adaptor:

steve@PC:~/Downloads/rtl8812au-master$ lsusb

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 005 Device 003: ID 0b05:17d2 ASUSTek Computer, Inc. USB-AC56 802.11a/b/g/n/ac Wireless Adapter [Realtek RTL8812AU]

Bus 005 Device 002: ID 044f:b106 ThrustMaster, Inc. T.Flight Stick X

Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 001 Device 002: ID 1b1c:1b0e Corsair Corsair K40A Gaming Keyboard

Bus 001 Device 003: ID 046d:c07e Logitech, Inc. G402 Gaming Mouse

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

But when I do lspci I get:

steve@PC:~/Downloads/rtl8812au-master$ lspci

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex

00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU

00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge

00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge

00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge

00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge

00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge

00:03.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge

00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge

00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge

00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge

00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]

00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge

00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]

00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]

00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 0

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 1

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 2

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 3

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 4

00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 5

00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 6

00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 7

01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43d0 (rev 01)

01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller (rev 01)

01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge (rev 01)

02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)

02:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)

02:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)

02:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)

02:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)

02:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)

05:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)

08:00.0 USB controller: ASMedia Technology Inc. ASM1143 USB 3.1 Host Controller

09:00.0 VGA compatible controller: NVIDIA Corporation GM200 [GeForce GTX 980 Ti] (rev a1)

09:00.1 Audio device: NVIDIA Corporation GM200 High Definition Audio (rev a1)

0a:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983

0b:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function

0c:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP

0c:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP

0c:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller

0c:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller

0d:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)

0e:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)

From what I remember, I think I had to power the USB on or switch something on to get it to eventually work.

So from not being able to install the wifi driver to not actually seeing it as an active device, what do I need to do?

I have secure boot off too.

Have you yet tried:

sudo apt update && sudo apt install -y rtl8812au-dkms

Installing with DKMS (Dynamic Kernel Module Support) will allow you to upgrade your kernel without having to reinstall the driver every time you change the kernel.

Thanks for the reply.

Having just make this thread, I managed to get a solution from the ubuntu forums.

First I unchecked default driver of wifi in additional Drivers.

Then:

Realtek rtl8812au Driver Ubuntu 22.04 Installation - Step-by-step • Installing • tutorialforlinux.com

Replace 8812au.ko with 88XXau.ko

Now all working. :slight_smile:

1 Like