I am running Nordvpn, which I have been running for a couple years. Lately, anytime the computer sleeps, the internet stops working. I have to restart the computer to get it working. Maybe there is some kind of permission issue? Not sure what the issue is and would greatly appreciate help.
Hello @shockwave
Would you be able to post the output for your network hardware. Are you referring to ethernet or Wifi? I’m assuming ethernet?
inxi -n
Oh dear, the entire Internet?
Sounds like the network card is not waking up after power saving mode. I don’t have this problem since I don’t enable power saving… what DE do you use? Maybe your power manager or network manager has a setting specifically for disabling power save mode for the network?
I have posted inxi below. It’s on wifi. It could be the wifi card, but I have feeling it may be something like nordvpn isn’t getting the permission to work after the system wakes up again.
Network:
Device-1: Intel Wireless 7265 driver: iwlwifi
IF: wlan0 state: up mac: 7c:b0:c2:61:80:7d
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: N/A
Device-3: Intel Bluetooth wireless interface type: USB driver: btusb
IF-ID-1: nordlynx state: unknown speed: 10 Mbps duplex: full mac: N/A
I use Gnome. I am mostly using this computer on power, so disabling power saving would be okay. How can I do that? I looked in settings and didn’t find that.
You can turn off power saving mode on your Wifi by editing
/etc/modprobe.d/iwlwifi.conf
Add the following
options iwlwifi power_save=0
Thank you. I will make that change. I don’t think it’s a wifi card issue but something that isn’t running for nordvpn when it comes out of sleep. For example if I type nordvpn c or nordvpn d it just spins. When I shut down the computer it also seems to get stuck on something. Is there a way to get an output so I can see why it isn’t working when I type nordvpn d?
Well I’m assuming it doesn’t have internet. You could try first to ping a site before doing anything and see if there is a connection?
ping -c 3 www.archlinux.org
So I finally have some time to work on this. As far as I can tell, nordvpn seems to be failing to reconnect after a hibernation. Maybe a permission issue. It seems like I had this issue a long time ago, but can’t remember what the solution was? Any ideas?
I don’t have much experience with any vpn use but i think maybe what is happening is when the system goes to sleep the automatic function of the vpn is set to kill so it won’t reconnect on it’s own? Try…
nordvpn set killswitch off
Thank you, @ricklinux I gave that try, but the killswitch is already disabled.
Well it was just a thought. Like i say i don’t use a vpn so if it’s not that and you have power save off? Then try this.
create the following if it doesn’t exist
/etc/modprobe.d/iwlwifi.conf
add the following
options iwlwifi bt_coex_active=0
See if that works after a reboot and try it.
Thank you. I just turned off power save and will see if that works. If not I will do what you mentioned above.
You can add both and it won’t matter.
I added both those scripts and there doesn’t seem to be any difference. Nordvpn still won’t start after the computer sleeps. If I type Nordvpn d or or Nordvpn c it just spins and gets stuck. Like it doesn’t have permission to start. So far the only way I have found to make it work is to restart the computer. Anyone out there had this issue?
Have you checked here for anything that may help?