Score:1

My wireless disconnects constantly - mediatek Mt7921e

in flag

On Kubuntu 21.10: PCIe WiFi card, after many attempts to get the driver loaded and the adapter recognized I experience loops trying to connect (actually unable to open any page after connecting briefly and disconnecting). Sometimes it works briefly.

$ lspci -nnk | grep 0280 -A3
03:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:0608]
        Subsystem: MEDIATEK Corp. Device [14c3:0608]
        Kernel driver in use: mt7921e
        Kernel modules: mt7921e
    gianluca@gianluca-HM90:~$ sudo dmesg | grep mt7
    [sudo] password for gianluca: 
    [    4.665793] mt7921e 0000:03:00.0: enabling device (0000 -> 0002)
    [    4.665958] mt7921e 0000:03:00.0: disabling ASPM  L1
    [    4.665994] mt7921e 0000:03:00.0: ASIC revision: 79610010
    [    4.745178] mt7921e 0000:03:00.0: HW/SW Version: 0x8a108a10, Build Time: 20211014150838a
    [    5.004018] mt7921e 0000:03:00.0: WM Firmware Version: ____010000, Build Time: 20211014150922
    [    5.030282] mt7921e 0000:03:00.0: Firmware init done
    [    7.367478] mt7921e 0000:03:00.0 wlp3s0: renamed from wlan0

$ lspci -nnk | grep 0280 -A3
03:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:0608]
        Subsystem: MEDIATEK Corp. Device [14c3:0608]
        Kernel driver in use: mt7921e
        Kernel modules: mt7921e
gianluca@gianluca-HM90:~$ cat /etc/NetworkManager/conf.d/*
[connection]
wifi.powersave = 2
gianluca@gianluca-HM90:~$ sudo dmesg | grep mt7
[sudo] password for gianluca: 
[    4.621365] mt7921e 0000:03:00.0: enabling device (0000 -> 0002)
[    4.621499] mt7921e 0000:03:00.0: disabling ASPM  L1
[    4.621533] mt7921e 0000:03:00.0: ASIC revision: 79610010
[    4.705334] mt7921e 0000:03:00.0: HW/SW Version: 0x8a108a10, Build Time: 20211014150838a
[    4.964104] mt7921e 0000:03:00.0: WM Firmware Version: ____010000, Build Time: 20211014150922
[    4.990530] mt7921e 0000:03:00.0: Firmware init done
[    7.325818] mt7921e 0000:03:00.0 wlp3s0: renamed from wlan0
$ nmcli d
DEVICE           TYPE      STATE        CONNECTION 
eno1             ethernet  unavailable  --         
enp4s0           ethernet  unavailable  --         
enxf01e341f94c3  ethernet  unavailable  --         
lo               loopback  unmanaged    --         
gianluca@gianluca-HM90:~$ sudo dmesg | grep wlp
[sudo] password for gianluca: 
gianluca@gianluca-HM90:~$ 
$ sudo dmesg | grep mt7
[sudo] password for gianluca: 
[    4.604185] mt7921e 0000:03:00.0: enabling device (0000 -> 0002)
[    4.605051] mt7921e 0000:03:00.0: disabling ASPM  L1
[    4.605153] mt7921e 0000:03:00.0: ASIC revision: 79610010
[    5.679912] mt7921e: probe of 0000:03:00.0 failed with error -110
$ sudo dmesg | grep 03:00
[sudo] password for gianluca: 
[    0.348217] pci 0000:03:00.0: [14c3:0608] type 00 class 0x028000
[    0.348266] pci 0000:03:00.0: reg 0x10: [mem 0xe0300000-0xe03fffff 64bit pref]
[    0.348309] pci 0000:03:00.0: reg 0x18: [mem 0xe0400000-0xe0403fff 64bit pref]
[    0.348352] pci 0000:03:00.0: reg 0x20: [mem 0xe0404000-0xe0404fff 64bit pref]
[    0.348483] pci 0000:03:00.0: supports D1 D2
[    0.348483] pci 0000:03:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    4.713857] mt7921e 0000:03:00.0: enabling device (0000 -> 0002)
[    4.714308] mt7921e 0000:03:00.0: disabling ASPM  L1
[    4.714386] mt7921e 0000:03:00.0: ASIC revision: 79610010
[    5.792318] mt7921e: probe of 0000:03:00.0 failed with error -110
chili555 avatar
cn flag
Please try my troubleshooting steps here: https://askubuntu.com/questions/1364239/tp-link-usb-wireless-adapter-keep-losing-data-every-several-minutes-without-disc/1364295#1364295
Luka Blanz avatar
in flag
thanks. after doing this sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/* and reboot. card not detected
chili555 avatar
cn flag
Check: `lspci -nnk | grep 0280 -A3` and also: `cat /etc/NetworkManager/conf.d/*` and: `sudo dmesg | grep mt7`
Luka Blanz avatar
in flag
done. could it have anything to do with the usb adapter I'm using as well? it seems the mt7 doesn't worlk when I boot, so I plug in the USB tp link, then I disconnect the usb and reconnect the mt7....sometimes it works this way. just chancing the question
chili555 avatar
cn flag
Your readings look entirely normal. Please boot without the USB and show us: `nmcli d ` and: `sudo dmesg | grep wlp`
Luka Blanz avatar
in flag
done without USB dongle. The mt7 was not detected after reboot.
chili555 avatar
cn flag
Does it spring to life if you do: `sudo modprobe mt7921e` ?
Luka Blanz avatar
in flag
no it doesn't come on
chili555 avatar
cn flag
Does this tell us anything? `sudo dmesg | grep mt7`?
Luka Blanz avatar
in flag
maybe a fatal error?
chili555 avatar
cn flag
Please see: https://askubuntu.com/questions/1382918/wireless-adapter-mediatek-mt7921-is-not-working-after-a-reboot-in-ubuntu-21-10 Is this a dual-boot with Windows? Please disable Fast Boot: https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi#about_dual-boot_with_windows_and_fast-boot_enabled
Luka Blanz avatar
in flag
no it is not a dual boot system. kubuntu 21.10 only. sometimes adapter recognized, sometimes not and all modprobe commands don't change anything.
Luka Blanz avatar
in flag
maybe something I need to change in BIOS? although it's configured as default
chili555 avatar
cn flag
Does it matter whether you rebbot or shut down entirely and start fresh?
Luka Blanz avatar
in flag
mixed. randomly does it. very bizarre
chili555 avatar
cn flag
When you boot and it is not working, please run: `sudo dmesg | grep 03:00` 03:00 is the PCI bus where the wireless resides. I am beginning to suspect hardware failure.
Luka Blanz avatar
in flag
done. it was fine once, then updated, rebooted and not detected...and ran that command
Luka Blanz avatar
in flag
then shut down, restarted and fine (not dual boot system)
chili555 avatar
cn flag
I notice that this only appears in *dmesg* when the wireless is *not* working. "PME# supported from D0 D1 D2 D3hot D3cold " Please check in your BIOS/EFI and see if there are any settings related to D1, D2, etc. and tell me what they are. Possibly helpful: https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/supporting-d3cold-in-a-driver
Luka Blanz avatar
in flag
ok I did check. No settings related to those. I checked every single line. Must say it seems like if I reboot the adapter is not detected; if I cold boot, it is. Again, this is a Linux system only )I'm awar of this issue on dual booting systems). I had installed win10 after I noticed this problem, just to check if the adapter was working: I kept it a few days and everything was fine. Then I installed kubuntu 21.10 again and posted the threads.
chili555 avatar
cn flag
I regret that I am out of any useful suggestions except to *never* reboot and *always* cold boot. Aslo, I suggest that you file a bug report here: https://bugs.launchpad.net/ubuntu I'm sorry that I could not be of more help.
Luka Blanz avatar
in flag
I posted also on the manufacturer site. they say there's no available linux driver at the moment for the adapter (they say it's a 7921K). You've given fantastic help, without you I wouldn't even been able to use the wifi on this rig. I appreciate it very much. thanks chili555
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.