Closed zburgermeiszter closed 1 year ago
@dchagniot I can see you made the code change for this adapter. Did you run any commands in addition to the list of commands explained in the readme file?
Your postings show that the driver is loaded, and no errors are shown. That leaves only the user-space configuration as a potential problem. I do not have this device, thus I cannot test; however, all the other Realtek USB devices using similar drivers have configured on openSUSE using NetworkManager.
nmcli
does not recognise the device:
➜ ~ nmcli device status
DEVICE TYPE STATE CONNECTION
wlp0s20f3 wifi connected *******
90:78:B2:****** bt disconnected --
p2p-dev-wlp0s20f3 wifi-p2p disconnected --
lo loopback unmanaged --
Actually, I do have this device. After building and loading the driver, it connected to my AP and I got the following output:
finger@localhost:~/rtl8852au>nmcli dev status
DEVICE TYPE STATE CONNECTION
enp0s25 ethernet connected enp0s25
wlp0s20u6 wifi connected Larry_ac
wlp4s0 wifi connected NETGEAR81-5G
wls1 wifi connected Larry-ax
p2p-dev-wlp0s20u6 wifi-p2p disconnected --
p2p-dev-wlp4s0 wifi-p2p disconnected --
p2p-dev-wls1 wifi-p2p disconnected --
lo loopback unmanaged --
The 8852au is wlp0s20u6. I tested with both USB2 and USB3 ports. As far as I can tell, everything is working, which points back to something in your user-space wireless networking code. My distro is openSUSE Tumbleweed with a KDE desktop with NetworkManager 1.40.10. My kernel is 6.2.0-rc4. I have no idea what may be wrong.
I read the readme again, and realised, I forgot to add the modprobe line with the correct IDs. Maybe I'll need to clarify the wording to clarify it is required to all adapter on the list, not only for DWA-x1850.
It is working now if I connect it directly to my laptop, but if I connect it to the USD hub in my monitor it is still recognised as a storage device. The hub is USB 2.0 mode to be able to use 4k 60Hz over USB-C.
dmesg
:
[ 541.423732] usb 3-2.1: new high-speed USB device number 22 using xhci_hcd
[ 541.524921] usb 3-2.1: New USB device found, idVendor=0bda, idProduct=1a2b, bcdDevice= 0.00
[ 541.524932] usb 3-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 541.524935] usb 3-2.1: Product: DISK
[ 541.524937] usb 3-2.1: Manufacturer: Realtek
[ 541.526841] usb-storage 3-2.1:1.0: USB Mass Storage device detected
[ 541.527233] scsi host1: usb-storage 3-2.1:1.0
[ 542.544371] scsi 1:0:0:0: Direct-Access RTK Driver Storage 2.00 PQ: 0 ANSI: 0 CCS
[ 542.544782] sd 1:0:0:0: Attached scsi generic sg0 type 0
[ 542.545449] sd 1:0:0:0: [sdb] 32384 512-byte logical blocks: (16.6 MB/15.8 MiB)
[ 542.545812] sd 1:0:0:0: [sdb] Write Protect is on
[ 542.545815] sd 1:0:0:0: [sdb] Mode Sense: 03 00 80 00
[ 542.546188] sd 1:0:0:0: [sdb] No Caching mode page found
[ 542.546194] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 542.583832] sdb:
[ 542.620998] sd 1:0:0:0: [sdb] Attached SCSI removable disk
➜ ~ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0c45:672d Microdia Integrated_Webcam_HD
Bus 003 Device 020: ID 0bda:1100 Realtek Semiconductor Corp. Integrated_Webcam_HD
Bus 003 Device 019: ID 0bda:5418 Realtek Semiconductor Corp.
Bus 003 Device 022: ID 0bda:1a2b Realtek Semiconductor Corp.
Bus 003 Device 017: ID 0bda:5411 Realtek Semiconductor Corp. USB2.1 Hub
Bus 003 Device 007: ID 8087:0026 Intel Corp.
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 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Is the USB hub changing the device ID causing the modprobe rule to stay inactive?
There is a utility called usb_modeswitch that automatically switches to the underlying wifi device. There is also a service that starts the process. I have file /usr/lib/udev/rules.d/40-usb_modeswitch.rules with the following code (among others):
ATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="usb_modeswitch '/%k'"
Apparently, your system does not have this line, or the service is not starting. https://askubuntu.com/questions/1080944/automatically-use-usb-modeswitch-for-wifi-usb covers this issue.
It worked when plugged in directly to the laptop, but it did not when plugged in to a hub.
I returned the adapter, it did not help much with the network latency and stability, so my rot issue will be related to walls and/or router.
This ticket can be closed, it was mainly a user error. Thank you for your help.
Thank you for your work.
I'm trying to set up a TP-Link AX1800 device on my Kubuntu 20.04 (kernel: 5.11.0-44-generic). Followed your instructions, also installed the DKIM module, but the device is still not showing as a network device in Network Manager.
uname -r
output:lsmod | grep 8852au
output:lsusb
output:dmesg
output:sudo hwinfo --network --short
output:wlp0s20f3
is the built in wifi card.Any help is really appreciated, and I'm happy to help with further logs. Thank you.