PDA

View Full Version : [SOLVED] rtl8812au



whitecat-sudo
January 20th, 2023, 06:04 PM
[EDIT]
solved.

i am trying to install the rtl8812au for my tp link t2u plus ac600, but all i am given is some stupid module error (which i cannot show as i am using another computer to post this) and it does nothing further.
i use kubuntu 22.04 and am trying to use some github drivers.

installed dkms and make from github as well as apt cannot find anything as there is no internet.

i cannot use ethernet or any other wifi adapters, and would really like some help. if anyone knows how i can at least get apt to work, then please tell me as it did work on my live image.

also, system settings just crashes? no clue why.

please help.

TheFu
January 20th, 2023, 08:00 PM
. removed.

whitecat-sudo
January 20th, 2023, 08:04 PM
the hell? i put nothing about "cracking" in this, it's asking how to get a driver working? are you some goddamn bot or something???? did you even read?

TheFu
January 20th, 2023, 08:05 PM
. removed.

whitecat-sudo
January 20th, 2023, 08:42 PM
right, i will. but how do i solve this??

TheFu
January 20th, 2023, 08:47 PM
There's wifi-info script marked "sticky" in the top of the Networking & Wireless" forum. Get that, run it, and post the outputs here.

I don't have a rtl8812au, but believe there are a number of threads about getting that device working in these forums. I vaguely remember an issue in kernels from 5.4 - 5.15 inclusive where the included driver didn't work, but it does worth in 5.18 and later. So, the easy fix, if my memory is correct, means running a 5.18 kernel or later. The other possibility is to get the newer driver code, compile it yourself and setup dkms to use it for the current and newer kernels. My LUG tried to get this working for someone a few weeks ago and failed. In the end, running a distro with 5.18.x kernels was what he decided.

If my memory is correct.

Another thread here says this:


Summary steps pulled from quoted post:
(1) sudo apt install git build-essential libelf-dev linux-headers-`uname -r` debhelper dpkg-dev dkms bc
(2) git clone https://github.com/aircrack-ng/rtl8812au
(3) cd rtl8812au
(4) sudo make dkms_install

unplug usb wifi dongle then re-plug back in.

Huh. Now I see where there aircrack-ng came from. Sorry for the hassles. 100% my mistake. aircrack-ng is a wifi cracking tool. Perhaps you were unaware. I was unaware that drivers from that project would be used for anything non-cracking related. Learn something new every day.


And you have a chicken/egg problem. My answer is to suggest you get a $10-$20 USB-to-ethernet adapter that is well-supported by Linux and use that to get the on the network and install the wifi drivers. At home, I use a cheap USB-to-ethernet adapter rather than wifi, always.
The other solution would be to get a different USB wifi adapter - pick from this list: https://github.com/morrownr/USB-WiFi ... and keep that as an extra, but expect it to be replace every 10 yrs of so, if there's any wifi issue. I have a few USB-wifi dongles around, most are 802.11g, but I have one that is 802.11b and another that is 802.11n (150 Mbps only) for emergency and troubleshooting needs. I haven't used any of them in about a decade. Much prefer the USB-to-GigE ethernet option.

whitecat-sudo
January 20th, 2023, 09:09 PM
can't do either of those, first of all i can see some sticky posts but none mentioning a wifi info script.
secondly, i cannot use apt as it merely tries to find the files from a server but fails as it has no internet, and now a "unmet dependencies, try apt --fix-broken install", which wont work because can't find no servers.

QIII
January 20th, 2023, 09:34 PM
One of the stickies (https://ubuntuforums.org/showthread.php?t=370108) in Networking and Wireless directs you to a script located here (https://github.com/UbuntuForums/wireless-info). At the bottom, you will find directions for using the script if you cannot connect.

TheFu has been here for many years providing great support. He wasn't leading you astray.

whitecat-sudo
January 20th, 2023, 09:51 PM
here is the output



########## wireless info START ##########

Report from: 20 Jan 2023 20:48 GMT +0000

Booted last: 20 Jan 2023 00:00 GMT +0000

Script from: 25 Jan 2020 03:34 UTC +0000

##### release ###########################

Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

##### kernel ############################

Linux 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=7

##### desktop ###########################

Plasma (X11)

##### lspci #############################

01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Dell RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1028:07a3]
Kernel driver in use: r8169

##### lsusb #############################

Bus 002 Device 006: ID 0781:5591 SanDisk Corp. Ultra Flair
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0d8c:0134 C-Media Electronics, Inc. TONOR TC-777 Audio Device
Bus 001 Device 004: ID 1bcf:0005 Sunplus Innovation Technology Inc. Optical Mouse
Bus 001 Device 003: ID 258a:0001 SINO WEALTH USB KEYBOARD
Bus 001 Device 009: ID 2357:0120 TP-Link Archer T2U PLUS [RTL8821AU]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

##### PCMCIA card info ##################

##### rfkill ############################

##### secure boot #######################

SecureBoot disabled

##### lsmod #############################

dell_wmi 24576 0
ledtrig_audio 16384 3 snd_ctl_led,snd_hda_codec_generic,dell_wmi
dell_smbios 28672 1 dell_wmi
sparse_keymap 16384 1 dell_wmi
wmi_bmof 16384 0
dell_wmi_descriptor 20480 2 dell_wmi,dell_smbios
wmi 32768 4 dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
video 61440 2 dell_wmi,i915

##### interfaces ########################

##### ifconfig ##########################

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback <MAC address> brd <MAC address>
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: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether <MAC 'enp1s0' [IF1]> brd <MAC address>

##### iwconfig ##########################

lo no wireless extensions.

enp1s0 no wireless extensions.

##### route #############################

##### resolv.conf #######################

[777 root '/etc/resolv.conf' -> '../run/systemd/resolve/stub-resolv.conf']

nameserver 127.0.0.53
options edns0 trust-ad
search .

##### network managers ##################

Installed:

NetworkManager

Running:

root 780 1 0 17:17 ? 00:00:02 /usr/sbin/NetworkManager --no-daemon

##### NetworkManager info ###############

GENERAL.DEVICE: enp1s0
GENERAL.TYPE: ethernet
GENERAL.NM-TYPE: NMDeviceEthernet
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/Devices/2
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
GENERAL.DRIVER: r8169
GENERAL.DRIVER-VERSION: 5.15.0-58-generic
GENERAL.FIRMWARE-VERSION: --
GENERAL.HWADDR: <MAC 'enp1s0' [IF1]>
GENERAL.MTU: 1500
GENERAL.STATE: 20 (unavailable)
GENERAL.REASON: 2 (Device is now managed)
GENERAL.IP4-CONNECTIVITY: 1 (none)
GENERAL.IP6-CONNECTIVITY: 1 (none)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/net/enp1s0
GENERAL.PATH: pci-0000:01:00.0
GENERAL.IP-IFACE: --
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.NM-PLUGIN-MISSING: no
GENERAL.PHYS-PORT-ID: --
GENERAL.CONNECTION: --
GENERAL.CON-UUID: --
GENERAL.CON-PATH: --
GENERAL.METERED: unknown
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: unknown
CAPABILITIES.IS-SOFTWARE: no
CAPABILITIES.SRIOV: no
INTERFACE-FLAGS.UP: yes
INTERFACE-FLAGS.LOWER-UP: no
INTERFACE-FLAGS.CARRIER: no
INTERFACE-FLAGS.PROMISC: no
WIRED-PROPERTIES.CARRIER: off
IP4.GATEWAY: --
IP6.GATEWAY: --
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: --

##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

##### NetworkManager config #############

[[/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf]]
[connection]
wifi.powersave = 3

[[/etc/NetworkManager/NetworkManager.conf]]
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no

[[/usr/lib/NetworkManager/conf.d/10-dns-resolved.conf]]
[main]
dns=systemd-resolved

[[/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf]]
[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:gsm,except: type:cdma

[[/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf]]
[device-31-mac-addr-change]
match-device=driver:eagle_sdio,driver:wl
wifi.scan-rand-mac-address=no

##### NetworkManager profiles ###########

[[/etc/NetworkManager/system-connections/SKYBKU6U.nmconnection]] (600 root)
[connection] id=SKYBKU6U | type=wifi | permissions=user:kubuntu:;
[wifi] ssid=SKYBKU6U
[ipv4] method=auto
[ipv6] method=auto

##### Netplan config ####################

[/etc/netplan/01-network-manager-all.yaml]
network:
version: 2
renderer: NetworkManager

##### iw reg get ########################

'iw' is not installed (package "iw").

##### iwlist channels ###################

lo no frequency information.

enp1s0 no frequency information.

##### iwlist scan #######################

lo Interface doesn't support scanning.

enp1s0 Interface doesn't support scanning.

##### module infos ######################

##### module parameters #################

##### /etc/modules ######################

##### modprobe options ##################

[/etc/modprobe.d/amd64-microcode-blacklist.conf]
blacklist microcode

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/intel-microcode-blacklist.conf]
blacklist microcode

[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211

##### rc.local ##########################

grep: /etc/rc.local: No such file or directory

##### pm-utils ##########################

##### udev rules ########################

##### dmesg #############################

########## wireless info END ############

whitecat-sudo
January 20th, 2023, 10:06 PM
also, i probably should leave now, so if you can't figure out what to do, then i suggest figuring out how to get apt to work without internet, as it worked flawlessly on the live installation of ubuntu. and that has packages on the flash drive, so maybe see if that could do anything?

chili555
January 20th, 2023, 10:11 PM
all i am given is some stupid module error (which i cannot show

Can’t you note the essential sentence or two that helps us help you and post it?

I believe that the aircrack-ng driver is correct; viz:


Bus 001 Device 009: ID 2357:0120 TP-Link Archer T2U PLUS [RTL8821AU]


chili@T440p:~/Desktop/Forum/aircrack/rtl8812au$ modinfo 88XXau.ko | grep 0120
alias: usb:v2357p0120d*dc*dsc*dp*ic*isc*ip*in*It compiles without any warnings or errors on my 22.10 system.

TheFu
January 20th, 2023, 10:40 PM
TheFu has been here for many years providing great support. He wasn't leading you astray.

To be fair, I sorta was initially - when I saw aircrack-ng ... I made some incorrect assumptions. My bad. The OP was trying to be clear and helpful by including that information in the original post. I didn't realize at the time that in the :next release dev" forum that specific driver was recommended for this device. I was more concerned that mentioning aircrack would get the post closed.

I tried to clarify and said I was sorry.

I suppose we can only do the best that we can.

whitecat-sudo
January 21st, 2023, 12:17 PM
i just need to know how i can get apt working without internet. it's literally all i need for this to work.

whitecat-sudo
January 21st, 2023, 12:41 PM
It compiles without any warnings or errors on my 22.10 system.[/QUOTE]

alright, but it does not for me.
trying sudo make dkms_install wont even work now, as it probably tried fixing dkms by removing it.

i can't even use dkms as i do not have any of the packages required for it, and those packages have more, and those more and so on.

in the LIVE INSTALLATION OF UBUNTU, it did work because it has packages on the flash drive but i want to know how i can get those working on a proper install.

chili555
January 21st, 2023, 03:18 PM
i just need to know how i can get apt working without internet. it's literally all i need for this to work.Please chech here: https://askubuntu.com/questions/1356017/no-wifi-adapter-found-after-moving-from-windows/1356129#1356129

I assume that you need the required build tools; you haven't specified. If that is the case, get:

build-essential
dkms
dpkg-dev
fakeroot
g++
g++-7
gcc
gcc-7
libalgorithm-diff-perl
libalgorithm-diff-xs-perl
libalgorithm-merge-perl
libasan4
libatomic1
libc-dev-bin
libc6-dev
libcilkrts5
libfakeroot
libgcc-7-dev
libitm1
liblsan0
libmpx2
libquadmath0
libstdc++-7-dev
libtsan0
libubsan0
linux-libc-dev
make
manpages-dev

Post back if you get stuck.

TheFu
January 21st, 2023, 03:40 PM
i just need to know how i can get apt working without internet. it's literally all i need for this to work.

This is harder than it sounds. apt uses the internet, so that isn't the tool. You'll need to use dpkg directly. Alas, dpkg doesn't do dependency resolution, so the human operator will need to do that. The first level isn't so hard, but the 2nd, 3rd, 4th .... dependencies expand somewhat. I don't know of any existing tool, but I suspect there is one, that can trace dependencies.

Another option would be to boot off the installation media, go into the "Try Ubuntu" mode where a full ubuntu is provided. From there, all sorts of things are possible, but I don't know that the next things will actually work. You say that during the install, networking worked, so in the Try Ubuntu environment, it should work. Hopefully.
Anyway, I'd suggest setting up a chroot environment where apt can be used, packages can be installed, and when you are done, the needed driver would be installed into the fully installed OS. I'm not positive this can work. I use chroots to fix booting issues only. Never tried to install packages into a installed system. .... Anyway, a how-to for setting up a chroot for most of an ubuntu OS:
Overview: https://help.ubuntu.com/community/BasicChroot ... maybe read the top paragraphs.
https://superuser.com/questions/111152/whats-the-proper-way-to-prepare-chroot-to-recover-a-broken-linux-installation ... you'll just want to have networking from the "Try Ubuntu", but have access to the rest of the OS that was already installed. Because of isolation that chroot creates, an all-in-one script isn't possible, unfortunately. This means you'll need to type. Hopefully, you know about tab-completion/command-completion in bash to avoid misspellings and pointing at incorrect directories/filenames due to stupid typos (we all make them). Anyway, setup the chroot, be certain to mount /lib/ /var/ and /usr/ into the chroot environment, then try to use apt and dkms as posted above to install the updated drivers.

This is a complex thing, which is why I suggested just getting a different, cheap, network device above and using that long enough to get the updated drivers installed with dkms.

jeremy31
January 21st, 2023, 04:25 PM
I built the driver using the same kernel that you have and we can see if it will work
Download
https://gitlab.com/jeremy53561/rtl8812au-5.15.0-58/-/raw/main/88XXau.ko
Put it on flash drive and put it in home directory on Ubuntu
Then in terminal


sudo cp 88XXau.ko /lib/modules/5.15.0-58-generic/kernel/drivers/net/wireless/
sudo depmod -a
Reboot
If it works, you should be able to install git and dkms and install the driver yourself for kernel updates

whitecat-sudo
January 21st, 2023, 05:00 PM
I built the driver using the same kernel that you have and we can see if it will work
Download
https://gitlab.com/jeremy53561/rtl8812au-5.15.0-58/-/raw/main/88XXau.ko
Put it on flash drive and put it in home directory on Ubuntu
Then in terminal


sudo cp 88XXau.ko /lib/modules/5.15.0-58-generic/kernel/drivers/net/wireless/
sudo depmod -a
Reboot
If it works, you should be able to install git and dkms and install the driver yourself for kernel updates

Thank you so much, this actually worked. Gigachad.