hibernate doesn't work

Bug #313724 reported by dotnetCarpenter
86
This bug affects 15 people
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I choose Hibernate, the screen goes black and then the computer just sits there.. Doing nothing. I have to press and hold the power button to shut-down. I've waited up to 30 minutes, to see if it was just being really slow but no dice.

Ubuntu (Wubi) 8.10
Kernel: Linux ubuntu 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64 GNU/Linux
File system: NTFS
DELL Precision M4400

I have done the Ubuntu Hardware testing but have no idea how to link to that info.

(02-12-2009)
Same issue in
Ubuntu 9.10 karmic koala
Linux version 2.6.31-15-generic (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC 2009
File system: ext3
DELL Precision M4400

Tags: dell hibernate
description: updated
Revision history for this message
Lupine (thelupine) 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 https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in gnome-power-manager.

For future reference you might be interested to know that a lot of applications have bug reporting functionality built in to them. This can be accessed via the Report a Problem option in the Help menu for the application with which you are having an issue. You can learn more about this feature at https://wiki.ubuntu.com/ReportingBugs.

Could you please attach the resulting log file of:

gnome-power-bugreport.sh &> gpm.log

to the report? You might also want to take a look to the Debugging instructions located at https://wiki.ubuntu.com/DebuggingGNOMEPowerManager for submit any other logs related to your problem. Thanks in advance.

description: updated
Revision history for this message
dotnetCarpenter (activ876) wrote :
Revision history for this message
dotnetCarpenter (activ876) wrote :
Revision history for this message
dotnetCarpenter (activ876) wrote :
description: updated
Revision history for this message
dotnetCarpenter (activ876) wrote :

I forgot to mention that when I try to hibernate, after Ubuntu simienly closes, I get 4 lines that says something like:
ATA 2 Exception Emac [some numbers]
ATA 2 [some numbers]
ATA 1 Exception Emac [some numbers]
ATA 1 [some numbers]
  .... ah I found it in kern.log:
Jan 10 22:39:30 ubuntu kernel: [ 710.364059] ata2: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x9 t4
Jan 10 22:39:30 ubuntu kernel: [ 710.364062] ata2: irq_stat 0x00400040, connection status changed
Jan 10 22:39:30 ubuntu kernel: [ 710.370142] ata2.00: configured for UDMA/100
Jan 10 22:39:30 ubuntu kernel: [ 710.370145] ata2: EH complete
Jan 10 22:39:30 ubuntu kernel: [ 710.467641] ata1.00: configured for UDMA/133
Jan 10 22:39:30 ubuntu kernel: [ 710.480054] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x9 t4
Jan 10 22:39:30 ubuntu kernel: [ 710.480056] ata1: irq_stat 0x00400040, connection status changed
Jan 10 22:39:30 ubuntu kernel: [ 710.556377] ata1.00: configured for UDMA/133
Jan 10 22:39:30 ubuntu kernel: [ 710.556380] ata1: EH complete

 at least I think its it. The time is about right so...

I'm contemplating installing uswsusp but I hope that there will be a fix instead.
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/311860

Revision history for this message
dotnetCarpenter (activ876) wrote :

After looking through the kern.log I've found that everytime I hibernate "Swap header not found!" and then it tries to restart but then nothing happens. I'll try to force a filesystem check and see what happens: sudo touch forcefsck

Jan 6 00:36:09 ubuntu kernel: [ 8064.008421] sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
Jan 6 00:36:09 ubuntu kernel: [ 8064.008444] sd 0:0:0:0: [sda] Write Protect is off
Jan 6 00:36:09 ubuntu kernel: [ 8064.008446] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Jan 6 00:36:09 ubuntu kernel: [ 8064.008485] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jan 6 00:36:09 ubuntu kernel: [ 8064.008525] sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
Jan 6 00:36:09 ubuntu kernel: [ 8064.008546] sd 0:0:0:0: [sda] Write Protect is off
Jan 6 00:36:09 ubuntu kernel: [ 8064.008549] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Jan 6 00:36:09 ubuntu kernel: [ 8064.008589] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jan 6 00:36:09 ubuntu kernel: [ 8064.020991] PM: writing image.
Jan 6 00:36:09 ubuntu kernel: [ 8064.020999] PM: Free swap pages: 219087
Jan 6 00:36:09 ubuntu kernel: [ 8064.147904] PM: Saving image data pages (124603 pages) ... ^H^H^H^H 0%^H^H^H^H 1%^H^H^H^H 2%^H^H^H^H 3%^H^H^H^H 4%^H^H^H^H 5%^H^H^H^H 6%^H^H^H^H 7%^H^H^H^H 8%^H^H^H^H 9%^H^H^H^H 10%^H^H^H^H 11%^H^H^H^H 12%^H^H^H^H 13%^H^H^H^H 14%^H^H^H^H 15%^H^H^H^H 16%^H^H^H^H 17%^H^H^H^H 18%^H^H^H^H 19%^H^H^H^H 20%^H^H^H^H 21%^H^H^H^H 22%^H^H^H^H 23%^H^H^H^H 24%^H^H^H^H 25%^H^H^H^H 26%^H^H^H^H 27%^H^H^H^H 28%^H^H^H^H 29%^H^H^H^H 30%^H^H^H^H 31%^H^H^H^H 32%^H^H^H^H 33%^H^H^H^H 34%^H^H^H^H 35%^H^H^H^H 36%^H^H^H^H 37%^H^H^H^H 38%^H^H^H^H 39%^H^H^H^H 40%^H^H^H^H 41%^H^H^H^H 42%^H^H^H^H 43%^H^H^H^H 44%^H^H^H^H 45%^H^H^H^H 46%^H^H^H^H 47%^H^H^H^H 48%^H^H^H^H 49%^H^H^H^H 50%^H^H^H^H 51%^H^H^H^H 52%^H^H^H^H 53%^H^H^H^H 54%^H^H^H^H 55%^H^H^H^H 56%^H^H^H^H 57%^H^H^H^H 58%^H^H^H^H 59%^H^H^H^H 60%^H^H^H^H 61%^H^H^H^H 62%^H^H^H^H 63%^H^H^H^H 64%^H^H^H^H 65%^H^H^H^H 66%^H^H^H^H 67%^H^H^H^H 68%^H^H^H^H 69%^H^H^H^H 70%^H^H^H^H 71%^H^H^H^H 72%^H^H^H^H 73%^H^H^H^H 74%^H^H^H^H 75%^H^H^H^H 76%^H^H^H^H
Jan 6 00:36:09 ubuntu kernel: [ 8076.638546] PM: Wrote 498412 kbytes in 12.49 seconds (39.90 MB/s)
Jan 6 00:36:09 ubuntu kernel: [ 8076.639335] PM: S<3>PM: Swap header not found!

description: updated
description: updated
Revision history for this message
Ilya (iva2k) wrote :

I also have exactly the same bug in Intrepid amd64 when using swapfile instead of swap partition.

Unfortunately, swap file is the only option to use on a tripple-boot MacBook/Pro (Ubuntu, Mac OSX, WinXP). Long story short, individual limitations of GRUB, Mac OSX, WinXP and EFI conspire against using any extended partitions, limiting to 4 MBR partitions, one of which is taken by GUID/GPT/EFI partition. That leaves no swap partition. I hope use case on MacBook/MacBookPro will raise priority of the bug.

Just my 2 cents: It looks like the disk is removed before the memory image has been written. It smells like a race condition. Perhaps, somewhere in the kernel/PM code there is a check for not removing or postponing removal of a swap partition, but for partition with swap file there is no such check.

Ubuntu is not alone here - cross to Red Hat Bug #466408 (https://bugzilla.redhat.com/show_bug.cgi?id=466408). Should it be sent upstream?

Revision history for this message
Ilya (iva2k) wrote :
Revision history for this message
Johnathon (kirrus) wrote :

dotnetCarpenter: Can you confirm you're swapping into a file, not a partition?

(From memory, I think you will be if you installed using WUBI, but I can't remember for certain)

If in doubt, type "df -h" in the terminal, and paste the results here :)

Revision history for this message
dotnetCarpenter (activ876) wrote :

I'm pretty sure its to a partition..
Filesystem Size Used Avail Use% Mounted on
/host/ubuntu/disks/root.disk
                       13G 5,6G 6,6G 46% /
tmpfs 999M 0 999M 0% /lib/init/rw
varrun 999M 116K 999M 1% /var/run
varlock 999M 0 999M 0% /var/lock
udev 999M 2,8M 996M 1% /dev
tmpfs 999M 104K 999M 1% /dev/shm
/dev/sda3 95G 73G 22G 78% /host
lrm 999M 2,4M 997M 1% /lib/modules/2.6.27-11-generic/volatile
/dev/sda5 16G 3,0G 13G 20% /media/Musik

cheers!

Revision history for this message
dotnetCarpenter (activ876) wrote :

How many bytes do Ubuntu need to swap for hibernation? Or how can it be measured? I mean, if its a matter of freeing up space, I can always repartition my hard drive. Sorry for not getting the basics here - I'm really just guessing.

Revision history for this message
dotnetCarpenter (activ876) wrote :

bump

Johnathon (kirrus)
Changed in gnome-power-manager:
status: Incomplete → Confirmed
Revision history for this message
CybArc (cybarc) wrote :

This problem happens for me, too.

9.10 upgrade
x64 Arch.
Swap File size 8.8gb
Ram size 7.7 gb

created the swapfile using dd with blocks 1024 in size (I'm not sure about the number?)

Any other info I can provide, let me know. I would really appreciate being able to hibernate.

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

It seems to me 2 different problems are being discussed here.
Anyways for hibernate not working with a swap file there's a duplicate here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/252143

Revision history for this message
Kurt Stephens (kurt-launchpad) wrote :

This occurs (cannot hibernate or suspend) for me also:

Dell M4400
9.10
Linux trans3 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux
ii linux-image-2.6.31-17-generic 2.6.31-17.54
8 GB ram
SwapTotal: 6385796 kB
SwapFree: 6385796 kB

This used to work fine on a previous kernel version, I'm going to reinstall an older kernel.

I also have a problem where the default grub boot mode with the -pae option always fails to boot, it just hangs.
I can boot fine if I select the non-pae kernel. I don't know why I have a -pae boot option at all, i'm running 64-bit.
I don't know how to disable -pae in grub (i don't have a pae kernel installed !)

Revision history for this message
Kurt Stephens (kurt-launchpad) wrote :

Neither 2.6.31-17-generic, 2.6.31-16-generic, or 2.6.31-19-generic will suspend or hibernate on a Dell m4400 when a user is logged in via gdm. I'm running swap off a separate partition.

No errors appear in the /var/log/pm-suspend.log. I have a suspicion this is not a kernel problem. But I'm going to try installing some other older kernels. This used to work fine.

BTW: I reinstalled grub boot loader: that appeared to have fixed the weird -pae problems.

Revision history for this message
Kurt Stephens (kurt-launchpad) wrote :

Note: I can suspend from the lower-right gdm menu before a user is logged in, but not when a user is logged in via gdm.

When it fails to suspend, I see disk activity for a few seconds and I get a flashing cursor in the top-left and the machine fails to power off.

I have the M4400 A14 BIOS version.

Revision history for this message
dotnetCarpenter (activ876) wrote :

I have the M4400 A15 BIOS version, still same issue. If it makes a difference.

Revision history for this message
go4run (goran-stepic) wrote :

I can confirm that in mine configuration (Dell Precision M4440, 8 GB RAM, just fresh installed Ubuntu 64-Bit 10.10, 2.6.35-22-generic) the hibernation works, from within the gdm. Before 10.10, that was not the case.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.