Tag Info

New answers tagged


In 15.04, Vivid, you need to place your scripts in: /lib/systemd/system-sleep/ An example script based on one from the Arch wiki (systemd sleep Hooks): #!/bin/sh case $1/$2 in pre/*) echo "Going to $2..." # Place your pre suspend commands here, or `exit 0` if no pre suspend action required ;; post/*) echo "Waking up from $2..." # ...

Top 50 recent answers are included