LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-08-2023, 01:29 PM   #1
Chri01
LQ Newbie
 
Registered: Jun 2023
Posts: 2

Rep: Reputation: 0
Wifi driver mt7921e stop working after kernel update


The problem is, as described in the title, that the wifi network interface seems to not be working. Using GNOME, i have no wifi icon in the menů and no "wifi settings" in the settings.

I'm using Fedora 38, after kernel upgrade to 6.3.4 the problem came up. I don't know if this is kernel-related, because it is not working even if i boot with an older kernel. But, if i boot a live-CD of Fedora, it works. I know i can try to do a clean install of the system, but it's honestly my last resort.

The driver is "mt7921e", i tried cold-booting the laptop (holding the power button for 1/2 mins), but without success. Tried also to lsmod to see if the driver is loaded, and it is.

The output of dmesg is the following:
Code:
[    7.286487] mt7921e 0000:04:00.0: enabling device (0000 -> 0002)
[    7.309412] mt7921e 0000:04:00.0: ASIC revision: 79610010
[    7.382564] mt7921e: probe of 0000:04:00.0 failed with error -12
Thanks in advance for the help!
 
Old 06-08-2023, 02:49 PM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS
Posts: 4,292
Blog Entries: 48

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Chri01,

Welcome to LQ forums.

See this similar thread with the mt7921 wifi chip:
https://www.linuxquestions.org/quest...-a-4175725389/
 
Old 06-08-2023, 06:59 PM   #3
Chri01
LQ Newbie
 
Registered: Jun 2023
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by beachboy2 View Post
Chri01,

Welcome to LQ forums.

See this similar thread with the mt7921 wifi chip:
https://www.linuxquestions.org/quest...-a-4175725389/
Thank you for the reply.
Unfortunately, the solution provided in that thread seems not to work.
It was a kernel-related problem, the link signed as solution reports that the kernel i'm using (6.3.6), should work with mt7921e.

Other ideas?
 
Old 06-14-2023, 10:52 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
That module should be in your kernel.

Code:
lsmod | grep mt7921e
Is it listed?

If not, please load it:
Code:
sudo modprobe mt7921e
What happens?
Does wifi work now?

Are you dual-booting with windows? Sometimes windows has been known to put devices into a strange state, which makes them inaccessible to linux. The solution, in this case, is usually to totally power down the computer, wait a minute, then power on and boot straight to linux, without allowing windows to load.
 
Old 06-14-2023, 06:26 PM   #5
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Chri01,

Your original post really doesn't give much to go on. "It doesn't work."

You say it works on a live Fedora image. Is this live instance the same version as you have installed? If so, the issue is with your installation.

First, check that NetworkManager is running
Code:
systemctl status NetworkManager
Ugh, yes, with systemd make sure you get the capitalization of NetworkManager right or you'll get an error.

Look for a line like

Code:
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; preset>
     Active: active (running) since Sun 2023-06-11 14:57:15 EDT; 3 days ago
Does it say "enabled" in the first line? Is it active? If not, as root

Code:
systemctl enable --now NetworkManager
systemd won't give you any confirmation. Check status again.

Error?

As root (or a user with journal permissions)

Code:
journalctl -xeu NetworkManager
That covers NetworkManager, and if the device is being detected and the module loaded, you may be lucky and this is your problem.

If not,

In a terminal

Code:
ip link show
Does the interface (wlanX) show at all?

https://www.linuxquestions.org/quest...1/#post6435778

A similar card, though a different issue.

However, look at the dmesg output. Do you see anything like that, the backtrace when the driver module died? Look for lines following "------------[ cut here ]------------" like in that thread, and see if anything under relates to the mt7921e module up to a follwoing "---[ end trace ]---". Maybe that could give us some more info.

That error in probing could be a transient error. I get such errors from time to time with my Broadcom chip, and wifi works fine.

Last edited by goumba; 06-14-2023 at 06:40 PM.
 
Old 09-29-2023, 04:40 PM   #6
nonki
LQ Newbie
 
Registered: Sep 2023
Posts: 2

Rep: Reputation: 0
Cool proposing a solution (works on my machine™)

see this page:

(I cant post the link)

which contains the latest firmware for fedora 38. maybe a newer one is available at the top of this list by the time the readers are reading this (look for fc38):

(I cant post the link)

either way, you want mt7xxx-firmware-yyyyyyyy-z.fc38.noarch.rpm

(I cant post the link)

double click that, uninstall the package if it is installed and reboot.

go back to the package, double click it to install the package and reboot.

it should be working now
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Try to update WiFi driver to resolve slow WiFi vw98008 Linux - Networking 7 06-07-2023 02:21 AM
Mediatek mt7921e network card not working E-Kami Linux - Laptop and Netbook 2 05-27-2023 07:25 AM
Wifi option is there but no wifi scanning or wifi not working Aakash447 Linux - Newbie 3 06-29-2018 12:48 AM
After update, mouse, wifi, CD, and USB all stop working RxN3ST1 Ubuntu 2 04-11-2018 09:56 PM
Wine & Desktop effects stop working after FC6 kernel update (2.6.1{8,9}) X86_64 mbianchet Fedora 2 01-20-2007 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration