Ask Your Question
1

F18 Gnome hybrid-sleep

asked 2013-03-31 20:02:04 -0500

liam gravatar image

So, how does one get gpm to accept the systemd suspend methods so as to trigger user defined actions upon certain events? In particular, I want to enable hybrid-sleep instead of suspend. I've tested that my system works properly when I trigger it manually through systemctl hybrid-sleep, or through suspend (where I've made a change to execstart to call systemd-sleep hybrid-sleep).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-11-13 22:25:16 -0500

patrickshuff gravatar image

updated 2013-11-13 22:46:56 -0500

I have found the answer to this question in the following manpage:

man systemd-hybrid-sleep.service

"Immediately before entering system suspend and/or hibernation systemd-suspend.service (and the other mentioned units, respectively) will run all executables in /usr/lib/systemd/system-sleep/ and pass two arguments to them. The first argument will be "pre", the second either "suspend", "hibernate", or "hybrid-sleep" depending on the chosen action. Immediately after leaving system suspend and/or hibernation the same executables are run, but the first argument is now "post". All executables in this directory are executed in parallel, and execution of the action is not continued until all executables have finished."

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-31 20:02:04 -0500

Seen: 701 times

Last updated: Nov 13 '13