Bug 466408 - RFE: support hibernation to a swap file
Summary: RFE: support hibernation to a swap file
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Matthew Garrett
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 662853 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-10 05:10 UTC by petrosyan
Modified: 2017-04-10 09:32 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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. ***


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