On 26/03/18 11:57, Ulf Volmer wrote:
On 26.03.2018 08:40, Robin Laing wrote:

sudo modprobe -r r8169
sudo modprobe r1869

So, what is my next step in finding out why this won't restart on suspend?

you can place a script for automatically load/unload your network driver.

see

https://blog.christophersmart.com/2016/05/11/running-scripts-before-and-after-suspend-with-systemd/

best regards
Ulf


This works.

Thanks.

This is the scrip I used.


#!/bin/sh
if [ "${1}" == "pre" ]; then
  # Do the thing you want before suspend here, e.g.:
#  echo "we are suspending at $(date)..." > /tmp/systemd_suspend_test
  modprobe -r r8169
elif [ "${1}" == "post" ]; then
  # Do the thing you want after resume here, e.g.:
#   echo "...and we are back from $(date)" >> /tmp/systemd_suspend_test
  modprobe r8169
fi


Robin
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to