No network via ethernet after resume from suspend

Maybe someone with the same problem will be interested:

To automatically reconnecting after suspend, I've added the script that runs each resume and restores connection (based on this post).

  1. Go to
    cd /lib/systemd/system-sleep/
    and create the script file
    sudo pluma restore_connection
    with the following content

#!/bin/sh case $1/$2 in post/*) modprobe -r r8169 modprobe r8169 ;; esac

  1. Make the script executable
    sudo chmod a+x restore_connection

  2. Now after suspend the connection should be restored.

Thanks to everyone and particularly to @ouroumov !

5 Likes