Network is unavailable after sleep

being able to fix it using software would indicate it is soft blocked?

Hard block would mean physical switch/BIOS level thing the OS has no access to.

I’m unable to unlock via the keyboard (fn + f8, f9, does not work. fn + f12 to sleep works good) , Fn + f10 enable/disable airplane mode works in windows but do not work in manjaro.
And this computer (msi p65) does not have a physical Wi-Fi switch nor a setting in the BIOS to enable/disable Wi-Fi.

I do tried:
systemctl stop NetworkManager
systemctl start NetworkManager

after that did rfkill list, output was:

0: phy0: Wireless LAN
	Soft blocked: yes
	Hard blocked: yes

Then i tried with:
rfkill unblock wlan
rfkill unblock all

and the rfkill list, output was:

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: yes 

then i had to reboot.

im sure you definitely have some keyboard shortcut for switching the wifi on and off with the fn + f1-12 keys - one of the f keys does it, it has a wifi symbol on it, so try using it …
and in bios i meant any setting/option related to your wlan, like some power management, some wake options for wlan, so search there for these: wlan, wake, power… because it looks like it could be a bios setting…


so restarting the network manager didnt work, since the wifi is both soft and hard blocked:

and rfkill unblock also didnt worked…


so theres not much left to try here…it really looks like its bios related, so go check the bios settings, and go trough all of them… and report back

Well, this is the BIOS and i do not see any related option that i could modify.

.

I also tried after wake up from sleep mode to unable/disable airplane mode, in the wifi screen (not with fn keys) but it still continued hard blocked.

I really do not understand why it is given me problems in manjaro, cause in windows network works just fine.

so try enabling the wake up on lan option, even though its for the lan network, lets give it a try…
also post pictures from the usb configuration and security options…

then disable ipv6 from system settings/connections/wired connection/ipv6/method=disbled, click apply and try…
if it doesnt work, create a new test user in system settings, reboot, log in with the test user and try…
if it doesnt work, check if the driver is even loaded after waking up from suspend with:
inxi -xN
and try to reload it with:
sudo modprobe -r iwlwifi
sudo modprobe iwlwifi

if it still doesnt work, check if you have installed tlp:
pacman -Qs tlp
if you do, uninstall it, reboot and try again…

if it still doesnt work, boot into manjaro live usb, and test there

Ok, so in resume, i try everything you suggested but nothing solved the problem.

  • post pictures from the usb configuration and security options…

  • try enabling the wake up on lan option
  • then disable ipv6 from system settings/connections/wired
  • create a new test user in system settings, reboot, log in with the test user

After try with all these config i got same problem, after wake up from sleep mode, network was Hard Blocked.

  • check if the driver is even loaded after waking up from suspend with: inxi -xN
  • and try to reload it with:
    sudo modprobe -r iwlwifi
    sudo modprobe iwlwifi

I did these every time i reboot with every new config and the output for these tree commands was always the same :
inxi -xN :

Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3
  Device-2: Qualcomm Atheros QCA8171 Gigabit Ethernet
    vendor: Micro-Star MSI driver: alx v: kernel port: 3000
    bus-ID: 3d:00.0 

sudo modprobe -r iwlwifi :

modprobe: FATAL: Module iwlwifi is in use.

and rfkill list output was:

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: yes 
  • check if you have installed tlp: pacman -Qs tlp if you do, uninstall it, reboot and try again…

I’ve already tried time ago thinking it might be some tlp config but it was not.

  • if it still doesnt work, boot into manjaro live usb, and test there

I did it but got the same problem and the same outputs for the commands listed above.

So at this point I am not giving up, but this problem is giving me a bit of a headache.
And thank you so much brahma for keep giving me some ideas to try to solve it. :+1:

so post output from:
lsmod | grep iwlwifi
then suspend, resume and post logs + dmesg after it failed:
journalctl -b0 -p4 --no-pager | grep -E 'NetworkManager|iwlwifi'
sudo dmesg | grep -E 'NetworkManager|iwlwifi'


also check for a bios update

lsmod | grep iwlwifi output:

iwlwifi               491520  1 iwlmvm
cfg80211             1138688  3 iwlmvm,iwlwifi,mac80211

After suspend:
journalctl -b0 -p4 --no-pager | grep -E 'NetworkManager|iwlwifi' output:

kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 0
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 1
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 2
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 3
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 4
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 6
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 8
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 9
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 10
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 11
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 15
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 16
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 18
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 19
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 20
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 21
kernel: iwlwifi 0000:00:14.3: WRT: Overriding region id 28
kernel: iwlwifi 0000:00:14.3: reporting RF_KILL (radio disabled)

and then sudo dmesg | grep -E 'NetworkManager|iwlwifi' output was:

[ 2952.822151] audit: type=1130 audit(1679184499.126:477): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 2962.855606] audit: type=1131 audit(1679232287.155:480): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[12616.389986] audit: type=1130 audit(1679241936.873:511): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[12626.436614] audit: type=1131 audit(1679241946.919:512): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[12978.230934] audit: type=1130 audit(1679242298.708:513): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[12988.274432] audit: type=1131 audit(1679242308.751:514): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[13260.550476] audit: type=1111 audit(1679242581.025:515): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-add uuid=e6b41e8f-7fb8-42f4-8bca-f2251c7c47ec name="pvpn-ipv6leak-protection" pid=57670 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13260.569349] audit: type=1111 audit(1679242581.042:516): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-add uuid=1f190c5c-e338-46c2-9417-7bb279c66e5f name=50726F746F6E2056504E204E4C2D4652454523323639303837 pid=1714 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13260.632510] audit: type=1111 audit(1679242581.105:517): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-activate uuid=1f190c5c-e338-46c2-9417-7bb279c66e5f name=50726F746F6E2056504E204E4C2D4652454523323639303837 pid=1714 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13260.642059] audit: type=1130 audit(1679242581.115:518): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[13264.240140] audit: type=1111 audit(1679242584.715:519): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=statistics interface="ipv6leakintrf0" ifindex=6 args=2000 pid=1495 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13264.248962] audit: type=1111 audit(1679242584.722:520): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=statistics interface="wlo1" ifindex=3 args=2000 pid=1495 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13264.255954] audit: type=1111 audit(1679242584.728:521): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=statistics interface="wlo1" ifindex=3 args=500 pid=1630 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13265.635075] audit: type=1111 audit(1679242586.108:522): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=statistics interface="ipv6leakintrf0" ifindex=6 args=0 pid=1495 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13265.646423] audit: type=1111 audit(1679242586.118:523): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=statistics interface="wlo1" ifindex=3 args=0 pid=1495 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13265.657483] audit: type=1111 audit(1679242586.132:524): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=statistics interface="wlo1" ifindex=3 args=500 pid=1630 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13270.687324] audit: type=1131 audit(1679242591.162:525): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[20168.418352] audit: type=1130 audit(1679249488.811:530): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[20178.470277] audit: type=1131 audit(1679249498.864:531): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[21760.678157] audit: type=1130 audit(1679251081.053:533): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[21763.428642] iwlwifi 0000:00:14.3: reporting RF_KILL (radio disabled)
[21770.709756] audit: type=1131 audit(1679251098.079:536): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[21775.181396] audit: type=1111 audit(1679251102.549:538): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=statistics interface="ipv6leakintrf0" ifindex=6 args=2000 pid=1495 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[21779.405515] audit: type=1111 audit(1679251106.773:539): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=device-disconnect interface="ipv6leakintrf0" ifindex=6 pid=1495 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[21779.440341] audit: type=1111 audit(1679251106.809:540): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=statistics interface="ipv6leakintrf0" ifindex=6 args=0 pid=1495 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[21779.441514] audit: type=1130 audit(1679251106.809:541): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[21784.119629] audit: type=1111 audit(1679251111.486:542): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=radio-control arg="wireless-enabled:off" pid=1495 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[21784.129147] audit: type=1111 audit(1679251111.496:543): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=radio-control arg="wwan-enabled:off" pid=1495 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[21786.468499] audit: type=1111 audit(1679251113.836:544): pid=1010 uid=0 auid=4294967295 ses=4294967295 msg='op=radio-control arg="wwan-enabled:on" pid=1495 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[21789.490018] audit: type=1131 audit(1679251116.859:545): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

also check for a bios update

I`m looking forward to try updating the bios, but iḿ not really sure that the problem is in there!.

Maybe your VPN is interfering.

May look like a stupid thing but try everything from Live USB, even use Xfce one, it’s always good to simplify (minimal setup or TTY) and try something different, that might tell you where to problem is.

Dont think so, because i have already tried with a live usb and it gave me the same problem.
But, ill try uninstalling anyway and see what happens!

Didn’t we have a similar thread in the last days? I think it was about an HP laptop (might be wrong) that automatically enables airplane mode when closing the lid.

The search function might lead you there.

Edit: Maybe it was this Wifi Turns off when opening the Lid (Activates Airplane Mode)

I do think so !!!

I’ll keep reading posible solutions and try differents thing that might help.

you can add these parameters to your wifi:
kate /etc/modprobe.d/wifi.conf
and put there this:

options iwlwifi 11n_disable=1 swcrypto=0 bt_coex_active=0 power_save=0
options iwlmvm power_scheme=1 
options iwlwifi d0i3_disable=1 
options iwlwifi uapsd_disable=1 
options iwlwifi lar_disable=1

save it, reboot and test

I´ll test in the weekend and then report if itworks!!

I skimmed, so apologize if I missed this already recommended …

Try unloading the module, disabling network before sleep, and enabling after.

I’ve had at least one lappy that exhibited this behavior and that was the only solution (after creating a systemd service to automate doing just that)

I already try that as mentioned in here, but it did not work.
Now i have to try what brahma mentioned here

and see if it helps. I will report when i can try it!!

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:

rmmod: ERROR: Module iwlwifi is in use by: iwlmvm

:pensive:

The remove this as well.

rmmod iwlmvm
rmmod iwlwifi

I have tried to remove the wifi module runing the following:

sudo rmmod /lib/modules/6.1.19-1-MANJARO/kernel/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko.zst

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.conf similar as mentioned (here), but in a different file with the following parameters :

options iwlwifi 11n_disable=1
options iwlwifi swcrypto=0
options iwlwifi bt_coex_active=0
options iwlwifi power_save=0
options iwlwifi uapsd_disable=1
options iwlmvm power_scheme=1

save it, reboot, then sleep, then wake up. But as always network was Hard Bloked…