You are not logged in.

#1 2023-07-05 11:29:12

archlinuxappreciator
Member
Registered: 2023-07-05
Posts: 3

[Solved] No WiFi with the Mediatek MT7922 adapter and MT7921e driver

Greetings everyone,

I wanted to install arch on my (Asus Rog Flow X13)  and compile Rust with all 16 cores. Funnily enough they equipped this monster of a laptop with a flimsy Network Adapter such as MT7922.
It came with windows and WiFI was working properly there.

What I've tried currently:

  • re-install everything without windows

  • different kernels (zen, lts, vanilla) of versions 6.4.2, 6.1.18

  • modprobe -r mt7921e && modprobe mt7921e

  • disable fast-boot and secure-boot from BIOS

  • power-off by holding 40sec and 60sec to hard reset it many times

  • blacklist mt7921e and start it myself

The adapter shows on lspci but as you'll see below the driver fails with error -5.
Since the laptop itself doesn't support wired connection I'm using tethering through a phone. I did update all packages and kernels.

Looking forward to your thoughts! Thanks!

~$ hwinfo

Driver Info #0:
Driver Status: mt7921e is active
...
Driver Info #1:
Driver Status: wl is active
...
Config Status: cfg=new, avail=yes, need=no, active=unknown

~$ lspci

Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
Subsystem: ASUSTeK Computer Inc. GL9744 SD Host Controller
Flags: bus master, fast devsel, latency 0, IRQ 64, IOMMU group 16
Memory at ...
Memory at ...
Capabilities: ...
Kernel modules: mt7921e, wl
// notice there's no "Kernel driver in use" field

~$ nmcli device

DEVICE   TYPE         STATE                   CONNECTION
lo       loopback     connected (externally)  lo

~$ iw list

 // no output 

~$ sudo dmesg | grep mt792

mt7921e: {address} driver own failed
mt7921e: probe of {address} failed with error -5 
// as far as I know -5 is an I/O error?

Last edited by archlinuxappreciator (2023-07-06 06:33:26)

Offline

#2 2023-07-05 11:48:19

loqs
Member
Registered: 2014-03-06
Posts: 17,493

Re: [Solved] No WiFi with the Mediatek MT7922 adapter and MT7921e driver

Have you tried https://lore.kernel.org/lkml/2023061406 … cal.com/T/ mentioned here?
Also listed kernel flavors but not the versions of those you have tried.  Why are you redacting the PCI address of the NIC?

Offline

#3 2023-07-05 13:28:56

archlinuxappreciator
Member
Registered: 2023-07-05
Posts: 3

Re: [Solved] No WiFi with the Mediatek MT7922 adapter and MT7921e driver

Hello Loqs!

I did see the mentioned thread and patch; I'll have to re-compile the kernel tho in order to patch it so i left it last for later today.
Regarding the versions, tried the current latest 6.4.1 (all kernels), then if I remember correctly 6.2.1 (all kernels)

I'm actually typing the output (so not copy/paste) on my other laptop so most reducted/shorterned parts are so I don't write it all.

Any other ideas or questions welcome

Offline

#4 2023-07-05 14:10:20

seth
Member
Registered: 2012-09-03
Posts: 51,920

Re: [Solved] No WiFi with the Mediatek MT7922 adapter and MT7921e driver

BBS predates markdown, https://bbs.archlinux.org/help.php#bbcode
https://wiki.archlinux.org/title/Tethering - otherwise usb-walk the outputs.

If the mentioned patches don't help, please post your complete system journal for the boot:

sudo journalctl -b > /tmp/journal.txt
cat /tmp/journal.txt | curl -F 'f:1=<-' ix.io # obviously requires network

Offline

#5 2023-07-06 06:09:50

archlinuxappreciator
Member
Registered: 2023-07-05
Posts: 3

Re: [Solved] No WiFi with the Mediatek MT7922 adapter and MT7921e driver

Hello everyone, I did compile the kernel with the mentioned patch above and WiFi would appear after I manually

 sudo modprobe mt7921e 

which is a good step.

The issue is I'll have to keep it patched which I'm never a fan of and never doing (even with the programs I'll build).
Will ping on the upstream of MT79 so they get to put a solution on the official release.

Feel free to mark this as solved, thanks!

Offline

#6 2023-07-06 06:13:10

seth
Member
Registered: 2012-09-03
Posts: 51,920

Re: [Solved] No WiFi with the Mediatek MT7922 adapter and MT7921e driver

Mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB