lwfinger / rtl8852au

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASUS USB-AX56 with USB ID 0b05:1997

Thomot512 opened this issue · comments

I have not been able to use the Asus USB-AX56 with Arch linux 6.0.10-arch2-1.
I tried on three different machine, a tower with Intel CPU and NVidia GPU, a laptop with Intel CPU and GPU, and a tower with AMD CPU and GPU.
I installed the rtw89-dkms-git package from the AUR, set the usb modeswitch rules to avoid having the dongle detected as a mass storage USB.
Yet the computer does not detect any new network interface.

dmesg

[   46.359934] usb 1-1: USB disconnect, device number 4
[   48.273649] usb 1-1: new high-speed USB device number 5 using xhci_hcd
[   48.501498] usb 1-1: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 0.00
[   48.501510] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   48.501514] usb 1-1: Product: DISK
[   48.501517] usb 1-1: Manufacturer: Realtek
[   48.512535] usb-storage 1-1:1.0: USB Mass Storage device detected
[   48.512784] scsi host12: usb-storage 1-1:1.0
[   48.574574] audit: type=1130 audit(1670092649.715:80): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[   48.585656] audit: type=1130 audit(1670092649.725:81): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[   48.595086] audit: type=1130 audit(1670092649.735:82): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[   48.610281] audit: type=1130 audit(1670092649.752:83): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[   49.160537] usb 1-1: USB disconnect, device number 5
[   49.990302] usb 1-1: new high-speed USB device number 6 using xhci_hcd
[   50.218570] usb 1-1: New USB device found, idVendor=0b05, idProduct=1997, bcdDevice= 0.00
[   50.218579] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   50.218581] usb 1-1: Product: 802.11ac WLAN Adapter
[   50.218583] usb 1-1: Manufacturer: Realtek
[   50.218585] usb 1-1: SerialNumber: 00e04c000001
[   51.674665] audit: type=1130 audit(1670092652.815:84): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   51.674676] audit: type=1131 audit(1670092652.815:85): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@1-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   56.929842] audit: type=1101 audit(1670092658.072:86): pid=1520 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="magicmirror" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   56.930299] audit: type=1110 audit(1670092658.072:87): pid=1520 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[   56.931530] audit: type=1105 audit(1670092658.072:88): pid=1520 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'

lsusb

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 003: ID 1b1c:1b09 Corsair Vengeance K70R keyboard
Bus 005 Device 002: ID 08d3:1000 Virtual Ink Touch Device,32-20P
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 003: ID 214e:0005 Swiftpoint Z - Gaming mouse [SM700]
Bus 001 Device 006: ID 0b05:1997 ASUSTek Computer, Inc. 802.11ac WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ip address

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp4s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether f4:b5:20:32:1e:76 brd ff:ff:ff:ff:ff:ff

Any idea what I'm doing wrong?

I also noticed that the kernel modules rtw89_* were not loaded automatically. I added rtw89_8852auin a file in/etc/modules-load.d/`.
The modules loaded but it did not make any difference.

While trying to compile from source I got an [-Werror=date-time] error. I took the EXTRAFLAGS+= -Wno-error=date-time out of the if statement and it compiled.
After that I could install and the device worked. It seems the AUR package has an issue.

I am surprised that you got that date-time error. Something is really funny about your compiler. Making the change that you did made my build fail! Perhaps, the code in the Makefile could not determine your actual version. In any case, I removed the offending statement from the code, and eliminated all references to date-time from Makefile.

The AUR package rtw89-dkms-git is for PCI devices. The base rtw89 does not YET support USB modules. That will be rectified sometime, but I have no idea how soon. Code has just been submitted to support the wifi5 devices.

Your first log snippet shows that mode switch has worked. On my 6.1-rc7 system running on openSUSE Tumbleweed, I did the 'make' and 'sudo make install', and then plugged in the device. In my log, I got

[99374.337546] usb 2-6: new high-speed USB device number 7 using xhci_hcd
[99374.486046] usb 2-6: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 0.00
[99374.486051] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[99374.486053] usb 2-6: Product: DISK
[99374.486054] usb 2-6: Manufacturer: Realtek
[99374.487526] usb-storage 2-6:1.0: USB Mass Storage device detected
[99374.487799] scsi host5: usb-storage 2-6:1.0
[99375.753361] usb 2-6: USB disconnect, device number 7
[99376.497537] usb 2-6: new high-speed USB device number 8 using xhci_hcd
[99376.646026] usb 2-6: New USB device found, idVendor=2001, idProduct=3321, bcdDevice= 0.00
[99376.646031] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[99376.646032] usb 2-6: Product: 802.11ac WLAN Adapter
[99376.646033] usb 2-6: Manufacturer: Realtek
[99376.646034] usb 2-6: SerialNumber: 00e04c000001
[99377.646783] usbcore: registered new interface driver rtl8852au
[99377.664719] rtl8852au 2-6:1.0 wlp0s20u6: renamed from wlan0

You see thefollowing:

  1. The USB storage device is recognized at 99374.486046.
  2. It is disconnected by mode switch at 99375.753361.
  3. The very next line shows the system reporting the appearance of the wifi device.
  4. The usbcore shows the starting of the driver at 99377.646783.
  5. The network interface is renamed in the last line, and NetworkManager has completed the connection

Your system never reaches step 4. Did you do the 'sudo make install' step? There is no dkms routine that will do that for you. The configuration file is present, but you will need to install it yourself.

I am surprised that you got that date-time error. Something is really funny about your compiler. Making the change that you did made my build fail! Perhaps, the code in the Makefile could not determine your actual version. In any case, I removed the offending statement from the code, and eliminated all references to date-time from Makefile.

I don't know what happened but this morning I was able to pull and compile without changes. Thanks!

Your system never reaches step 4. Did you do the 'sudo make install' step? There is no dkms routine that will do that for you. The configuration file is present, but you will need to install it yourself.

The snipped you observed was with the rtw89-dkms-git installed using a AUR helper, paru. But since the rtw89 is not supposed to work with the USB dongles, isn't that to be expected that it does not reach step 4?

This is what I get now with the manually installed rtl8852au pulled from git.
dmesg

[  442.949986] usb 3-1: new high-speed USB device number 3 using xhci_hcd
[  443.092612] usb 3-1: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 0.00
[  443.092618] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  443.092620] usb 3-1: Product: DISK
[  443.092622] usb 3-1: Manufacturer: Realtek
[  443.192226] audit: type=1130 audit(1670143250.707:86): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@3-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[  443.206738] audit: type=1130 audit(1670143250.724:87): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@3-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[  443.216757] audit: type=1130 audit(1670143250.734:88): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@3-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[  443.222823] usb-storage 3-1:1.0: USB Mass Storage device detected
[  443.222959] scsi host12: usb-storage 3-1:1.0
[  443.223002] usbcore: registered new interface driver usb-storage
[  443.225302] usbcore: registered new interface driver uas
[  443.236355] audit: type=1130 audit(1670143250.750:89): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@3-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[  443.791170] usb 3-1: USB disconnect, device number 3
[  444.288328] audit: type=1131 audit(1670143251.804:90): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  444.526672] usb 3-1: new high-speed USB device number 4 using xhci_hcd
[  444.669125] usb 3-1: New USB device found, idVendor=0b05, idProduct=1997, bcdDevice= 0.00
[  444.669131] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  444.669133] usb 3-1: Product: 802.11ac WLAN Adapter
[  444.669135] usb 3-1: Manufacturer: Realtek
[  444.669136] usb 3-1: SerialNumber: 00e04c000001
[  445.711841] rtl8852au 3-1:1.0 wlp10s0f3u1: renamed from wlan0
[  445.728066] audit: type=1130 audit(1670143253.244:91): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  445.761030] audit: type=1111 audit(1670143253.277:92): pid=542 uid=0 auid=4294967295 ses=4294967295 msg='op=statistics interface="wlan0" ifindex=4 args=500 pid=798 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[  446.220333] audit: type=1130 audit(1670143253.737:93): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@3-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  446.220340] audit: type=1131 audit(1670143253.737:94): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usb_modeswitch@3-1 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  449.297348] audit: type=1131 audit(1670143256.814:95): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  450.114309] audit: type=1111 audit(1670143257.631:96): pid=542 uid=0 auid=4294967295 ses=4294967295 msg='op=statistics interface="wlp10s0f3u1" ifindex=4 args=500 pid=798 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[  450.734587] audit: type=1131 audit(1670143258.251:97): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  451.747190] audit: type=1101 audit(1670143259.264:98): pid=1519 uid=1000 auid=1000 ses=2 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="magicmirror" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  451.748026] audit: type=1110 audit(1670143259.264:99): pid=1519 uid=1000 auid=1000 ses=2 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  451.750725] audit: type=1105 audit(1670143259.267:100): pid=1519 uid=1000 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'

Apparently the step 4 is not present, and the computer somehow jumped to step 5, but the device still appear to be working just fine!?

After you did a git pull, it compiled without error because I fixed thew issue, just the way I told you in my previous comment.

If it is working fine, then there are no more issues,