Bug 26178 - Aukey WF-R12 USB3 WIFI Adapter not recognised at all in Mageia
Summary: Aukey WF-R12 USB3 WIFI Adapter not recognised at all in Mageia
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-09 22:36 CET by ian trump
Modified: 2020-03-14 09:09 CET (History)
4 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
dmesg.txt file (67.74 KB, text/plain)
2020-02-10 22:02 CET, ian trump
Details
lsub file requested (1.28 KB, text/plain)
2020-02-20 01:23 CET, ian trump
Details
8812au driver installaion failed (5.33 KB, text/plain)
2020-02-23 20:52 CET, ian trump
Details

Description ian trump 2020-02-09 22:36:08 CET
Description of problem:
WIfi Adapter appears not to be recognised due to no driver installed for it

Version-Release number of selected component (if applicable):
Aukey WF-R12 1750Mps Dual Band WIFI USB3 Adapter 
How reproducible:
When system boots up and logs into kde interface

Steps to Reproduce:
1.Checked for  hardware in control panel and no listing of attached component 
2.Checked in terminal with ifconfig and no listing for component 
3.
ian trump 2020-02-09 22:37:22 CET

Severity: normal => major

ian trump 2020-02-09 22:37:41 CET

CC: (none) => chrisv11c

Comment 1 Kristoffer Grundström 2020-02-10 00:03:24 CET
lsblk

dmesg

hardinfo

Any useful info there?

CC: (none) => hamnisdude

Comment 2 ian trump 2020-02-10 01:48:55 CET
I have two different Linux distributions on my hard drive, Mageia 7 and PC linux 2020.

The Aukey Adapter uses the Realtek rtl8814au driver to work.

When I boot up  Mageia 7 the led on the Adapter does not illuminate and when the kde environment initialises I find out the Adapter has not been found during boot up to be configured,

When I boot into PC linux the led flashes on the Adapter and when initialised in the kde environment the system had found the adapter and I was able to configure it to work.

I looked for the installed drivers in PC Linux for the Adapter and  found that the adapter uses the dkms rtl88xxau v 5.6.4.2 driver with monitor mode and frame injection .This driver supports RTL8812AU/21AU and RTL8814AU chipsets wlan-only.

* Monitor mode
* Frame injection
* MESH Mode (IBSS)
* WPA3 SAE
* Wi-Fi Direct
* wpa_supplicant
* Hostapd
* USB 3.0 (currently forced down to 2)
* Kernel up to v5.3+

If there is any more information you require please advise.
Comment 3 Lewis Smith 2020-02-10 20:42:29 CET
@Ian
Can you please do:
 $ dmesg > dmesg.txt
and attach that output file to the bug?

I cannot find any reference to the Realtek rtl8814au driver; I wonder whether we do not have it [yet].

CC: (none) => lewyssmith
Summary: USB3 WIFI Adapter not recognised at all in Mageia => Aukey WF-R12 USB3 WIFI Adapter not recognised at all in Mageia

Comment 4 ian trump 2020-02-10 22:02:11 CET
Created attachment 11505 [details]
dmesg.txt file
Comment 5 ian trump 2020-02-10 22:38:05 CET
I have done a dmesg on my other Linux distro that recognises the Adapter and it clearly has it loading the module."rtl88xxau: loading out-of-tree module taints kernel".
Comment 6 Lewis Smith 2020-02-11 09:45:37 CET
Thank you for the dmesg output. It shows no reference to rtl88. I suspect this hardware is new to Mageia = unsupported [currently].

Assigning to kernel/drivers team.

Assignee: bugsquad => kernel

Comment 7 ian trump 2020-02-16 20:58:10 CET
I have looked for the driver as used in PC Linux and found what may be a close match if this helps.

https://github.com/astsam/rtl8812au
Comment 8 Dave Hodgins 2020-02-17 04:04:31 CET
# tree -ifa /usr/lib/modules/$(uname -r)/kernel/|grep 8812au.ko
/usr/lib/modules/5.5.4-desktop-1.mga7/kernel/3rdparty/rtl8812au/8812au.ko.xz

Looks like the actual kernel module is 8812au.

Try running (as root), "modprobe -v 8812au".

Also ensure the package kernel-firmware-nonfree is installed, just in case
the kernel module needs to load firmware for that device.

CC: (none) => davidwhodgins

Comment 9 ian trump 2020-02-18 01:50:58 CET
I ran "modprobe -v 8812au" as root and the output produced was:

root@localhost chris]# modprobe -v 8812au
insmod /lib/modules/5.5.4-desktop-1.mga7/kernel/3rdparty/rtl8812au/8812au.ko.xz 
[root@localhost chris]# kernel-firmware-nonfree

The kernel-firmware-nonfree is also installed and still the adapter is not recognised. 

Please advise.
Comment 10 Lewis Smith 2020-02-18 11:53:16 CET
Thanks Dave for your enlightenment.

I wonder whether modprobe would wake up the adapter. 8812au is not present in dmesg. Should it be? Or should it really be 8814?
The pointer in comment 7 implies they are not the same thing:
"RTL8812AU/21AU and RTL8814AU linux driver"
"for building RTL8812AU/RTL8821AU driver..."
"for building RTL8814 driver..."

(In reply to Lewis Smith from comment #3)
> I cannot find any reference to the Realtek rtl8814au driver; I wonder
> whether we do not have it [yet].
Well, we do have the 8812 one, e.g:
 $ urpmf 8812au | grep -v source | grep -v devel | grep 5.4.17 | sort -u
kernel-desktop-5.4.17-1.mga7:/lib/modules/5.4.17-desktop-1.mga7/kernel/3rdparty/rtl8812au
kernel-desktop-5.4.17-1.mga7:/lib/modules/5.4.17-desktop-1.mga7/kernel/3rdparty/rtl8812au/8812au.ko.xz
 $ urpmq -l kernel-desktop-5.4.17-1.mga7 | grep 8812au
/lib/modules/5.4.17-desktop-1.mga7/kernel/3rdparty/rtl8812au
/lib/modules/5.4.17-desktop-1.mga7/kernel/3rdparty/rtl8812au/8812au.ko.xz

Both commands above yield nothing for 8814. We do not have it, perhaps we should.
Comment 11 Thomas Backlund 2020-02-18 12:49:32 CET
Dont read too much into marketing names or chipset names.

Many drivers supports more than one chipset, and the name is not always updated to match.

Note that support for some of theese chipsets are being added upstream, so I try to avoid and add more external drivers if I can avoid it as the realtek code dumps are a mess...


@ian:

please provide the output of "lsusb" with the usb wifi adapter plugged in.

CC: (none) => tmb

Lewis Smith 2020-02-19 10:04:45 CET

CC: lewyssmith => (none)

Comment 12 ian trump 2020-02-20 01:23:27 CET
Created attachment 11511 [details]
lsub file requested

I have attached the lsub file as requested and it gives the line:

Bus 006 Device 003: ID 0bda:8813 Realtek Semiconductor Corp. RTL8814AU 802.11a/b/g/n/ac Wireless Adapter

I hope this helps
Comment 13 Dave Hodgins 2020-02-21 01:00:29 CET
See if manually installing the driver as per
https://github.com/nazar-pc/RTL8814AU works.
Comment 14 ian trump 2020-02-23 20:52:48 CET
Created attachment 11518 [details]
8812au driver installaion failed

I followed the steps to install the driver but it failed to compile with the kernel
Comment 15 ian trump 2020-02-25 01:03:18 CET
I have noticed  the graphical boot screen states that it is building the 8814au driver, but when in the kde environment there is no sign of the detected hardware until I investigated the hardware section in the control centre and found under the scanner section the following information:

Identification
Vendor: ‎Realtek

Description: ‎802.11ac NIC

Media class: ‎

Connection
Bus: ‎USB

Bus PCI #: ‎5

PCI device #: ‎3

Vendor ID: ‎0x0bda

Device ID: ‎0x8813

Misc
Module: ‎usbcore

I hope this helps
Comment 16 ian trump 2020-02-27 00:11:48 CET
Please have a look at the link below as it bears a resemblance to the remarks I made in  comment 2 as it may present a solution to this problem,

https://aur.archlinux.org/packages/rtl88xxau-aircrack-dkms-git/
Comment 17 ian trump 2020-03-07 19:03:35 CET
Can you advise on how to enable the driver to work for the hardware.

It works perfectly well in PC Linux but am at a loss why it is not working in Mageia.

Please advise.
Comment 18 Nicolas Nicolas 2020-03-08 23:34:43 CET
Hello,

Did you install the package kernel-desktop-devel-5.5.4-1.mga7, before trying to run the dkms ?

I should not recommend to run the git clone using the root account (in your case, only the dkms build/install requires this (i know it is easier to get file directly in the /usr/src folder, but it can be downloaded elsewhere then moved locally using root account)).

Note that the kernel seems to already have a 8812au module but your key indentifiers are not in it.

The aircrack repository have in it.
Comment 19 Nicolas Nicolas 2020-03-08 23:59:12 CET
Hello,

Sorry for the noise, but after i look the repository you try to compile, but probably it can be compiled against 5.X kernel ( the repository states kernel up to 4.8 ( perhaps and 4.9 to 4.16 but not on 5.x tree where some things have changes).

You might try the package ( which is not an official one and unsupported) in the thread in the french forum (https://www.mageialinux-online.org/forum/topic-27310-4+wifi-non-reconnu.php#m265821)

CC: (none) => joe_c_moi

Nicolas Nicolas 2020-03-09 00:00:08 CET

CC: joe_c_moi => (none)

Comment 20 Thomas Backlund 2020-03-12 17:03:32 CET
There is now a kernel-5.5.9-1.mga7 in updates testing that should hopefully work better for you
Comment 21 ian trump 2020-03-12 18:51:15 CET
I went to the french forum and downloaded the following package and installed it.

(dkms-rtl8812au-5.6.4.2-1.mga7.noarch.rpm.)

I rebooted the OS and the adapter was recognised. I configured the correct parameters for it and now it working. I can only assume that this package is the same one as the one used in PC linux  so I will check to confirm.
Comment 22 ian trump 2020-03-12 22:17:04 CET
I would like to confirm the package I downloaded and installed for the adapter is identical in size and and content within the folders that reside in both OS systems in the SRC directories.

As my adapter is now configured and working correctly may I suggest Mageia include this package (dkms-rtl8812au-5.6.4.2-1.mga7.noarch.rpm) for comparability with other adapters that require the rtl8814au driver to function.

From what I can gather this package can enable three different driver set-ups to be configured dependent on the the device used. These being:

A) rtl8812au
B) rtl8821au
C) rtl8814au

As my device uses the rtl8814au driver I can only presume the other two drivers are fully conversant with the other devices.
Comment 23 Thomas Backlund 2020-03-12 22:23:37 CET
(In reply to ian trump from comment #22)
> I would like to confirm the package I downloaded and installed for the
> adapter is identical in size and and content within the folders that reside
> in both OS systems in the SRC directories.
> 
> As my adapter is now configured and working correctly may I suggest Mageia
> include this package (dkms-rtl8812au-5.6.4.2-1.mga7.noarch.rpm) for
> comparability with other adapters that require the rtl8814au driver to
> function.

No.

What I need you to do is:


1. remove any wifi configuration
2. uninstall the dkms-rtl8812au package.
3. reboot with kernel-desktop-5.5.9-1.mga7
4. try to reconfigure your wifi.

Does it work ?
Comment 24 Thomas Backlund 2020-03-14 07:33:39 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2020-0140.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 25 Nicolas Nicolas 2020-03-14 09:09:35 CET
Hello,

@Ian Trump: please note that the rpm you install doesn't do theses things on uninstall:

- Remove the folder it created in /usr/src folder
- doesn't re enable the rtl8xxxu module it blacklists to try to avoid conflicts
(blacklist rtl8xxxu added to /etc/modprobe.d/blacklist-compat.conf)

So if you want to test new kernels (which is the better way than using the driver from the rpm that can stop working at any time), you at least need to re enable the rtl8xxxu module if new kernel is using it for the 8814au chipset).

Note You need to log in before you can comment on or make changes to this bug.