You are not logged in.

#1 2024-12-23 15:11:58

Deneguil
Member
Registered: 2024-12-23
Posts: 6

[SOLVED] MT7921e driver died and refuses to start again

Hello,

When I was playing The Witcher 3 the sound in my bluetooth headset started crackling before stopping. When I stopped the game I noticed I didn't have internet or bluetooth anymore. I tried rebooting but it didn't change anything.

I then checked to see whether my wireless card was detected and if so what kernel module it was using using `lspci -k`

 0f:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
	Subsystem: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
	Kernel modules: mt7921e

When I saw that it was detected I tried `ip a` to check whether I had an IP address allocated to WLAN0

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: enp14s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether d8:43:ae:4c:43:ad brd ff:ff:ff:ff:ff:ff
    altname enxd843ae4c43ad
3: enp16s0u2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 5a:bd:4e:3f:06:9b brd ff:ff:ff:ff:ff:ff
    altname enx5abd4e3f069b
    inet 192.168.182.69/24 brd 192.168.182.255 scope global dynamic noprefixroute enp16s0u2
       valid_lft 3029sec preferred_lft 3029sec
    inet6 fe80::8faa:7d76:7167:294/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

And when I noticed that I didn't have one I checked the kernel logs for the wireless driver using `dmesg | grep mt7921e`

[   68.819292] mt7921e 0000:0f:00.0: enabling device (0000 -> 0002)
[   69.707039] mt7921e 0000:0f:00.0: driver own failed
[   69.707077] mt7921e 0000:0f:00.0: probe with driver mt7921e failed with error -5

I tried reloading the kernel module with these commands but it didn't change anything in the end

 sudo modprobe -r mt7921e
sudo modprobe mt7921e
sudo systemctl restart NetworkManager bluetooth

I haven't had anything break out of the blue and so bad before so I don't really know where to go from there and if possible I would like to avoid having to reinstall.
Any help is appreciated, thank you.

Last edited by Deneguil (2024-12-23 21:01:53)

Offline

#2 2024-12-23 15:22:24

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,842
Website

Re: [SOLVED] MT7921e driver died and refuses to start again

Does the card work in the live environment? There are a few recent threads about that card but this sounds more like a hardware failure to me. EDIT: but maybe not. Thanks seth!

Last edited by Head_on_a_Stick (2024-12-23 15:46:32)


Jin, Jîyan, Azadî

Offline

#3 2024-12-23 15:40:04

seth
Member
Registered: 2012-09-03
Posts: 62,801

Re: [SOLVED] MT7921e driver died and refuses to start again

The symptoms are like for everybody else.
https://bbs.archlinux.org/viewtopic.php … 0#p2215900

I would like to avoid having to reinstall.

Which isn't gonna help you anyway.
Does the LTS kernel still work?
Is there a parallel windows installation?

The breaking element generally seems to be bluetooth, so maybe try to blacklist btusb

Offline

#4 2024-12-23 16:04:19

Deneguil
Member
Registered: 2024-12-23
Posts: 6

Re: [SOLVED] MT7921e driver died and refuses to start again

Head_on_a_Stick wrote:

Does the card work in the live environment? There are a few recent threads about that card but this sounds more like a hardware failure to me.

I flashed a USB stick with a Fedora live environment to try and it didn't work. But if it was a hardware failure I feel like the card wouldn't even be detected by `lspci`

seth wrote:

Does the LTS kernel still work?
Is there a parallel windows installation?

The breaking element generally seems to be bluetooth, so maybe try to blacklist btusb

Just tried switching to the 6.6.67-lts kernel to check, the driver still fails with the same errors.
No dual booting windows at the moment.
The module btusb wasn't loaded when booting so I don't think this is the issue as I had to manually add it and it didn't change anything.

Is there a consensus of the reason the drivers keeps dying? It seems pretty random to me to stop work in the middle of a single player game

Offline

#5 2024-12-23 20:53:15

seth
Member
Registered: 2012-09-03
Posts: 62,801

Re: [SOLVED] MT7921e driver died and refuses to start again

For most people this seems to be a 6.12 issue.
Since the NIC doesn't seem to respond at all (nor from some live distro) and hoping it's not dead, try to power down the system, take out the battery for a couple of minutes, put it back and then boot.

I feel like the card wouldn't even be detected by `lspci`

Not necessarily, it might still respond on the bus but then the firmware is fried.
mediatek has such problems a lot, though - and a hard time to recover from them.

No dual booting windows at the moment

And yesterday maybe?

Offline

#6 2024-12-23 21:01:30

Deneguil
Member
Registered: 2024-12-23
Posts: 6

Re: [SOLVED] MT7921e driver died and refuses to start again

seth wrote:

For most people this seems to be a 6.12 issue.
Since the NIC doesn't seem to respond at all (nor from some live distro) and hoping it's not dead, try to power down the system, take out the battery for a couple of minutes, put it back and then boot.

That did it. I unplugged the power cord from my PSU and turn off the PSU itself while I was showering and when booting afterwards it had fixed itself.

seth wrote:

mediatek has such problems a lot, though - and a hard time to recover from them.

That's good to know and it's a shame that it's a soldered chipset on my motherboard. Next time I change motherboard I'll make sure to get one without wifi and add an Intel BE201 myself.

seth wrote:

No dual booting windows at the moment

And yesterday maybe?

Not since 2 months ago. I have a windows drive but I forgot to plug it in when mounting my PC back together and haven't bothered with it since

Thank you for taking the time to troubleshoot my issue. Mediatek seems on the level of Nvidia if not worse with unstable firmware on Linux.

Offline

#7 2024-12-23 21:03:35

seth
Member
Registered: 2012-09-03
Posts: 62,801

Re: [SOLVED] MT7921e driver died and refuses to start again

If this happens again, you probably also have an UEFI option to toggle the wifi chip - you might get away w/ just that.

Offline

Board footer

Powered by FluxBB