Ask Your Question
0

Minimal hardware for hibernation to work

asked 2017-12-14 02:18:57 -0600

alfC gravatar image

I have been using Fedora for many years in my laptops. I use Fedora 27 now.

I never was able to make hibernation work in any of these computers. Although it is more likely a deficiency of the combiation of hardware and the Linux kernel, I am wondering, for the Fedora community, if there is a rule of thumb that can tell whether hibernation will work or not for a particular model or brand of the laptop.

What is preventing hibernation to work? is a hardware feature or power management that I should be looking for? What laptops in your experience tend to work with hibernation?

edit retag flag offensive close merge delete

Comments

1

Just to clarify, with hibernation you mean suspend-to-disk, right? Not sleep (or standby), and no hybrid sleep. For suspend-to-disk to work, you need a swap partition / swap file that has a least the size of your RAM, better the double (in case some of your swap space is used before you trigger hibernation).

I personally never use it - I don't see the point. If I want my PC off, I shut it down (I guess it boots faster than reading 12GB from disk back to RAM). If I want an instant resume, I put it in standby. Power consumption is so little, it holds for days without battery charge.

florian gravatar imageflorian ( 2017-12-14 10:29:18 -0600 )edit

@florian, yes hibernation to disk. Eventually I need it because the laptop battery degrades to the point that suspend is not reliable or suspend itself decides not to work. Hibrid would be better. I have a swap that is just above the RAM, I didn't know that I need swap that was twice the RAM, maybe that was the problem all along.

alfC gravatar imagealfC ( 2017-12-14 12:37:45 -0600 )edit

Is your swap occupied just before you initiate hibernation? (Run "free -h" to check)

florian gravatar imageflorian ( 2017-12-14 13:31:34 -0600 )edit

Arch Wiki states that hibernation may even work with swap < RAM.

Maybe the wiki article is helpful to you.

florian gravatar imageflorian ( 2017-12-14 13:35:40 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-12-14 14:06:36 -0600

ssieb gravatar image

There are two requirements for hibernate to work. The first is a large enough swap partition. It has to be big enough to hold any current swap usage plus whatever memory the kernel needs to save. It's safest to make sure it's at least as large as your RAM, but smaller may work. The second is you have to have a resume option on the kernel command line in grub that points to the swap partition. resume=/dev/sda5 or probably resume=UUID=swap_partition_uuid.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-12-14 02:18:57 -0600

Seen: 387 times

Last updated: Dec 14 '17