Wlan card disappeared after hard reboot

Asus Vivobook

Kernel: 6.2.16-2-MANJARO arch: x86_64 bits: 64 Desktop: KDE Plasma v: 5.27.5
  Distro: Manjaro Linux
Machine:
Type: Laptop System: ASUSTeK product: Vivobook_ASUSLaptop M1402IA_M1402IA
  v: 1.0 serial: <superuser required>
Mobo: ASUSTeK model: M1402IA v: 1.0 serial: <superuser required>
  UEFI: American Megatrends v: M1402IA.310 date: 01/10/2023
Battery:
ID-1: BAT0 charge: 27.2 Wh (64.9%) condition: 41.9/42.1 Wh (99.5%)
  volts: 11.8 min: 11.8
CPU:
Info: 6-core model: AMD Ryzen 5 4600H with Radeon Graphics bits: 64
  type: MT MCP cache: L2: 3 MiB
Speed (MHz): avg: 1665 min/max: 1400/4005 cores: 1: 3000 2: 1400 3: 1397
  4: 3000 5: 1400 6: 1400 7: 1400 8: 1397 9: 1400 10: 1397 11: 1397 12: 1400
Graphics:
Device-1: AMD Renoir driver: amdgpu v: kernel
Device-2: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB
Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: amdgpu
  unloaded: modesetting dri: radeonsi gpu: amdgpu resolution: 1920x1080~60Hz
API: OpenGL v: 4.6 Mesa 23.0.4 renderer: AMD Radeon Graphics (renoir LLVM
  15.0.7 DRM 3.49 6.2.16-2-MANJARO)
Audio:
Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
API: ALSA v: k6.2.16-2-MANJARO status: kernel-api
Server-1: PipeWire v: 0.3.70 status: active
Network:
Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
  driver: N/A
Device-2: ASIX AX88179 Gigabit Ethernet driver: cdc_ncm type: USB
IF: enp4s0f3u1c2 state: up speed: 1000 Mbps duplex: half mac: <filter>
Bluetooth:
Device-1: IMC Networks Wireless_Device driver: btusb type: USB
Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
  rfk-block: hardware: no software: yes address: see --recommends


Earlier today running a Bitdefender trial scanning the system and had a crash. Forced a hard reboot. After that the taskbar Networks pane did not show the wifi connections or the ability to enable the wifi card. lsmod shows the MT7921 module loaded. lspci shows the card as well. Taskbar/networks window only shows the ethernet adapter connected via USB. Settings/Network/Connections still shows the configured wifi connections.RFkill list shows the wireless card soft and hard blocks no. Disabled TLPUI. ip -li only shows loopback and the ethernet connection. nmcli device show does not show the wifi card. I installed another kernel with the same result, no wifi card shown or ability to control it. I have read extensively here and am at a loss on how to fix this. Any help deeply appreciated.

But here it does not:

:man_shrugging:

1 Like

may you post the output of

ip link show
sudo systemctl daemon-reload && sudo systemctl restart NetworkManager.service
ip link set interface up  #replace interface with the device that "ip link show" has brought up (wl_whatever)  
rfkill unblock wifi
nmcli radio wifi on

2 Likes

olli here is ip link show…only the ethernet connection

# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp4s0f3u1c2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether f8:e4:3b:2a:9d:6e brd ff:ff:ff:ff:ff:ff

After running the series of commands you recommended same result as above on iplink show.

Megavolt- I noticed the driver na …so can it be assumed that while the module is loaded from lsmod, there is a missing driver? …how to remedy this??
thanks to you both for the interest and replies.

1 Like

please post the output of lsmod that we can see what module is installed. everything else is digging in the dark

2 Likes

here is the lsmod output.

# lsmod
Module                  Size  Used by
tls                   143360  0
cdc_mbim               20480  0
cdc_wdm                36864  1 cdc_mbim
cdc_ncm                53248  1 cdc_mbim
cdc_ether              24576  1 cdc_ncm
usbnet                 61440  3 cdc_mbim,cdc_ncm,cdc_ether
mii                    16384  1 usbnet
snd_seq_dummy          16384  0
snd_hrtimer            16384  1
snd_seq               106496  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
rfcomm                102400  16
nft_fib_inet           16384  1
nft_fib_ipv4           16384  1 nft_fib_inet
nft_fib_ipv6           16384  1 nft_fib_inet
nft_fib                16384  3 nft_fib_ipv6,nft_fib_ipv4,nft_fib_inet
nft_reject_inet        16384  6
nf_reject_ipv4         16384  1 nft_reject_inet
nf_reject_ipv6         24576  1 nft_reject_inet
nft_reject             16384  1 nft_reject_inet
nft_ct                 24576  7
nft_chain_nat          16384  3
nf_tables             348160  167 nft_ct,nft_reject_inet,nft_fib_ipv6,nft_fib_ipv4,nft_chain_nat,nft_reject,nft_fib,nft_fib_inet
ip6table_nat           16384  0
ip6table_mangle        16384  0
ip6table_raw           16384  0
ip6table_security      16384  0
iptable_nat            16384  0
nf_nat                 65536  3 ip6table_nat,nft_chain_nat,iptable_nat
nf_conntrack          204800  2 nf_nat,nft_ct
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
libcrc32c              16384  3 nf_conntrack,nf_nat,nf_tables
iptable_mangle         16384  0
iptable_raw            16384  0
iptable_security       16384  0
nfnetlink              20480  2 nf_tables
ip6table_filter        16384  0
ip6_tables             40960  5 ip6table_filter,ip6table_raw,ip6table_nat,ip6table_mangle,ip6table_security
iptable_filter         16384  0
qrtr                   57344  4
cmac                   16384  2
algif_hash             16384  1
algif_skcipher         16384  1
af_alg                 36864  6 algif_hash,algif_skcipher
bnep                   36864  2
snd_sof_amd_rembrandt    16384  0
intel_rapl_msr         20480  0
intel_rapl_common      36864  1 intel_rapl_msr
snd_sof_amd_renoir     16384  0
snd_sof_amd_acp        57344  2 snd_sof_amd_rembrandt,snd_sof_amd_renoir
edac_mce_amd           57344  0
snd_sof_pci            24576  2 snd_sof_amd_rembrandt,snd_sof_amd_renoir
snd_sof_xtensa_dsp     20480  1 snd_sof_amd_acp
snd_sof               376832  2 snd_sof_amd_acp,snd_sof_pci
mt7921e                36864  0
kvm_amd               204800  0
snd_sof_utils          20480  1 snd_sof
amdgpu              11681792  52
snd_soc_core          434176  1 snd_sof
mt7921_common         118784  1 mt7921e
snd_hda_codec_realtek   196608  1
snd_compress           32768  1 snd_soc_core
snd_hda_codec_generic   110592  1 snd_hda_codec_realtek
kvm                  1323008  1 kvm_amd
mt76_connac_lib        86016  2 mt7921e,mt7921_common
ac97_bus               16384  1 snd_soc_core
snd_hda_codec_hdmi     94208  1
snd_pcm_dmaengine      20480  1 snd_soc_core
mt76                  122880  3 mt7921e,mt7921_common,mt76_connac_lib
snd_hda_intel          65536  2
snd_pci_ps             20480  0
irqbypass              16384  1 kvm
snd_intel_dspcfg       36864  2 snd_hda_intel,snd_sof
snd_rpl_pci_acp6x      20480  0
crct10dif_pclmul       16384  1
mac80211             1486848  3 mt76,mt7921_common,mt76_connac_lib
btusb                  77824  0
joydev                 28672  0
crc32_pclmul           16384  0
uvcvideo              176128  0
snd_acp_pci            16384  0
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
asus_nb_wmi            32768  0
btrtl                  28672  1 btusb
polyval_clmulni        16384  0
videobuf2_vmalloc      20480  1 uvcvideo
mousedev               24576  0
polyval_generic        16384  1 polyval_clmulni
snd_pci_acp6x          20480  0
asus_wmi               77824  1 asus_nb_wmi
videobuf2_memops       20480  1 videobuf2_vmalloc
snd_hda_codec         217088  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
btbcm                  24576  1 btusb
ledtrig_audio          16384  2 snd_hda_codec_generic,asus_wmi
gf128mul               16384  1 polyval_generic
libarc4                16384  1 mac80211
drm_buddy              20480  1 amdgpu
videobuf2_v4l2         40960  1 uvcvideo
btintel                53248  1 btusb
snd_pci_acp5x          20480  0
ghash_clmulni_intel    16384  0
snd_hda_core          139264  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
sparse_keymap          16384  1 asus_wmi
gpu_sched              57344  1 amdgpu
btmtk                  16384  1 btusb
drm_ttm_helper         16384  1 amdgpu
platform_profile       16384  1 asus_wmi
videodev              352256  2 videobuf2_v4l2,uvcvideo
snd_hwdep              20480  1 snd_hda_codec
sha512_ssse3           57344  0
snd_rn_pci_acp3x       24576  0
bluetooth            1073152  46 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
snd_pcm               200704  12 snd_sof_amd_acp,snd_hda_codec_hdmi,snd_pci_acp6x,snd_hda_intel,snd_hda_codec,snd_sof,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pci_ps,snd_pcm_dmaengine
aesni_intel           401408  3
cfg80211             1269760  4 mt76,mac80211,mt7921_common,mt76_connac_lib
ttm                   102400  2 amdgpu,drm_ttm_helper
snd_timer              53248  3 snd_seq,snd_hrtimer,snd_pcm
videobuf2_common       90112  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
crypto_simd            16384  1 aesni_intel
vfat                   24576  1
drm_display_helper    208896  1 amdgpu
snd_acp_config         16384  4 snd_rn_pci_acp3x,snd_sof_amd_rembrandt,snd_acp_pci,snd_sof_amd_renoir
cryptd                 32768  3 crypto_simd,ghash_clmulni_intel
ecdh_generic           16384  1 bluetooth
mc                     81920  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
fat                   102400  1 vfat
hid_multitouch         32768  0
wmi_bmof               16384  0
snd_soc_acpi           16384  2 snd_sof_amd_acp,snd_acp_config
video                  77824  2 asus_wmi,amdgpu
snd                   151552  19 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
sp5100_tco             20480  0
rapl                   20480  0
pcspkr                 16384  0
snd_pci_acp3x          20480  0
soundcore              16384  1 snd
ccp                   151552  1 kvm_amd
rfkill                 40960  8 asus_wmi,bluetooth,cfg80211
cec                    86016  1 drm_display_helper
i2c_piix4              36864  0
k10temp                16384  0
wmi                    45056  3 video,asus_wmi,wmi_bmof
i2c_hid_acpi           16384  0
i2c_hid                40960  1 i2c_hid_acpi
amd_pmc                36864  0
acpi_cpufreq           32768  0
mac_hid                16384  0
crypto_user            20480  0
fuse                  204800  3
loop                   36864  0
dm_mod                225280  0
bpf_preload            24576  0
ip_tables              40960  5 iptable_filter,iptable_security,iptable_raw,iptable_nat,iptable_mangle
x_tables               61440  12 ip6table_filter,ip6table_raw,iptable_filter,iptable_security,ip6table_nat,ip6_tables,iptable_raw,ip_tables,iptable_nat,ip6table_mangle,ip6table_security,iptable_mangle
ext4                 1163264  1
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  217088  1 ext4
serio_raw              20480  0
atkbd                  40960  0
libps2                 20480  1 atkbd
nvme                   69632  2
vivaldi_fmap           16384  1 atkbd
nvme_core             237568  3 nvme
crc32c_intel           24576  3
xhci_pci               24576  0
i8042                  53248  1 asus_nb_wmi
nvme_common            24576  1 nvme_core
xhci_pci_renesas       24576  1 xhci_pci
serio                  28672  5 amd_pmc,serio_raw,atkbd,i8042

Appears the module is loaded here.However as megavolt pointed out on inxi, posted in my original post in the Mediatek section on the card it says driver n/a

Now… it appeared to me that given the module was loaded… that for some reason the link between network manager and the card had been broken or possibly Plasma being able to see it. I have investigated and I cant see the wifi card from the CLI- i figured that if I could bring the card up from there it might be indicative of where the problem lies. The card is there on the PCI buss-lspci- but I cant figure out how to do anything with it from the CLI…

You could try to reload it:

systemctl stop NetworkManager
modprobe -rv mt7921e
modprobe -v mt7921e
systemctl start NetworkManager
inxi -Nazy
2 Likes
# systemctl stop NetworkManager
modprobe -rv mt7921e
modprobe -v mt7921e
systemctl start NetworkManager
inxi -Nazy
rmmod mt7921e
rmmod mt7921_common
insmod /lib/modules/6.2.16-2-MANJARO/kernel/drivers/net/wireless/mediatek/mt76/mt7921/mt7921-common.ko.zst 
insmod /lib/modules/6.2.16-2-MANJARO/kernel/drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko.zst 
Network:
  Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: AzureWave driver: N/A modules: mt7921e pcie: gen: 2 speed: 5 GT/s
    lanes: 1 bus-ID: 02:00.0 chip-ID: 14c3:7961 class-ID: 0280
  Device-2: ASIX AX88179 Gigabit Ethernet driver: cdc_ncm type: USB rev: 3.2
    speed: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 bus-ID: 2-1:2 chip-ID: 0b95:1790
    class-ID: 0a00 serial: <filter>

Still no wifi card in the Taskmanager Network pane going to try rebooting after that.

Rebooted. Same result no wifi card. Also tried starting LinSSID and received the message no wireless interfaces found. Also still Driver N/A.

Seems to be an iffy card, lots of weird issues here in the forum. Try:
“Hold down the power button for a full 60 seconds and it resets your bluetooth and wifi then restart.” Mediatek WI-FI mt7921 - #18 by Mirdarthos .

1 Like

Hi 6x12

This worked. Held down the power key for 60 seconds then rebooted and, Network pane from the task bar shows both wired and wireless connections, airplane mode &c as it was before. This resolved the problem. Many thanks to you as well as the kind help and advice from both Megavolt and Olli.
Couple of notes here… note the inxi output now it shows the driver

 inxi -Nazy                                                                                                                                                                                    ✔  7s  
Network:
  Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: AzureWave driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
    lanes: 1 bus-ID: 02:00.0 chip-ID: 14c3:7961 class-ID: 0280

where before it did not… so remember the 60 second power button trick. Many thanks for this and for the link to the Mediatek thread as well… while we are here, another question. in Manjaro we have the mhwd utility for loading NVidia drivers. Would mhwd, given the proper buss address, be able to load a driver for a wifi chip…
Thanks to you all for the kind help. Regards.

Yup.

It already provides profiles for a few network devices:

$ mhwd -la
> All PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
       network-slmodem            2013.12.07                true            PCI
         network-r8168            2016.04.20                true            PCI
     network-rt3562sta            2013.12.07                true            PCI
   network-broadcom-wl            2018.10.07               false            PCI

...

1 Like

Hi cscs

Thaks for this. Good to know.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.