You are not logged in.

#1 2010-05-13 03:28:03

CaspianXI
Member
Registered: 2007-05-29
Posts: 59

Suspend works but takes a long time

So I've got my new Compaq almost completely functional. The one thing I still need to get working properly is suspend/resume. Although it works, it seems to take a long time. It might be faster just to poweroff.

When I use s2ram, it goes down very quickly, but takes a little over a minute to resume. When it has resumed, the network no longer works (neither wireless or wired connections work). When I try to restart the network service, it take a long time before failing -- initially, I thought that resume was taking so long because it was trying to restart the network service and failling. However, stopping network before suspending doesn't help at all.

s2disk works perfectly, but takes about a minute to down down and takes about two minutes to come back up. When resuming from s2disk, my network works again -- even when when executing s2disk after coming back from s2ram (and the network not working due to the s2ram resume)

Looking at the kernel logs, the one problem I was able to spot was a firmware segfault, although I'm not entirely sure how to fix this (it occurs when resuming from s2ram and s2disk, so I'm not entirely sure if it's even causing my network problem.

My machine is not whitelisted. This is the output of s2ram -n:

Machine unknown
This machine can be identified by:
    sys_vendor   = "Hewlett-Packard"
    sys_product  = "Presario CQ61 Notebook PC"
    sys_version  = "048B110000200D10000620000"
    bios_version = "F.13"

Here are my logs from s2ram:

May 13 19:00:01 philLaptop kernel: PM: Syncing filesystems ... done.
May 13 19:00:01 philLaptop kernel: Freezing user space processes ... (elapsed 0.01 seconds) done.
May 13 19:00:01 philLaptop kernel: Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
May 13 19:00:01 philLaptop kernel: Suspending console(s) (use no_console_suspend to debug)
May 13 19:00:01 philLaptop kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
May 13 19:00:01 philLaptop kernel: sd 0:0:0:0: [sda] Stopping disk
May 13 19:00:01 philLaptop kernel: ath9k 0000:02:00.0: PCI INT A disabled
May 13 19:00:01 philLaptop kernel: radeon 0000:01:05.0: PCI INT A disabled
May 13 19:00:01 philLaptop kernel: radeon 0000:01:05.0: power state changed by ACPI to D3
May 13 19:00:01 philLaptop kernel: HDA Intel 0000:00:14.2: PCI INT A disabled
May 13 19:00:01 philLaptop kernel: ehci_hcd 0000:00:13.2: PCI INT B disabled
May 13 19:00:01 philLaptop kernel: ohci_hcd 0000:00:13.1: PCI INT A disabled
May 13 19:00:01 philLaptop kernel: ohci_hcd 0000:00:13.0: PCI INT A disabled
May 13 19:00:01 philLaptop kernel: ehci_hcd 0000:00:12.2: PCI INT B disabled
May 13 19:00:01 philLaptop kernel: ohci_hcd 0000:00:12.1: PCI INT A disabled
May 13 19:00:01 philLaptop kernel: ohci_hcd 0000:00:12.0: PCI INT A disabled
May 13 19:00:01 philLaptop kernel: ahci 0000:00:11.0: PCI INT A disabled
May 13 19:00:01 philLaptop kernel: PM: suspend of devices complete after 1413.113 msecs
May 13 19:00:01 philLaptop kernel: pcieport 0000:00:06.0: wake-up capability enabled by ACPI
May 13 19:00:01 philLaptop kernel: PM: late suspend of devices complete after 56.712 msecs
May 13 19:00:01 philLaptop kernel: ACPI: Preparing to enter system sleep state S3
May 13 19:00:01 philLaptop kernel: Disabling non-boot CPUs ...
May 13 19:00:01 philLaptop kernel: CPU 1 is now offline
May 13 19:00:01 philLaptop kernel: SMP alternatives: switching to UP code
May 13 19:00:01 philLaptop kernel: Enabling non-boot CPUs ...
May 13 19:00:01 philLaptop kernel: SMP alternatives: switching to SMP code
May 13 19:00:01 philLaptop kernel: Booting Node 0 Processor 1 APIC 0x1
May 13 19:00:01 philLaptop kernel: Initializing CPU#1
May 13 19:00:01 philLaptop kernel: Switch to broadcast mode on CPU1
May 13 19:00:01 philLaptop kernel: CPU1 is up
May 13 19:00:01 philLaptop kernel: ACPI: Waking up from system sleep state S3
May 13 19:00:01 philLaptop kernel: ehci_hcd 0000:00:12.2: BAR 0: set to [mem 0x90408500-0x904085ff] (PCI address [0x90408500-0x904085ff]
May 13 19:00:01 philLaptop kernel: ehci_hcd 0000:00:13.2: BAR 0: set to [mem 0x90408400-0x904084ff] (PCI address [0x90408400-0x904084ff]
May 13 19:00:01 philLaptop kernel: PM: early resume of devices complete after 24.929 msecs
May 13 19:00:01 philLaptop kernel: ahci 0000:00:11.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
May 13 19:00:01 philLaptop kernel: ohci_hcd 0000:00:12.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
May 13 19:00:01 philLaptop kernel: ohci_hcd 0000:00:12.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
May 13 19:00:01 philLaptop kernel: ehci_hcd 0000:00:12.2: PCI INT B -> GSI 17 (level, low) -> IRQ 17
May 13 19:00:01 philLaptop kernel: ohci_hcd 0000:00:13.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
May 13 19:00:01 philLaptop kernel: ohci_hcd 0000:00:13.1: PCI INT A -> GSI 18 (level, low) -> IRQ 18
May 13 19:00:01 philLaptop kernel: ehci_hcd 0000:00:13.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
May 13 19:00:01 philLaptop kernel: HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
May 13 19:00:01 philLaptop kernel: radeon 0000:01:05.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
May 13 19:00:01 philLaptop kernel: [drm] Clocks initialized !
May 13 19:00:01 philLaptop kernel: [drm] Loading RS780 Microcode
May 13 19:00:01 philLaptop kernel: platform radeon_cp.0: firmware: requesting radeon/RS780_pfp.bin
May 13 19:00:01 philLaptop kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
May 13 19:00:01 philLaptop kernel: ata2.00: configured for UDMA/100
May 13 19:00:01 philLaptop kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
May 13 19:00:01 philLaptop kernel: ata1.00: configured for UDMA/100
May 13 19:00:01 philLaptop kernel: ath9k 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
May 13 19:00:01 philLaptop kernel: pcieport 0000:00:06.0: wake-up capability disabled by ACPI
May 13 19:00:01 philLaptop kernel: sd 0:0:0:0: [sda] Starting disk
May 13 19:00:01 philLaptop kernel: PM: resume of devices complete after 66006.373 msecs
May 13 19:00:01 philLaptop kernel: Restarting tasks ...
May 13 19:00:01 philLaptop kernel: firmware[16277]: segfault at 46 ip b77dc3b7 sp bfc7f000 error 4 in libc-2.11.1.so[b7780000+145000]
May 13 19:00:01 philLaptop kernel: done.

And here are the kernel logs from s2disk:

May 13 19:03:21 philLaptop kernel: Syncing filesystems ... done.
May 13 19:03:21 philLaptop kernel: Freezing user space processes ... (elapsed 0.01 seconds) done.
May 13 19:03:21 philLaptop kernel: Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
May 13 19:03:21 philLaptop kernel: PM: Preallocating image memory... done (allocated 318798 pages)
May 13 19:03:21 philLaptop kernel: PM: Allocated 1275192 kbytes in 0.26 seconds (4904.58 MB/s)
May 13 19:03:21 philLaptop kernel: Suspending console(s) (use no_console_suspend to debug)
May 13 19:03:21 philLaptop kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
May 13 19:03:21 philLaptop kernel: ath9k 0000:02:00.0: PCI INT A disabled
May 13 19:03:21 philLaptop kernel: HDA Intel 0000:00:14.2: PCI INT A disabled
May 13 19:03:21 philLaptop kernel: ahci 0000:00:11.0: PCI INT A disabled
May 13 19:03:21 philLaptop kernel: PM: freeze of devices complete after 912.582 msecs
May 13 19:03:21 philLaptop kernel: PM: late freeze of devices complete after 0.426 msecs
May 13 19:03:21 philLaptop kernel: ACPI: Preparing to enter system sleep state S4
May 13 19:03:21 philLaptop kernel: PM: Saving platform NVS memory
May 13 19:03:21 philLaptop kernel: Disabling non-boot CPUs ...
May 13 19:03:21 philLaptop kernel: CPU 1 is now offline
May 13 19:03:21 philLaptop kernel: SMP alternatives: switching to UP code
May 13 19:03:21 philLaptop kernel: PM: Creating hibernation image:
May 13 19:03:21 philLaptop kernel: PM: Need to copy 109267 pages
May 13 19:03:21 philLaptop kernel: PM: Restoring platform NVS memory
May 13 19:03:21 philLaptop kernel: Enabling non-boot CPUs ...
May 13 19:03:21 philLaptop kernel: SMP alternatives: switching to SMP code
May 13 19:03:21 philLaptop kernel: Booting Node 0 Processor 1 APIC 0x1
May 13 19:03:21 philLaptop kernel: Initializing CPU#1
May 13 19:03:21 philLaptop kernel: Switch to broadcast mode on CPU1
May 13 19:03:21 philLaptop kernel: CPU1 is up
May 13 19:03:21 philLaptop kernel: ACPI: Waking up from system sleep state S4
May 13 19:03:21 philLaptop kernel: PM: early restore of devices complete after 0.679 msecs
May 13 19:03:21 philLaptop kernel: ahci 0000:00:11.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
May 13 19:03:21 philLaptop kernel: usb usb3: root hub lost power or was reset
May 13 19:03:21 philLaptop kernel: usb usb4: root hub lost power or was reset
May 13 19:03:21 philLaptop kernel: usb usb1: root hub lost power or was reset
May 13 19:03:21 philLaptop kernel: usb usb5: root hub lost power or was reset
May 13 19:03:21 philLaptop kernel: usb usb6: root hub lost power or was reset
May 13 19:03:21 philLaptop kernel: usb usb2: root hub lost power or was reset
May 13 19:03:21 philLaptop kernel: HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
May 13 19:03:21 philLaptop kernel: [drm] Clocks initialized !
May 13 19:03:21 philLaptop kernel: [drm] Loading RS780 Microcode
May 13 19:03:21 philLaptop kernel: platform radeon_cp.0: firmware: requesting radeon/RS780_pfp.bin
May 13 19:03:21 philLaptop kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
May 13 19:03:21 philLaptop kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
May 13 19:03:21 philLaptop kernel: ata1.00: configured for UDMA/100
May 13 19:03:21 philLaptop kernel: ata2.00: configured for UDMA/100
May 13 19:03:21 philLaptop kernel: ath9k 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
May 13 19:03:21 philLaptop kernel: sd 0:0:0:0: [sda] Starting disk
May 13 19:03:21 philLaptop kernel: PM: restore of devices complete after 63148.536 msecs
May 13 19:03:21 philLaptop kernel: Restarting tasks ... done.
May 13 19:03:21 philLaptop kernel: firmware[16666]: segfault at 46 ip b774c3b7 sp bf87f0a0 error 4 in libc-2.11.1.so[b76f0000+145000]
May 13 19:03:21 philLaptop dhcpcd: wlan0: carrier lost

Thanks!

Offline

#2 2010-05-13 06:06:57

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Suspend works but takes a long time

Try kernel suspend/resume instead of uswsusp. Or tuxonice, if you're OK with patching your kernel.

Offline

#3 2010-05-13 22:24:37

CaspianXI
Member
Registered: 2007-05-29
Posts: 59

Re: Suspend works but takes a long time

Thanks! Using kernel suspend, the network now comes back great upon resume. However, it still takes about a minute to resume -- according to the logs, it takes 1.14 seconds to suspend and 65.88 seconds to resume... which is kindof on the long side.

How can I tell what's causing the holdup? It would be nice if I could figure out where to start looking for the culprit...

Offline

Board footer

Powered by FluxBB