Internet Connection Preventing Computer From Suspending

Hello. So, I've been trying to find other solutions for this, and nothing has worked. Most of what I've seen though is just based on lid closing activity. Mine seems to be a bit more complex than that, as it seems having an active network connection is preventing suspend, both from closing lid and manually telling the computer to suspend. I tested having the NIC turned off, having it on but not connected to a network, and having it connected to a network, and only being connected to the network is preventing suspension. I've also noticed that this is occurring on all linux distros I've tried, both arch and debian based. Was not an issue on windows though.

I'm fairly new to Linux as well, so I'm not sure what's useful info to know or how to obtain it, so please let me know what might be helpful. I did at one point find a script that worked for a bit by shutting off the NIC when suspend starts, then turning it back on when leaving suspend, but then at some point it stopped working and left the NIC off.

You need to write a service to shut down all your network components prior to suspend, and reload all your network components after resuming.

Search these terms on the forum:

Systemd suspend resume service file

There are many other posts on this topic if you search the forum.

https://archived.forum.manjaro.org/t/kernel-4-19-0-3-not-network-after-suspending-gnome-edition/63544/2

https://archived.forum.manjaro.org/t/wifi-adapter-tp-link-tl-wn823n-must-be-reconnected-for-it-to-work/52968/19

https://archived.forum.manjaro.org/t/surface-pro-1796-wifi-not-resuming-after-suspend/48133/47

https://archived.forum.manjaro.org/t/thinkpad-x230t-wont-suspend-under-kernel-419rc4-4-18-4-17-4-14-4-9/59798/21

Here are some external links with excellent systemd reference material:

The ArchWiki - systemd

Red Hat - systemd-targets

Red Hat - systemd unit files

Systemd manpage

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

Forum kindly sponsored by