Talk:Elogind

Suggestion about Suspend to hibernate with elogind.

When laptop is suspended to ram, it uses very little power, so when the battery runes out user is forced to fully boot up the machine.

There are two ways to prevent this situation: Hibernate with hybrid-sleep, or use  command with the real-time wake timer hook to allow system to wake up and perform hibernate to disk with.

Solution is similar to Sabayon's wiki https://wiki.sabayon.org/index.php?title=Auto_hibernate_after_suspend, but it fully uses  command so   becomes obsolete.

First You have to create folder  for sleep hooks, and/or   for shutdown hooks.

Then, in  place script:

You need to add executable permission with:  and reboot machine.