You are not logged in.

#1 2012-12-07 13:31:45

Raptorista
Member
From: Italy
Registered: 2011-08-01
Posts: 42

Suspend to disk doesn't resume on power-up

Hello everyone smile
  today I finally added a swap file to my system, and tried the "new" functionality «suspend to disk». I searched the web and found that suspending to a swap file is somewhat different from suspending to a swap partition [in fact, the first time I tried it only complained "swap header not found"] and so, according to ArchWiki https://wiki.archlinux.org/index.php/Swap I added the parameter resume_offset to the kernel.
Now, if I try to suspend to disk it actually DOES something, and the computer eventually turns off. So «Halfway done!».

The problem is that when I later press the power botton on my computer to resume the session, it simply boots as it usually does. And I can't figure out why XD

Some details: my Arch is fully updated, the swap file is /mnt/swapfile1, created according to ArchWiki, 5 GiB big [versus 4 GiB of RAM], I use KDE 4.9.4.

Any help greatly appreciated,
Massimiliano

Offline

#2 2012-12-08 09:30:07

whoops
Member
Registered: 2009-03-19
Posts: 852

Re: Suspend to disk doesn't resume on power-up

Any chance you forgot to add the normal resume= to the kernel line or accidentally overwrote it?
Also the resume hook might be missing from your mkinitcpio....
Or maybe you just forgot to rebuild the grub config or initrd image (again after the last change)?

Did you go through "https://wiki.archlinux.org/index.php/Hibernate" again to see if you forgot something?

Last edited by whoops (2012-12-08 09:31:36)

Offline

#3 2012-12-08 11:40:24

Raptorista
Member
From: Italy
Registered: 2011-08-01
Posts: 42

Re: Suspend to disk doesn't resume on power-up

Cool, I followed the guide at your link and it works now!
The hook in mkinitcpio.conf was missing, now it seems to work fine big_smile

Thanks a lot, man! smile

Offline

Board footer

Powered by FluxBB