Ask Your Question
1

Delayed hibernation

asked 2016-09-14 10:03:24 -0500

JetStream gravatar image

updated 2016-09-14 11:39:42 -0500

I have suspend and hibernation working on a laptop running Fedora 24 (Workstation). I have to take a call on whether to suspend or hibernate when I take a break from using the laptop.

Then, I came across the concept of delayed hibernation on the Arch Wiki - Delayed hibernation.

It would be quite handy to have delayed hibernation - i.e. typical scenario would be to shut the lid to suspend and not have to worry when the battery runs out while in the suspend state. With a service that wakes the system up after a period of being in a suspend state and go into hibernation, it would do just that - automatically take care of that headache.

Can a systemd service be set up on Fedora with this script? Does it need to be adapted in any way to use on Fedora? Is it sufficient to create a systemd service with this script and enable it?

edit retag flag offensive close merge delete

Comments

It looks ok to me have not try it, but looks fine to me.

aeperezt gravatar imageaeperezt ( 2016-09-14 10:13:46 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-11-05 09:10:26 -0500

mikmik gravatar image

You can actually consider using hybrid-sleep mode - the state is saved to swap partition as with "hibernate" for the case your battery / power dies , but the state is primarily available from a memory as with the "suspend" mode.

The comand to try as root:

  systemctl hybrid-sleep -i
edit flag offensive delete link more
0

answered 2019-03-02 00:25:06 -0500

With a service that wakes the system up after a period of being in a suspend state and go into hibernation kodi, it would do just that - automatically take care of that headache.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-09-14 10:03:24 -0500

Seen: 359 times

Last updated: Sep 14 '16