iwlwifi driver not loaded

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
rabidmonkey1163
Level 1
Level 1
Posts: 15
Joined: Wed Oct 20, 2021 8:21 pm

Re: iwlwifi driver not loaded

Post by rabidmonkey1163 »

What would be disabled in Bios? Secure boot? I can try to secure boot if you'd like. I think you're right about the firmware, do you think updating the kernel to a more recent version would be of any help? Thank you so much for your help and patience, as you can tell I'm fairly new to all of this haha
sleeper12
Level 21
Level 21
Posts: 14315
Joined: Thu May 25, 2017 3:22 pm

Re: iwlwifi driver not loaded

Post by sleeper12 »

See if you can find and disable secure boot in Bios.
rabidmonkey1163
Level 1
Level 1
Posts: 15
Joined: Wed Oct 20, 2021 8:21 pm

Re: iwlwifi driver not loaded

Post by rabidmonkey1163 »

So I went into the bios and found where it said secure boot enabled but I couldn’t figure out how to turn it off. The “enabled” text box was grey and unclickable… any thoughts?
sleeper12
Level 21
Level 21
Posts: 14315
Joined: Thu May 25, 2017 3:22 pm

Re: iwlwifi driver not loaded

Post by sleeper12 »

If I remember right, you might need to set an administrator password in the BIOS first.
User avatar
chili555
Level 3
Level 3
Posts: 178
Joined: Sun Apr 22, 2007 12:07 pm

Re: iwlwifi driver not loaded

Post by chili555 »

Let's see if we can fix the firmware issue. Please get these files on some other computer and transfer them to the desktop of your Mint computer by USB key or similar:

https://git.kernel.org/pub/scm/linux/ke ... 0-46.ucode
https://git.kernel.org/pub/scm/linux/ke ... 0-48.ucode
https://git.kernel.org/pub/scm/linux/ke ... 0-50.ucode

Now, on the Mint computer, open a terminal and do:

Code: Select all

cd ~/Desktop
sudo mv *.ucode  /lib/firmware
Reboot and show us:

Code: Select all

sudo modprobe iwlwifi && sudo dmesg | grep iwl
The reason that your USB wireless stopped working is that backport-iwlwif-dkms installs its own versions of mac80211 and cfg80211 that don't work correctly with the USB wireless driver.

I doubt this all would even be an issue if you installed the very latest Mint version.
sleeper12
Level 21
Level 21
Posts: 14315
Joined: Thu May 25, 2017 3:22 pm

Re: iwlwifi driver not loaded

Post by sleeper12 »

It might be easier to try wifi in a live session of Mint 20.2. If it works, you can install it. You will likely still need to disable secure boot though.
User avatar
chili555
Level 3
Level 3
Posts: 178
Joined: Sun Apr 22, 2007 12:07 pm

Re: iwlwifi driver not loaded

Post by chili555 »

rabidmonkey1163
Level 1
Level 1
Posts: 15
Joined: Wed Oct 20, 2021 8:21 pm

Re: iwlwifi driver not loaded

Post by rabidmonkey1163 »

Here's the output you asked for. Should i just upgrade to the latest version of MINT?

Code: Select all

$ sudo modprobe iwlwifi && sudo dmesg | grep iwl
[   38.536798] Loading modules backported from iwlwifi
[   38.536799] iwlwifi-stack-public:master:7906:7773a757
[   38.606941] iwlwifi 0000:05:00.0: Direct firmware load for iwl-dbg-cfg.ini failed with error -2
[   38.612160] iwlwifi 0000:05:00.0: Direct firmware load for iwlwifi-cc-a0-51.ucode failed with error -2
[   38.636049] iwlwifi 0000:05:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 58.3.35.22
[   38.636051] iwlwifi 0000:05:00.0: Found debug destination: EXTERNAL_DRAM
[   38.636052] iwlwifi 0000:05:00.0: Found debug configuration: 0
[   38.636192] iwlwifi 0000:05:00.0: loaded firmware version 50.3e391d3e.0 op_mode iwlmvm
[   38.660902] iwlwifi 0000:05:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340
[   38.671746] iwlwifi 0000:05:00.0: Applying debug destination EXTERNAL_DRAM
[   38.671872] iwlwifi 0000:05:00.0: Allocated 0x00400000 bytes for firmware monitor.
[   38.842537] iwlwifi 0000:05:00.0: base HW address: 14:f6:d8:7d:78:82
[   38.857524] iwlwifi 0000:05:00.0 wlp5s0: renamed from wlan0
[   39.158110] WARNING: CPU: 4 PID: 559 at /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/core.c:865 wiphy_register+0x915/0x940 [cfg80211]
[   39.158110] Modules linked in: snd_hda_codec_hdmi(+) arc4 nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack snd_hda_codec_realtek(+) snd_hda_codec_generic nvidia_uvm(POE) intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_intel snd_seq_midi snd_hda_codec nvidia_drm(POE) kvm_intel nvidia_modeset(POE) snd_hda_core snd_seq_midi_event snd_hwdep rtl8xxxu(+) btusb btrtl btbcm eeepc_wmi nvidia(POE) iwlmvm(OE) asus_wmi btintel wmi_bmof mxm_wmi sparse_keymap kvm joydev snd_rawmidi snd_pcm bluetooth irqbypass mac80211(OE) crct10dif_pclmul crc32_pclmul ghash_clmulni_intel input_leds pcbc snd_seq iwlwifi(OE) snd_seq_device snd_timer ecdh_generic aesni_intel aes_x86_64 crypto_simd glue_helper cryptd ip6table_filter intel_cstate ipmi_devintf ipmi_msghandler intel_rapl_perf mei_me ip6_tables snd nf_conntrack_netbios_ns
[   40.036834] iwlwifi 0000:05:00.0: Applying debug destination EXTERNAL_DRAM
[   40.259467] iwlwifi 0000:05:00.0: FW already configured (0) - re-configuring
rabidmonkey1163
Level 1
Level 1
Posts: 15
Joined: Wed Oct 20, 2021 8:21 pm

Re: iwlwifi driver not loaded

Post by rabidmonkey1163 »

Wait, the wifi card seems to be working after the firmware fix!!!!!
sleeper12
Level 21
Level 21
Posts: 14315
Joined: Thu May 25, 2017 3:22 pm

Re: iwlwifi driver not loaded

Post by sleeper12 »

Great, is the wifi dongle working again too?
rabidmonkey1163
Level 1
Level 1
Posts: 15
Joined: Wed Oct 20, 2021 8:21 pm

Re: iwlwifi driver not loaded

Post by rabidmonkey1163 »

I don't think so, Ifconfig looks the same regardless of whether or not the dongle is it. Though maybe there's a better way to check that I'm not aware of

Code: Select all

$ ifconfig
enp0s31f6: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 0c:9d:92:c9:51:6e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xf7300000-f7320000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 476  bytes 41336 (41.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 476  bytes 41336 (41.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.139  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::1e86:17cd:cb6b:57  prefixlen 64  scopeid 0x20<link>
        inet6 2601:740:8280:40e0:73a5:8318:4291:31c5  prefixlen 64  scopeid 0x0<global>
        inet6 2601:740:8280:40e0::a7ab  prefixlen 128  scopeid 0x0<global>
        inet6 2601:740:8280:40e0:a1fd:cbae:8124:e4d7  prefixlen 64  scopeid 0x0<global>
        ether 14:f6:d8:7d:78:82  txqueuelen 1000  (Ethernet)
        RX packets 18799  bytes 21530011 (21.5 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8193  bytes 1150611 (1.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
sleeper12
Level 21
Level 21
Posts: 14315
Joined: Thu May 25, 2017 3:22 pm

Re: iwlwifi driver not loaded

Post by sleeper12 »

Maybe chili555 will know if the backport-iwlwif-dkms should be removed now or not. I'm thinking that might get the dongle working again, but mess up the card.
User avatar
chili555
Level 3
Level 3
Posts: 178
Joined: Sun Apr 22, 2007 12:07 pm

Re: iwlwifi driver not loaded

Post by chili555 »

get the dongle working again, but mess up the card.
Exactly.

Unless you try a later kernel version; that is Mint 20.2, it will be one or the other. Either the internal Intel OR the USB but not both. Frankly, the Intel should outperform any USB so I'd stick with it.

If you try a live session of 20.2, we'd be interested to hear the result. Does the internal work? The USB? Both? Neither?
sleeper12
Level 21
Level 21
Posts: 14315
Joined: Thu May 25, 2017 3:22 pm

Re: iwlwifi driver not loaded

Post by sleeper12 »

chili555 wrote: Fri Oct 22, 2021 3:45 pm
get the dongle working again, but mess up the card.
Exactly.

Unless you try a later kernel version; that is Mint 20.2, it will be one or the other. Either the internal Intel OR the USB but not both. Frankly, the Intel should outperform any USB so I'd stick with it.

If you try a live session of 20.2, we'd be interested to hear the result. Does the internal work? The USB? Both? Neither?
Ok, we agree on that then.
sleeper12
Level 21
Level 21
Posts: 14315
Joined: Thu May 25, 2017 3:22 pm

Re: iwlwifi driver not loaded

Post by sleeper12 »

It would also be wise to update your kernel to 4.15.0-161. Your current kernel 4.15.0-50 is quite old.
Locked

Return to “Networking”