Bug 466408

Summary: RFE: support hibernation to a swap file
Product: [Fedora] Fedora Reporter: petrosyan
Component: kernelAssignee: Matthew Garrett <mjg59>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: iny, jhasse, jon.ronnenberg, kernel-maint, liblit, me, pahan
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description petrosyan 2008-10-10 05:10:01 UTC
Description of problem:
I don't have swap partitions, only a swap file (2GB in size).
When I attempt to hibernate into a swap file, the laptop seems to suspend and to start writing the image to the hard drive, but then after it is finished, it immediately wakes up.

here is some relevant info from the dmesg output:
PM: writing image.
PM: Free swap pages: 524286
PM: Saving image data pages (106434 pages) ... done
PM: Wrote 425736 kbytes in 7.94 seconds (53.61 MB/s)
PM: S<3>PM: Swap header not found!
|
Restarting tasks ... done.
PM: Basic memory bitmaps freed

Version-Release number of selected component (if applicable):
kernel-2.6.26.5-47.fc9.x86_64

How reproducible:
Always

Steps to Reproduce:
1. create one swap file (no swap partitions)
2. try to hibernate.

Additional Info:
Hibernation into a swap partition works fine.

Comment 1 petrosyan 2008-10-10 05:11:47 UTC
here is some information about hibernating into a swap file:

http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.27.y.git;a=blob;f=Documentation/power/swsusp-and-swap-files.txt;hb=HEAD

Comment 2 Dave Jones 2008-10-10 14:07:25 UTC
even if the immediate wake-up bug was fixed, we currently don't support resuming from swap files in the initrd.

Comment 3 petrosyan 2008-10-10 15:19:21 UTC
since this feature is supported in the kernel I am going to make it a feature request.

Comment 4 jon 2009-07-10 12:45:21 UTC
This bug also effects Ubuntu install as an application (http://wubi-installer.org/)

See https://bugs.launchpad.net/ubuntu/+bug/313724

Comment 5 Chuck Ebbert 2010-12-15 01:13:03 UTC
*** Bug 662853 has been marked as a duplicate of this bug. ***