Bug 466408 - RFE: support hibernation to a swap file
RFE: support hibernation to a swap file
Status: ASSIGNED
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Matthew Garrett
Fedora Extras Quality Assurance
: FutureFeature
: 662853 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-10 01:10 EDT by petrosyan
Modified: 2017-04-10 05:32 EDT (History)
7 users (show)

See Also:
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: ---


Attachments (Terms of Use)

  None (edit)
Description petrosyan 2008-10-10 01:10:01 EDT
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 01:11:47 EDT
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 10:07:25 EDT
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 11:19:21 EDT
since this feature is supported in the kernel I am going to make it a feature request.
Comment 4 jon 2009-07-10 08:45:21 EDT
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-14 20:13:03 EST
*** Bug 662853 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.