Workaround for broken Network Connection after Suspend to RAM 03.04.2018

Situation:

Something weird is up with NetworkManager these days, for a longer time now (several weeks) is was unable to suspend my computer as it wouldn’t recognize the network cable anymore (as NetworkManager states).
The reason seems to be that it is stuck in "moderated mode" and i didn’t find any help for this issue.

Solution:

However i remembered the good old times where i overread that i must activate the NetworkManager in ArchLinux so i always just used the [email protected] service.
So today i tried to switch and yay, no module/kernel/whatever issue, it really seems to be the fault of the NetworkManager (or related) package - it works wonderful!

Disclaimer: i don’t cover Wireless or VPN connection here for now

So this is how to replace them:

  • Open the terminal emulator of your choice, get yourself root access using su and type the root password or just use sudo.
  • Find your network interfaces name (for wired connection):
    % ip link
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: enp10s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
        link/ether 10:c3:7b:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    

    In my case enp10s0

  • Disable and stop NetworkManager
    % systemctl disable NetworkManager
    % systemctl stop NetworkManager
    
  • Enable and start dhcpcd
    % systemctl enable dhcpcd@enp10s0
    % systemctl start dhcpcd@enp10s0
    

That’s about it.


Maybe also interesting for you - as reference…
dhcpcd in ArchLinux Wiki



Wait, there's more in this topic!

Made with in Germany Imprint Privacy Contribute