Score:3

Mediatek mt7921e network card not working

km flag

I just installed Ubuntu 22.04 desktop on my Zephyrus Duo 16 GX650PY but I can't get my Wifi card to work.

$ lspci -k
04:00.0 Network controller: MEDIATEK Corp. Device 0616
    Subsystem: Foxconn International, Inc. Device e0df
    Kernel modules: mt7921e

$ sudo lshw -C network
  *-network UNCLAIMED
   description: Network controller
   product: MEDIATEK Corp.
   vendor: MEDIATEK Corp.
   physical id: 0
   bus info: pci@0000:04:00.0
   version: 00
   width: 64 bits
   clock: 33MHz
   capabilities: pciexpress msi pm cap_list
   configuration: latency=0
   resources: memory:fca00000-fcafffff memory:fcb00000-fcb07fff

$ lsmod | grep mt7921e
  mt7921e                28672  0
  mt7921_common          90112  1 mt7921e
  mt76_connac_lib        65536  2 mt7921e,mt7921_common
  mt76                  102400  3 mt7921e,mt7921_common,mt76_connac_lib

$ inxi -Fza
Network:
Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 2
 speed: 5 GT/s lanes: 1 port: e000 bus-ID: 03:00.0 chip-ID: 10ec:8125 class-ID: 0200
IF: enp3s0 state: down mac: <filter>
Device-2: MEDIATEK vendor: Foxconn driver: N/A modules: mt7921e pcie: gen: 2 speed: 5 GT/s
 lanes: 1 port: N/A bus-ID: 04:00.0 chip-ID: 14c3:0616 class-ID: 0280
IF-ID-1: enx7eecb1aea0eb state: up speed: N/A duplex: N/A mac: <filter>
IF-ID-2: tailscale0 state: unknown speed: -1 duplex: full mac: N/A

$ uname -r
5.19.0-41-generic

I tried to look it up and it seems the driver for this network card started having issues from kernel 5.16 onwards and people said a hard reboot was the only solution but it never worked in my case. I'm dual booting and Fastboot is disabled in the UEFI. Any idea how I can debug/fix this? Thank you.

in flag
Welcome to AskUbuntu. Are you dual-booting the notebook, or is it Ubuntu-only at this point? Have you disabled the "Fast Boot" option in your UEFI/BIOS?
E-Kami avatar
km flag
I'm dual booting and fastboot is disabled. I've edited the original post with more information
in flag
My resources show that your adapter should be using the `mt7922` driver, not `mt7921e`. Was the driver selected by the OS or was it installed manually?
E-Kami avatar
km flag
It was selected by the OS. How should I change it?
in flag
It may be as simple as `sudo modprobe -r mt7921e` to remove the existing driver, followed by `sudo modprobe mt7922` to set the alternative.
E-Kami avatar
km flag
``` ~ sudo modprobe mt7922 modprobe: FATAL: Module mt7922 not found in directory /lib/modules/5.19.0-41-generic ```
E-Kami avatar
km flag
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/145937/discussion-between-e-kami-and-matigo).
E-Kami avatar
km flag
For some reason now it's not working in Windows anymore either =/
Score:3
tf flag

Are you sure about your card-model driver and kernel version? I had a similar problems with my g14 zephyrus g14 which has mediatek mt7922 wifi/network card and solved it. Dualboot-ubuntu

Here is the steps and checklist

-> Ubuntu LTS (22.04.2) with Kernel 5.19.0-32-generic (at least 5.17.x required if it is not desired version you should update. -> lspci output was "network controller: MEDIATEK Corp. Device 0616" Then I copied drivers using linux-firmware thanks to https://askubuntu.com/a/1456986/1710221

sudo apt-install git
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
sudo cp linux-firmware/mediatek/{WIFI_MT7922_patch_mcu_1_1_hdr.bin,WIFI_RAM_CODE_MT7922_1.bin} /lib/firmware/mediatek

Then; Shutdown computer; Start pc/linux

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.