You are not logged in.

#1 2011-04-07 15:40:31

neutrix
Member
From: Bristol, UK
Registered: 2009-08-29
Posts: 64
Website

Swap partition problem with hibernate [SOLVED]

Hi all.

I'm having some problems getting hibernate to work correctly on my Acer 1420p laptop. I have already searched this forum and the followed the wiki steps precisely and still have the problem.

Based on my dmesg output, it seems to fail when writing the swap partition. I have the following messages in my log:

PM: writing image.
PM: Cannot find swap device, try swapon -a.
PM: Cannot get swap writer

Running "swapon -a" has no effect, and running "swapon -s" shows my current swap partition mounted and working correctly.

I  have set up pm-utils correctly, I have added the resume hook, added the correct resume information to my grub menu.lst, but the problem seems to occur before even shutting down. When I run "sudo pm-hibernate" it starts looking like it is going to shutdown, then drops me back at my desktop without powering off, which would make sense given that it can't write to swap partition.

I'm running the latest kernel 2.6.37-ARCH from the core repo. Everything is fully up to date as I run pacman updates every day. I also have no problem running pm-suspend. It is just pm-hibernate that causes the problems.

I'm now at a bit of a loss as to what to do next. Any suggestions would be much appreciated.

Thanks in advance.

EDIT: Here is a full dmesg dump of the hibernate process:

ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: authenticate with 00:3a:98:73:57:72 (try 1)
wlan0: authenticated
wlan0: associate with 00:3a:98:73:57:72 (try 1)
wlan0: RX AssocResp from 00:3a:98:73:57:72 (capab=0x431 status=0 aid=7)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: no IPv6 routers present
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.18.0-ioctl (2010-06-29) initialised: dm-devel@redhat.com
EXT4-fs (sda6): re-mounted. Opts: commit=0
wlan0: deauthenticating from 00:3a:98:73:57:72 by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
PM: Marking nosave pages: 000000000009e000 - 0000000000100000
PM: Marking nosave pages: 000000007ba5f000 - 000000007babf000
PM: Marking nosave pages: 000000007bb80000 - 000000007bbbf000
PM: Marking nosave pages: 000000007bbe2000 - 000000007bbf7000
PM: Basic memory bitmaps created
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
PM: Preallocating image memory... done (allocated 304318 pages)
PM: Allocated 1217272 kbytes in 0.48 seconds (2535.98 MB/s)
Suspending console(s) (use no_console_suspend to debug)
HDA Intel 0000:00:1b.0: PCI INT A disabled
ACPI handle has no context!
sd 0:0:0:0: [sda] Synchronizing SCSI cache
PM: freeze of devices complete after 432.752 msecs
PM: late freeze of devices complete after 1.333 msecs
ACPI: Preparing to enter system sleep state S4
PM: Saving platform NVS memory
Disabling non-boot CPUs ...
CPU 1 is now offline
SMP alternatives: switching to UP code
PM: Creating hibernation image:
PM: Need to copy 196437 pages
PM: Normal pages needed: 196437 + 1024, available pages: 310114
PM: Hibernation image created (196437 pages copied)
Enabling non-boot CPUs ...
SMP alternatives: switching to SMP code
Booting Node 0 Processor 1 APIC 0x1
NMI watchdog enabled, takes one hw-pmu counter.
CPU1 is up
ACPI: Waking up from system sleep state S4
PM: early thaw of devices complete after 0.436 msecs
pci 0000:00:1c.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
pci 0000:00:1c.0: setting latency timer to 64
pci 0000:00:1c.3: PCI INT D -> GSI 19 (level, low) -> IRQ 19
pci 0000:00:1c.3: setting latency timer to 64
pci 0000:00:1e.0: setting latency timer to 64
ahci 0000:00:1f.2: restoring config space at offset 0x1 (was 0x2b00403, writing 0x2b00407)
ahci 0000:00:1f.2: setting latency timer to 64
sd 0:0:0:0: [sda] Starting disk
HDA Intel 0000:00:1b.0: BAR 0: set to [mem 0x94500000-0x94503fff 64bit] (PCI address [0x94500000-0x94503fff])
HDA Intel 0000:00:1b.0: restoring config space at offset 0xf (was 0x100, writing 0x10b)
HDA Intel 0000:00:1b.0: restoring config space at offset 0x3 (was 0x0, writing 0x10)
HDA Intel 0000:00:1b.0: restoring config space at offset 0x1 (was 0x100000, writing 0x100002)
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
HDA Intel 0000:00:1b.0: setting latency timer to 64
HDA Intel 0000:00:1b.0: irq 42 for MSI/MSI-X
iwlagn 0000:02:00.0: BAR 0: set to [mem 0x92500000-0x92501fff 64bit] (PCI address [0x92500000-0x92501fff])
iwlagn 0000:02:00.0: enabling device (0000 -> 0002)
iwlagn 0000:02:00.0: restoring config space at offset 0xf (was 0x100, writing 0x10b)
iwlagn 0000:02:00.0: restoring config space at offset 0x1 (was 0x100002, writing 0x100406)
ata5: SATA link down (SStatus 0 SControl 300)
ata6: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: configured for UDMA/133
PM: thaw of devices complete after 1013.128 msecs
PM: writing image.
PM: Cannot find swap device, try swapon -a.
PM: Cannot get swap writer
Restarting tasks ... done.
PM: Basic memory bitmaps freed
video LNXVIDEO:00: Restoring backlight state
EXT4-fs (sda6): re-mounted. Opts: commit=0

Last edited by neutrix (2011-04-09 00:16:02)

Offline

#2 2011-04-07 19:01:28

neutrix
Member
From: Bristol, UK
Registered: 2009-08-29
Posts: 64
Website

Re: Swap partition problem with hibernate [SOLVED]

Turns out that my swap partition did not have enough space to store everything in memory. Having increased the swap partition size fixed the problem.

Offline

#3 2011-04-07 20:36:03

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Swap partition problem with hibernate [SOLVED]

Congrats.  Go ahead and mark this thread as [Solved].


I laugh, yet the joke is on me

Offline

Board footer

Powered by FluxBB