Edit a file with filename starting with 00 in /etc/pm/sleep.d as suggested by the mentioned manual page

Put in the command I suggested above there, that way it will be run just before suspend and hib and the other command last after waking up.

Look at the other files in there to see how you'll want to write the file to achieve this.

Reply via email to