[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sleeping the system vs hibernate or suspend



On Mon, Jan 03, 2011 at 08:44:22AM -0600, Javier Vasquez wrote:
> On Sun, Jan 2, 2011 at 1:18 PM,  <briand@aracnet.com> wrote:
> > ...
> > Someone posted (to this list) a simple command line for sleeping the
> > system.
> >
> > ...
> 
> acpitool -S  =>  suspend to disk (hibernate)  =>  Puts machine into S4.
> acpitool -s  =>  suspend to ram (sleep)         =>  Puts machine into S3.
> 
> man acpitool
> 
> Putting the machine into S3 is problematic for several HW.  In several
> cases HW goes to S3 OK, but it has trouble coming back.  That wouldn't
> be much of a problem unless the HW is your video card, :-)
> 
> There are multiple ways to do the same thing, there are the pm-* tools
> as well, and several other ones.  I just prefer using acpitool, which
> I have for years...

Suspend to memory (S3) works on my system under both 2.6.32-5-686 and
2.6.36-2.dmz.5-liquorix-686 kernels.  Hibernate to drive (S4) doesn't even
try under 2.6.36-2.dmz.5-liquorix-686, as expected.

However, Hibernate executes under 2.6.32-5-686, only to abort and return to
a running system.  There is no hibernate option on my GDM & Gnome menus or
in Gnome Power Manager.

There kernel log is not error free but I can't ferret out a guess at why it
aborts:

kern.log:

| Jan  4 12:43:22 Europa kernel: [  240.183474] b44: eth0: powering down PHY
| Jan  4 12:43:22 Europa kernel: [  240.190482] ADDRCONF(NETDEV_UP): eth0: link is not ready
| Jan  4 12:43:22 Europa kernel: [  240.308983] b44: eth0: powering down PHY
| Jan  4 12:43:22 Europa kernel: [  240.315976] ADDRCONF(NETDEV_UP): eth0: link is not ready
| Jan  4 12:43:22 Europa kernel: [  240.543321] PM: Marking nosave pages: 000000000009f000 - 0000000000100000
| Jan  4 12:43:22 Europa kernel: [  240.543326] PM: Basic memory bitmaps created
| Jan  4 12:43:25 Europa kernel: [  240.543329] PM: Syncing filesystems ... done.
| Jan  4 12:43:25 Europa kernel: [  240.620215] Freezing user space processes ... (elapsed 0.00 seconds) done.
| Jan  4 12:43:25 Europa kernel: [  240.621751] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
| Jan  4 12:43:25 Europa kernel: [  240.621840] PM: Preallocating image memory... done (allocated 119638 pages)
| Jan  4 12:43:25 Europa kernel: [  240.690453] PM: Allocated 478552 kbytes in 0.06 seconds (7975.86 MB/s)
| Jan  4 12:43:25 Europa kernel: [  240.690457] Suspending console(s) (use no_console_suspend to debug)
| Jan  4 12:43:25 Europa kernel: [  240.690990] b44: eth0: powering down PHY
| Jan  4 12:43:25 Europa kernel: [  240.704110] sd 0:0:0:0: [sda] Synchronizing SCSI cache
| Jan  4 12:43:25 Europa kernel: [  240.738231] parport_pc 00:0c: disabled
| Jan  4 12:43:25 Europa kernel: [  240.739382] serial 00:0b: disabled
| Jan  4 12:43:25 Europa kernel: [  240.739405] eth1: Going into suspend...
| Jan  4 12:43:25 Europa kernel: [  240.742308] ipw2200 0000:02:03.0: PCI INT A disabled
| Jan  4 12:43:25 Europa kernel: [  240.742315] ACPI handle has no context!
| Jan  4 12:43:25 Europa kernel: [  240.756078] b44 0000:02:00.0: PCI INT A disabled
| Jan  4 12:43:25 Europa kernel: [  240.756083] ACPI handle has no context!
| Jan  4 12:43:25 Europa kernel: [  240.773266] Intel ICH 0000:00:1f.5: PCI INT B disabled
| Jan  4 12:43:25 Europa kernel: [  240.773414] ata_piix 0000:00:1f.1: PCI INT A disabled
| Jan  4 12:43:25 Europa kernel: [  240.777030] ACPI: Preparing to enter system sleep state S4
| Jan  4 12:43:25 Europa kernel: [  240.777379] PM: Saving platform NVS memory
| Jan  4 12:43:25 Europa kernel: [  240.777457] Disabling non-boot CPUs ...
| Jan  4 12:43:25 Europa kernel: [  240.777566] PM: Creating hibernation image: 
| Jan  4 12:43:25 Europa kernel: [  240.780051] PM: Need to copy 120152 pages
| Jan  4 12:43:25 Europa kernel: [  240.780051] PM: Normal pages needed: 120052 + 1024, available pages: 141694
| Jan  4 12:43:25 Europa kernel: [  240.780051] PM: Hibernation image created (120152 pages copied)
| Jan  4 12:43:25 Europa kernel: [  240.780051] ACPI: Waking up from system sleep state S4
| Jan  4 12:43:25 Europa kernel: [  240.783892] yenta_cardbus 0000:02:01.0: O2: res at 0x94/0xD4: 00/ea
| Jan  4 12:43:25 Europa kernel: [  240.783895] yenta_cardbus 0000:02:01.0: O2: enabling read prefetch/write burst
| Jan  4 12:43:25 Europa kernel: [  241.062332] pm_op(): pci_pm_thaw+0x0/0x50 returns -16
| Jan  4 12:43:25 Europa kernel: [  241.062335] PM: Device 0000:00:00.0 failed to thaw: error -16
| Jan  4 12:43:25 Europa kernel: [  241.062349] pci 0000:00:1e.0: setting latency timer to 64
| Jan  4 12:43:25 Europa kernel: [  241.062374] ata_piix 0000:00:1f.1: restoring config space at offset 0x1 (was 0x2800003, writing 0x2800007)
| Jan  4 12:43:25 Europa kernel: [  241.062389] ata_piix 0000:00:1f.1: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
| Jan  4 12:43:25 Europa kernel: [  241.062394] ata_piix 0000:00:1f.1: setting latency timer to 64
| Jan  4 12:43:25 Europa kernel: [  241.062647] Intel ICH 0000:00:1f.5: PCI INT B -> Link[LNKB] -> GSI 5 (level, low) -> IRQ 5
| Jan  4 12:43:25 Europa kernel: [  241.062653] Intel ICH 0000:00:1f.5: setting latency timer to 64
| Jan  4 12:43:25 Europa kernel: [  241.232409] ata2.00: configured for UDMA/33
| Jan  4 12:43:25 Europa kernel: [  241.297292] ata1.00: configured for UDMA/100
| Jan  4 12:43:25 Europa kernel: [  242.073875] [drm] AGP mode requested: 4
| Jan  4 12:43:25 Europa kernel: [  242.073878] agpgart-intel 0000:00:00.0: AGP 2.0 bridge
| Jan  4 12:43:25 Europa kernel: [  242.073891] agpgart-intel 0000:00:00.0: putting AGP V2 device into 4x mode
| Jan  4 12:43:25 Europa kernel: [  242.073920] radeon 0000:01:00.0: putting AGP V2 device into 4x mode
| Jan  4 12:43:25 Europa kernel: [  242.074148] [drm] GPU reset succeed (RBBM_STATUS=0x00000140)
| Jan  4 12:43:25 Europa kernel: [  242.095853] [drm] radeon: cp idle (0x02000000)
| Jan  4 12:43:25 Europa kernel: [  242.095896] [drm] radeon: ring at 0x00000000E0000000
| Jan  4 12:43:25 Europa kernel: [  242.095915] [drm] ring test succeeded in 1 usecs
| Jan  4 12:43:25 Europa kernel: [  242.095954] [drm] ib test succeeded in 0 usecs
| Jan  4 12:43:25 Europa kernel: [  242.196046] b44 0000:02:00.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, low) -> IRQ 11
| Jan  4 12:43:25 Europa kernel: [  242.196069] b44 0000:02:00.0: restoring config space at offset 0x1 (was 0x100102, writing 0x100106)
| Jan  4 12:43:25 Europa kernel: [  242.496041] eth1: Coming out of suspend...
| Jan  4 12:43:25 Europa kernel: [  242.512044] ipw2200 0000:02:03.0: enabling device (0000 -> 0002)
| Jan  4 12:43:25 Europa kernel: [  242.512051] ipw2200 0000:02:03.0: PCI INT A -> Link[LNKB] -> GSI 5 (level, low) -> IRQ 5
| Jan  4 12:43:25 Europa kernel: [  242.512060] ipw2200 0000:02:03.0: restoring config space at offset 0xf (was 0x18030100, writing 0x1803010b)
| Jan  4 12:43:25 Europa kernel: [  242.512077] ipw2200 0000:02:03.0: restoring config space at offset 0x3 (was 0x0, writing 0x2008)
| Jan  4 12:43:25 Europa kernel: [  242.512084] ipw2200 0000:02:03.0: restoring config space at offset 0x1 (was 0x2900002, writing 0x2900116)
| Jan  4 12:43:25 Europa kernel: [  242.549425] serial 00:0b: activated
| Jan  4 12:43:25 Europa kernel: [  242.600951] parport_pc 00:0c: activated
| Jan  4 12:43:25 Europa kernel: [  242.601020] sd 0:0:0:0: [sda] Starting disk
| Jan  4 12:43:25 Europa kernel: [  242.717701] PM: writing image.
| Jan  4 12:43:25 Europa kernel: [  242.717704] PM: Cannot find swap device, try swapon -a.
| Jan  4 12:43:26 Europa kernel: [  242.757116] Restarting tasks ... done.
| Jan  4 12:43:26 Europa kernel: [  242.807477] PM: Basic memory bitmaps freed
| Jan  4 12:43:28 Europa kernel: [  245.535519] b44: eth0: powering down PHY
| Jan  4 12:43:28 Europa kernel: [  245.542597] ADDRCONF(NETDEV_UP): eth0: link is not ready
| Jan  4 12:43:38 Europa kernel: [  255.676228] eth1: no IPv6 routers present

-- 
Regards,
Freeman

"Microsoft is not the answer. Microsoft is the question. NO (or Linux) is the
answer." --Somebody


Reply to: