aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
GNU General Public License v2.0
3.58k stars 783 forks source link

USB Wifi TP-Link AC600 cannot work with newest version #1159

Open kienngd opened 6 months ago

kienngd commented 6 months ago

I use Ubuntu 24.04 Kernel: 6.8.0-31 Wifi: TP-Link AC600 wireless Realtek RTL8811AU [Archer T2U Nano] ID 2357:011e I install by command sudo make dkms_install with newest version, wifi will disconnect after init. So I cannot list wifi list. But if I reset code to commit 63cf0b4584aa8878b0fe8ab38017f31c319bde3d. Wifi works fine.

tukkek commented 2 months ago

Just wanted to add my report that the latest version fails to find networks with my TP-Link Nano USB AC600 Archer T2U but using a fresh clone and switching to https://github.com/aircrack-ng/rtl8812au/commit/63cf0b4584aa8878b0fe8ab38017f31c319bde3d has it working. Other than that, this is already the best, fastest and most stable of the 3 drivers I've used so far so big thanks to the developers and hopefully the latest issues can be fixed soon.

My kernel is: 6.10.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.10.6-1 (2024-08-19) x86_64 GNU/Linux.

For both latest and detached versions, I get a nasty trace message during boot that wasn't there before and I haven't updated any system packages either. I won't share it since I'm using the older version now and everything is fine.

arxo commented 2 months ago

I also ran into the same issue on Linux Mint 22, using commit https://github.com/aircrack-ng/rtl8812au/commit/63cf0b4584aa8878b0fe8ab38017f31c319bde3d solved it for me as well. I hope this regression gets fixed in the latest version soon.

SteveTran159 commented 1 month ago

Thank you all so much. I also got stuck in installing the driver for TP-Link Archer T2U Nano (Realtek rtl8811au) in Xubuntu 22.04. I could do this in live usb smoothly, but I got an error when installing Xu on my old hard drive. ERROR (dkms apport): binary package for 8812au: 5.6.4.2_35491.20191025 not found I surfed a lot and tried many ways like using old version (5.3.4), using rtl8812au-dkms (from ppa:kelebek333/kablosuz) but all failed, still got the same error or successfully installed but couldn't connect to wifi. After all, I tried the way in this page and it worked with the git code 63cf0b4 and two commands: sudo make then sudo make install. The driver was not shown in dkms but it worked after I rebooted. (I got error when running sudo make dkms_install, the installing process showed some error and DKMS showed the package installed with a warning 'built different from installed')

NoDuckyAnyMore commented 1 month ago

I was also having this issue. I originally installed the most recent version using dkms, but it didn't work and I tried a few times with no success. But I got it working.

Ill share what I did to hopefully help others, but I'm not totally sure exactly what steps were important to fixing the issue:

  • Unplugged the USB adapter
  • Ran dkms status to find the name of the dkms module I had installed.
  • Used sudo dkms remove <module name> --all to delete the old driver (replace module name with the name from the prev step).
  • Restarted computer.
  • Fully deleted the git folder (rtl8812au) so that I could re-clone it with no changes.
  • Used git clone https://github.com/aircrack-ng/rtl8812au.git to redownload the files.
  • cd rt*
  • Then I decided to update everything just to be sure:

    • sudo apt-get update
    • sudo apt-get install bc mokutil build-essential libelf-dev linux-headers-`uname -r`
    • sudo apt-get upgrade
  • Then, I did git checkout 63cf0b4 to set it to the known working version, and a git status just to be sure there were no changed files.
  • Ran sudo make, and then sudo make install.
  • Finally, sudo service NetworkManager restart, and then I plugged in the USB adapter and it worked.

Holy god!!! Bro, you are a true hero!! Work for me!!!!

SteveTran159 commented 1 month ago

One more thing I'd like to share is, I also got the error of lacking package pahole and 'Skipping BTF generation xxx. due to unavailability of vmlinux' while compiling (run sudo make). I solved this after reading an article on askubuntu. The compiling process need the vmlinux file in /usr/lib/modules/uname-r/build but it's not there. The compiling process succeeded after I installed the package pahole and created a symlink for the vmlinux file (located in /sys/kernel/btf) in the above folder. Besides Xubuntu 22.04, changing git code to 63cf0b4 is also a must in Linux Lite 6.6. In live usb Linux Lite 6.6, I forgot changing the git code but the installation process still worked, so I skipped this step in Linux Lite (official installation on hard drive). I saw the compiling process had some warnings, not run smoothly. I still could install the driver but couldn't connect to the internet wifi at home. Then I had to remove the driver by sudo make uninstall. In the second installation, I changed the git code to 63cf0b4 and it worked!

D-Nayte commented 4 weeks ago

@NoDuckyAnyMore

Same here. Did it like you and just works fine now.

but after the git checkout i also did

AND

ARM32

$ export ARCH=arm
$ sed -i 's/^MAKE="/MAKE="ARCH=arm\ /' dkms.conf

Or, for ARM64 run the following before re-building:

$ export ARCH=arm64
$ sed -i 's/^MAKE="/MAKE="ARCH=arm64\ /' dkms.conf

like mentioned in the Readme.