You are not logged in.

#1 2014-03-20 17:56:53

hippieben
Member
Registered: 2013-10-27
Posts: 218

Write RAM contents to hard drive on sleep?

One feature that I miss from Mac OS X is that it would automatically write the RAM contents to the hard drive so that if the battery died while your laptop was sleeping you'd be able to start back up into your saved session without restarting.  This is different than hibernation, since hibernation writes the RAM contents to the disk and powers off the machine.  This would still be a normal sleep, just with a backup.  I'm not sure what this would be called, so I'm not sure what to look for in the wiki.  Is there a way to do this?  If so, could you point me to instructions for setting it up?  Thanks!

Offline

#2 2014-03-20 18:11:30

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Write RAM contents to hard drive on sleep?

It's called hybrid sleep. I guess it would be enough to configure system for hibernation for it to work.

Offline

#3 2014-03-20 19:00:13

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: Write RAM contents to hard drive on sleep?

Try "systemctl hybrid-sleep" after configuring hibernation.

Offline

#4 2014-03-21 06:58:12

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Write RAM contents to hard drive on sleep?

What is the exact reason for hybrid-sleep if the resume takes the same amount of time than resuming from hibernation?

Or can you notice a significant difference between the two?

Offline

#5 2014-03-21 07:14:46

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Write RAM contents to hard drive on sleep?

hybrid-sleep is exactly what you described - "normal sleep, just with a backup". It will resume quickly from RAM, unles the battery has died.

It seems you didn't try it, as suggested above.

Offline

Board footer

Powered by FluxBB