You are not logged in.
Pages: 1
Hi all,
I'm trying to add a hook that runs on suspend-to-ram, and am following these instructions:
https://wiki.archlinux.org/index.php/Po … leep_hooks
To enable it for user "lefty," I try to run
# systemctl enable suspend@lefty but I get this error:
Failed to issue method call: No such file or directoryThe same thing happens if I try
# systemctl enable suspend@userI feel like I'm probably missing something. Any idea what it is?
Thanks in advance!
-LeftyAce
Offline
You have to create the script...
Use your preferred editor (nano)
copy and paste the script to
/etc/systemd/system/suspend@.service
Heads up...you might want to enable the resume service too
I don't know that's what I did
Offline
Thanks dazemc, that did the trick.
In this case I don't need a resume action, I was trying to tell gpg-agent to drop cached passphrases as I suspend the machine, and now it works great!
-Lefty
Offline
Pages: 1