Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think this has a shot:

The systemd has a process that is invoked during suspend and wake, what if you wrote a script that unloaded the module and parameter before suspend and then reloaded it on wake.

From what I have read here:, you could put a script in "usr/lib/systemd/system-sleep/" with this example from the author:

if [ "${1}" == "pre" ]; then
  # Do the thing you want before suspend here, e.g.:
  echo "we are suspending at $(date)..." > /tmp/systemd_suspend_test
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

Hope this helps...