Save it and make it executable. If you want you can create a .desktop file for it. When you run this script it will send your pc into hibernate-mode including the lockscreen. When you wake your pc now networking works. When you use sleep-mode or hibernate-mode the normal way it doesn't.
I have still no solution but I have found a workaround:
Create a new shellscript named hibernate.sh. Open it with gedit and paste the following code:
gnome-screensav er-command -l "org.freedeskto p.UPower" \ freedesktop/ UPower \ freedesktop. UPower. Suspend
dbus-send --system --print-reply \
--dest=
/org/
org.
Save it and make it executable. If you want you can create a .desktop file for it. When you run this script it will send your pc into hibernate-mode including the lockscreen. When you wake your pc now networking works. When you use sleep-mode or hibernate-mode the normal way it doesn't.