# Revision history [back]

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: https://blog.christophersmart.com/2016/05/11/running-scripts-before-and-after-suspend-with-systemd/, you could put a script in "usr/lib/systemd/system-sleep/" with this example from the author:

#!/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
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
fi


Hope this helps...