cant hibernate to swapfile

Bug #252143 reported by Johan Kröckel
40
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I installed ubuntustudio 8.04.1 without a swapspace on an encrypted volume on a lvm volume.
The hibernate-button is available but wouldnt work because theres no swapspace.
Now I create a swapfile:
dd if=/dev/zero of=/swap bs=1M count=2500
Then I add resume= and resume_offset= options to defoptions in menu.lst and run update-grub.
After the next reboot theres no hibernate-button available anymore.

This is a regression, because the exact same configuration worked in earlier ubuntustudio versions. I think even with hardy-betas.

johan@baghdad:~$ free
             total used free shared buffers cached
Mem: 2066408 578840 1487568 0 17236 280444
-/+ buffers/cache: 281160 1785248
Swap: 2559992 0 2559992
johan@baghdad:~$ uname -a
Linux baghdad 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux
johan@baghdad:~$ cat /proc/swaps
Filename Type Size Used Priority
/swap file 2559992 0 -1

root@baghdad:~# filefrag -v /swap
Checking /swap
Filesystem type is: ef53
Filesystem cylinder groups is approximately 249
Blocksize of file /swap is 4096
File size of /swap is 2621440000 (640000 blocks)
First block: 126976
Last block: 1449574

Revision history for this message
Johan Kröckel (jnkl) wrote :
description: updated
Revision history for this message
Nick Ellery (nick.ellery) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at [WWW] https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in linux.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
René Oelke (rene.oelke) wrote :

I have the same problem (Ubuntu 8.04.1 on an Mac mini): If I use no swap hibernate button is available but doesn't work. If I use a swap file the hibernate button isn't available (in /etc/fstab: "/swap swap ..." and in /boot/grub/menu.lst: "resume=/dev/sda3 resume_offset=99587").

I then installed the kernel 2.6.27-3.4 from Ubuntu 8.10 (testing). The result is the same. Hibernate isn't available (see attachment).

So I think the new kernel doesn't resolves the bug. The issue remains.

I also tried do test option 2) with a LiveCD of 8.10 Alpha6. But no success. Hibernation isn't available and I don't know how to configure a swap file for a LiveCD.

Revision history for this message
René Oelke (rene.oelke) wrote :

I also tried to use a swap partition instead of a swap file. I removed the swap file, added a swap partition and activated this for swapping and resuming (in /etc/fstab: "/dev/sda4 swap ..." and in /boot/grub/menu.lst: "... resume=/dev/sda4").

Now the hibernate button is available (see attachment) and hibernation is working correctly.

So I think that there is a generell problem when using swap files and hibernation. But I don't know if this is a kernel or Ubuntu problem. I haven't another distribution to test it.

Revision history for this message
PetrB (petr-bug) wrote :

Thank you for the report.

There has been rumor that hibernation on WUBI installs (which uses swap file) may cause freeze. So the hibernate feature was removed. See https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/224697

(I am not advocating the change, I am just reporting current state.)

Revision history for this message
kernel-janitor (kernel-janitor) wrote :

Hi Johan,

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux-image-`uname -r` 252143

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kernel-hibernate
tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
3sv (dries-3sv) wrote : apport-collect data

Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: drv 1812 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe9f4000 irq 22'
   Mixer name : 'Intel G45 DEVCTG'
   Components : 'HDA:10ec0269,10431443,00100004 HDA:80862802,80860101,00100000'
   Controls : 21
   Simple ctrls : 12
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate amd64 (20091020.3)
MachineType: ASUSTeK Computer Inc. UL30A
Package: linux-image-2.6.31-14-generic 2.6.31-14.48
PackageArchitecture: amd64
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-14-generic root=UUID=4338bda8-349d-4981-b343-b8e8a24cb1c9 ro resume=/boot/4Gswap.swap quiet splash
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
RelatedPackageVersions:
 linux-backports-modules-2.6.31-14-generic N/A
 linux-firmware 1.24
Uname: Linux 2.6.31-14-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
XsessionErrors:
 (gnome-settings-daemon:1825): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:1825): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:1934): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:1924): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (gnome-panel:1923): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -6 and height 24
dmi.bios.date: 08/20/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 206
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: UL30A
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.asset.tag: ATN12345678901234567
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr206:bd08/20/2009:svnASUSTeKComputerInc.:pnUL30A:pvr1.0:rvnASUSTeKComputerInc.:rnUL30A:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
dmi.product.name: UL30A
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.

Revision history for this message
3sv (dries-3sv) wrote : AlsaDevices.txt
Revision history for this message
3sv (dries-3sv) wrote : AplayDevices.txt
Revision history for this message
3sv (dries-3sv) wrote : BootDmesg.txt
Revision history for this message
3sv (dries-3sv) wrote : Card0.Amixer.values.txt
Revision history for this message
3sv (dries-3sv) wrote : Card0.Codecs.codec.0.txt
Revision history for this message
3sv (dries-3sv) wrote : Card0.Codecs.codec.1.txt
Revision history for this message
3sv (dries-3sv) wrote : CurrentDmesg.gz
Revision history for this message
3sv (dries-3sv) wrote : Dependencies.txt
Revision history for this message
3sv (dries-3sv) wrote : IwConfig.txt
Revision history for this message
3sv (dries-3sv) wrote : Lspci.txt
Revision history for this message
3sv (dries-3sv) wrote : Lsusb.txt
Revision history for this message
3sv (dries-3sv) wrote : PciMultimedia.txt
Revision history for this message
3sv (dries-3sv) wrote : ProcCpuinfo.txt
Revision history for this message
3sv (dries-3sv) wrote : ProcInterrupts.txt
Revision history for this message
3sv (dries-3sv) wrote : ProcModules.txt
Revision history for this message
3sv (dries-3sv) wrote : RfKill.txt
Revision history for this message
3sv (dries-3sv) wrote : UdevDb.txt
Revision history for this message
3sv (dries-3sv) wrote : UdevLog.txt
Revision history for this message
3sv (dries-3sv) wrote : WifiSyslog.gz
Changed in linux (Ubuntu):
status: Incomplete → New
tags: added: apport-collected
Revision history for this message
3sv (dries-3sv) wrote :

Hello,

This bug still exists in the release candidate for 9.10 - karmic koala. I have created a swapfile, added the resume=/dev/resume_partition as a parameter in grub, but hibernating does not work.

I have run the apport-collect -p linux-image-`uname -r` 252143 command to add the asked debug information.

Revision history for this message
Christian Stöveken (excogitation) wrote :

http://ubuntuforums.org/showthread.php?t=1042946
Afaict the problem still persists in 9.10

Revision history for this message
RBertrand (r-bertrand) wrote :

I encountered problems hibernating to a swapfile with/on an ext4 fs. On ext3, all went well, however.

In de log I found entries about recognizing the correct hibernation image whilst resuming after hibernation to disc:
Jan 18 11:28:24 MyC2DLaptop kernel: [ 0.926459] PM: Checking image partition UUID=fa17f5e8-8818-4c00-ae18-7a02e9394d39

But further on I also found an entry about unable to resume from it:
Jan 18 11:28:24 MyC2DLaptop kernel: [ 2.790124] PM: Resume from disk failed.

After that, a "manual" resume is tried:
Jan 18 11:28:24 MyC2DLaptop kernel: [ 18.941348] PM: Starting manual resume from disk
Jan 18 11:28:24 MyC2DLaptop kernel: [ 18.941352] PM: Resume from partition 8:3
Jan 18 11:28:24 MyC2DLaptop kernel: [ 18.941354] PM: Checking hibernation image.
Jan 18 11:28:24 MyC2DLaptop kernel: [ 18.941578] PM: Resume from disk failed.

I seems to me the kernel has a problem reading the image file on ext4. I changed to ext3 for both my system and swapfile location (which is on the system partition) and had no problems anymore using swapfile for hibernation.

tags: added: encrypted-swap
Revision history for this message
Code Rage (wbca3110376) wrote : apport-collect data

AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: coderage 1868 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf0900000 irq 22'
   Mixer name : 'Conexant ID 5067'
   Components : 'HDA:14f15067,1179ffd5,00100301'
   Controls : 6
   Simple ctrls : 4
CheckboxSubmission: 54623a1ae78fbce7850a5910a9e6be8e
CheckboxSystem: b1865df84255b8716d3bcc269ff410d1
DistroRelease: Ubuntu 9.10
HibernationDevice: RESUME=/mnt/8000Mb.swap
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
MachineType: TOSHIBA Qosmio X505
NonfreeKernelModules: nvidia
Package: linux-image-2.6.31-20-generic 2.6.31-20.58
PackageArchitecture: amd64
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.31-20-generic root=UUID=3e452f30-c5e0-4165-a41c-16d6d48ccd92 ro quiet splash
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
RelatedPackageVersions:
 linux-backports-modules-2.6.31-20-generic N/A
 linux-firmware 1.26
RfKill:

Uname: Linux 2.6.31-20-generic x86_64
UserGroups: adm admin audio cdrom fuse lp lpadmin netdev plugdev sambashare video
dmi.bios.date: 02/23/2010
dmi.bios.vendor: TOSHIBA
dmi.bios.version: V2.20
dmi.board.name: Qosmio X505
dmi.board.vendor: TOSHIBA
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: TOSHIBA
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnTOSHIBA:bvrV2.20:bd02/23/2010:svnTOSHIBA:pnQosmioX505:pvrPQX33U-01H00H:rvnTOSHIBA:rnQosmioX505:rvrNotApplicable:cvnTOSHIBA:ct10:cvrN/A:
dmi.product.name: Qosmio X505
dmi.product.version: PQX33U-01H00H
dmi.sys.vendor: TOSHIBA

Revision history for this message
Code Rage (wbca3110376) wrote : AlsaDevices.txt
Revision history for this message
Code Rage (wbca3110376) wrote : BootDmesg.txt
Revision history for this message
Code Rage (wbca3110376) wrote : Card0.Amixer.values.txt
Revision history for this message
Code Rage (wbca3110376) wrote : Card0.Codecs.codec.0.txt
Revision history for this message
Code Rage (wbca3110376) wrote : CurrentDmesg.txt
Revision history for this message
Code Rage (wbca3110376) wrote : Dependencies.txt
Revision history for this message
Code Rage (wbca3110376) wrote : IwConfig.txt
Revision history for this message
Code Rage (wbca3110376) wrote : Lspci.txt
Revision history for this message
Code Rage (wbca3110376) wrote : Lsusb.txt
Revision history for this message
Code Rage (wbca3110376) wrote : PciMultimedia.txt
Revision history for this message
Code Rage (wbca3110376) wrote : ProcCpuinfo.txt
Revision history for this message
Code Rage (wbca3110376) wrote : ProcInterrupts.txt
Revision history for this message
Code Rage (wbca3110376) wrote : ProcModules.txt
Revision history for this message
Code Rage (wbca3110376) wrote : UdevDb.txt
Revision history for this message
Code Rage (wbca3110376) wrote : UdevLog.txt
Revision history for this message
Code Rage (wbca3110376) wrote : WifiSyslog.gz
Revision history for this message
Code Rage (wbca3110376) wrote : XsessionErrors.txt
Revision history for this message
Code Rage (wbca3110376) wrote :

I apologize if I have added unwanted information/posts on this matter and without any direct request from someone here to do so.

For the record: I do have this issue with hibernation failing to find a header, thus failing. I do not have the option of a swap partition as there are other partitions that came installed on this machine that I was not comfortable with manipulating. I have the swap file created by dd located in /mnt/8000Mb.swap. I am still researching things to see if I can find something I can do to resolve this issue on my machine. Long story short, I am looking to find the area where hibernation maps itself to a swap location, and hopefully be able to modify that to seek swap files within the partition the active ubuntu installation is running in.

Thank You

Revision history for this message
^_Pepe_^ (jose-angel-fernandez-freire) wrote :

To all reporters.

This bug report, has been used for slightly different problems for many users.

I'd suggest:

1. Mark this as Incomplete, to let the orginal reporter (8.04) include any update.
2. Open new bugs (Lucid/Maverick) for the other cases.

Thanks to all.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Code Rage (wbca3110376) wrote :

As of today, this issue still continues regarding hibernate. I have thus far managed to get suspend to work via using s2ram as detailed at http://jasonkotenko.com/posts/toshiba-laptop-suspend-lucid/ as linked to from http://ubuntuforums.org/showthread.php?t=1481371. I will try using the s2disk stuff later on after more research, but I wanted to report here that this bug with hibernate continues to fail. It fails as a result of being unable to find headers or something like that. I have since my last post here, been able to create a swap partition, but I prefer to use the swap file that I created within the active partition instead.

Please let me know anything you'd like me to provide to help work this issue out.

To post a comment you must log in.