ok, i’m back…
I tried to do what you mentioned but it did not work.
I also uninstall my vpn software then reboot, seep, wake up, but still network hard block.
Also tried to unload the wifi module runing sudo rmmod /lib/modules/6.1.19-1-MANJARO/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko.zst
but i got these answer:
followed by… sudo insmod /lib/modules/6.1.19-1-MANJARO/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko.zst
then sleep, then wake up and tried to reload the module runing: sudo insmod /lib/modules/6.1.19-1-MANJARO/kernel/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko.zst
and i got the following output :
insmod: ERROR: could not insert module /lib/modules/6.1.19-1-MANJARO/kernel/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko.zst: File exists
also tried:sudo insmod /lib/modules/6.1.19-1-MANJARO/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko.zst
and i got the following output :
insmod: ERROR: could not insert module /lib/modules/6.1.19-1-MANJARO/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko.zst: File exists
so was not able to reload, then i had to reboot.
i also create a new file in/etc/modprobe.d/iwl.confsimilar as mentioned (here), but in a different file with the following parameters :
so try removing the drivers before suspend with: sudo modprobe -r iwlmvm iwlwifi
suspend, wake up, and load them again: sudo modprobe iwlmvm iwlwifi
and check
so try removing the drivers before suspend with: sudo modprobe -r iwlmvm iwlwifi
suspend, wake up, and load them again: sudo modprobe iwlmvm iwlwifi
and check
I tried, but didn´t work still continued with the same problem.
After load the driver rfkill list wifi :
2: phy1: Wireless LAN
Soft blocked: no
Hard blocked: yes
I get a new Wireless Network Adapter (device-3), to see if a was able to solve the problem some how $ inxi -xN
But it did not solve it. After wake up, the adapter light is blinking which indicates it is working and i can enable the WiFi but it do no connect.
So now i will do a resume of everything i have already tried which no positive effect on solving the problem
Try blacklist the WiFi driver Sudo nano /etc/modprobe.d/blacklist.conf
rfkill unblock wifi and rfkill unblock wlan and rfkill unblock all (no effect - only works on Soft blocks)
systemctl stop NetworkManager and systemctl start NetworkManager
Clicking the WIFI disable key on the keyboard (works before the suspend, but has no effect after the suspend. I also tried disabling WIFI before suspending, but that had the same outcome.)
I uninstall TLP thinking that could be some tlp config but nothing.
I also uninstall my vpn software then reboot, seep, wake up, but still network hard block.
I try different kernels and nothing.
Set the /etc/modprobe.d/wifi.conf:
options iwlwifi power_save=0 # disables power management
i modify the NetworkManager WiFi powersaving under /etc/NetworkManager/conf.d/
Unloading the WIFI module (“sudo modprobe -r iwlwifi” suspend and did
“sudo modprobe iwlwifi”) No effect.
Try blacklist the WiFi driver Sudo nano /etc/modprobe.d/blacklist.conf
Cheked in BIOS but have no options related to WiFi.
went check in the dual-booted windows, whether it is affected or not, The WiFi works there as usual,.
Plugged in a Live USB, check if the Wifi loads or not., No its also shown as hard blocked
create a new test user, log in with the test user and try. No positive results.
Added some parameters to the WIFI: /etc/modprobe.d/iwl.conf
and also tried in here /etc/modprobe.d/wifi.conf
followed by… sudo insmod /lib/modules/6.1.19-1-MANJARO/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko.zst
then sleep, then wake up and tried to reload the module runing: sudo insmod /lib/modules/6.1.19-1-MANJARO/kernel/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko.zst
and i got the following output :
insmod: ERROR: could not insert module /lib/modules/6.1.19-1-MANJARO/kernel/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko.zst: File exists
Tried removing the drivers before suspend with: sudo modprobe -r iwlmvm iwlwifi
suspend, wake up, and load them again: sudo modprobe iwlmvm iwlwifi
But still hard blocked.
I did the list to order everything and see if it is helpful for someone in the future. In the meantime i still have the network hard blocked after perform sleep mode and wake up, but i still think it might be a stupid thing misconfigured thing that i want to resolve some day.
so you tried with a new usb wifi adapter and the same issue? and since it also didnt worked when you unloaded the driver before sleep and it is was blocked after resume, im out of ideas… is hibernation in windows completely disabled?
I`m still not able to solve my problem, and i have tried some new stuff so here i am to report what have i done.
So what I did was turn my airplane mode on, and then try to unblock the hard block via sudo rfkill unblock [ID number] ,
in my case was sudo rfkill unblock 0.
I read in other forum that Apparently NetworkManager had turned of wifi. To enable someone used nmcli radio wifi on, but it did not work in my case.
Disabled Windows 10 WiFi Power Saver, and be sure to leave wifi ON in windows before to shut down.
Remove the battery and AC power for several minutes.
I read here that it might be the pin 20 error in the wireless card, this is my WIFI card, but i’m not sure were is the pint 20 were i should put the tape, or what kind of tape can i use to avoid to getting melt.
Then i am leaving here the output of some Network Manager commands output.
you have also the same issue with a different wifi that you mentioned above, so its not related to the wifi…
try booting into linux mint live usb, suspend, wake up and see if it has the same issue…
you have also the same issue with a different wifi that you mentioned above, so its not related to the wifi…
you are right, i just want to try everything i read that could solve it.
Ok, so i did it. I boot into linuxmint-21.1-cinnamon-64bit Live USB and surprise… Same Issue persist (network get hard blocked after suspend).!
Then i boot the same Live USB in other laptop, suspend and wakeup and it has no problem, network worked just fine and network was not hard blocked.
So at this point the problem is oviously my laptop, and if it is not hardware it might be some config somewere that is set to hard block.
The thing is that i have no idea were these config could be.
probably something related to linux + your bios/hardware + windows … and have no idea what to do… i saw somewhere that shutting down your pc, unplugging it from cable and pressing the power button for like 30-60 seconds could help
So at this point if i’m not wrong the iwlwifi driver is already loaded after wake up from suspend, but i do not understand why it get hard blocked.
I will write to msi support to see if they can provide some specific hot key i can perform to unblock the wifi, but in the mean time, looking forward to find some answer.
If you cannot unload the iwlwifi module, check what is using it … likely the split power module for it iwlmvm. lsmod | grep iwl
The procedure to attempt is to totally disable network manager, disable wifi, unload modules, -suspend-, reverse. The order is not sure - maybe disable wifi before nm, etc. Example:
I know this topic has been quiet for a couple of months, but I ran into the same issue on my MSI GS65 Stealth. I found some information on the Arch Linux website (search for “MSI GS65” and check out the “Function Keys” section) and also on Ask Ubuntu (search for “MSI GS65 wifi hardware switch disabled after suspend”) about enabling the airplane mode function key combination under Linux.
To summarize what I found, add acpi_osi=! acpi_osi='Windows 2009' to the GRUB_CMDLINE_LINUX variable in /etc/default/grub, and then run sudo update-grub and reboot your system. This should enable the airplane mode function key combo (Fn+F10).
With the airplane mode function key enabled, it is now possible for me to recover from the hardware locked wifi issue by pressing Fn+F10twice - not the most elegant solution, but at least I don’t have to reboot.
Your MSI P65 is very similar to the GS65, so the same procedure could work in your case. I hope this helps somebody.
To summarize what I found, add acpi_osi=! acpi_osi='Windows 2009' to the GRUB_CMDLINE_LINUX variable in /etc/default/grub, and then run sudo update-grub and reboot your system. This should enable the airplane mode function key combo (Fn+F10).
With the airplane mode function key enabled, it is now possible for me to recover from the hardware locked wifi issue by pressing Fn+F10twice - not the most elegant solution, but at least I don’t have to reboot.
and it worked…
i’m amazed, after all that i’ve been trying it worked. i’ll mark as solved but anyway as you just said, it is not the mos elegant solution but not having to reboot is quite good. Yet i do not understand what is causing network to get hard blocked, i’ll keep traing to findout.
Thanks to everyone who has given me ideas and possible solutions.