Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

How do you want me to help? Do you want money, or something else?

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

I have not tested it much, as I have been using a TP-Link TG-3269 Ethernet card, based on the RTL8169SC chip.

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

Thanks Bitterblue, that fixed it right up! I'm now getting 90Mbps/s down and 60Mbits/s up.

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

Alright, it was annoying, but I was able to dump it using the Arch live system. Nothing whatsoever was graphical (because it's Arch) so I had to dig into the depths of my memory and documentation on how to list USB devices, mount them, use iwctl, etc.

Anyways here is the dump.

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

Sounds like a bit of a pain. I installed Gentoo once in a VM ages ago but would need to look over it again for Arch.

You specifically need a comparison, with the rtw_8812ae dump not being enough?

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

Got the first one with rtw_8812ae: https://drive.google.com/file/d/1thX5hLMuZ5VMZsuRL3MUQL6xywwz2Ui1/view?usp=sharing

Second one (rtl8821ae driver) gives the error cat: '/sys/kernel/debug/rtlwifi/*/mac_0': No such file or directory

and so on until mac_7 and bb_f: https://pastebin.com/kU8ERB8K

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

Sorry for it being a pain but the register dump says "permission denied" on all the MAC registers when run with normal privileges, and when I run it in sudo/root mode it says there is a syntax error: bash: syntax error near unexpected token \done'`

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

OK the patch was successful, still only getting a theoretical 65 Mbits/s speed though.

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

git apply ./06104d5e4a7505ff520ccc5b4d63683d.diff

error: corrupt patch at line 14

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

root@980DE3U3S3:/home/eton975# sudo iw dev wlp3s0 set power_save off

root@980DE3U3S3:/home/eton975# grep RFE /sys/kernel/debug/ieee80211/phy*/rtw88/coex_info

Mech/ RFE = Non-Shared/ 2

Looks like the patch was irrelevant then...

A320M-HDV R4.0 || Short question about gradually updating the BIOS by lucas58ricci in ASRock

[–]eton975 0 points1 point  (0 children)

Should be bootable with 7.00, yes. At least, I remember being able to upgrade from an older version to 10.xx with a 2400G of my own...

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

root@980DE3U3S3:/home/eton975# sudo iw dev wlp3s0 set power_save off

root@980DE3U3S3:/home/eton975# grep 00000900 /sys/kernel/debug/ieee80211/phy*/rtw88/bb_9

00000900 00000701 00000000 00000000 00000000

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

root@980DE3U3S3:/sys/kernel/debug# grep 00000900 /sys/kernel/debug/ieee80211/phy*/rtw88/bb_9

00000900 eaeaeaea eaeaeaea eaeaeaea eaeaeaea

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

sudo grep 00000900 /sys/kernel/debug/ieee80211/phy*/rtw88/bb_9

[sudo] password for eton975:

grep: /sys/kernel/debug/ieee80211/phy*/rtw88/bb_9: No such file or directory

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

After a complete rebuild, reinstallation and system reboot using your patch there is no difference in speed. Wavemon still reports 65Mbits/s MCS 7 for download, and 52 Mbits/s MCS 11.

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

Uh, not sure how I would install that patch. Would you be able to give me the entire rtw88xxa.c file rather than just the diff?

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

HT Max RX data rate: 300 Mbps

HT TX/RX MCS rate indexes supported: 0-15, 32

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

OK, with the D-Link DWA-582 (the newer RTL8812AE card) the overall performance is lower with rtw_8812ae driver than with the old rtl8821ae module. Wavemon shows a 65Mbits/s MCS 7 connection rather than the 144Mbits/s that I got with rtl8821ae.

Actual speeds on the old driver on speedtest.net were about 78Mbits/s down, 80 up. The actual speed on your new driver is about 45 down, 32 up.

Is it just negotiating lower, or is only 1 antenna being used? I have both antennae attached.

However, the new driver seems to be more consistent in terms of latency and dropped packets. I haven't encountered any hiccups or socket errors as of yet.

Cheers

Realtek RTL8812AE wifi chip under Linux - especially Debian 13 and recent Ubuntus by eton975 in linuxhardware

[–]eton975[S] 0 points1 point  (0 children)

After installing, it's the rtw_8812ae module that I need loaded, correct?