Hibernate fails on Centrino-laptop

Bug #197064 reported by dgf
This bug report is a duplicate of:  Bug #201086: X41 fails to hibernate in hardy. Edit Remove
10
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: linux-source-2.6.24

Hi,
I am using a Sony Vaio SZ2m-B Laptop, which has a Intel Core Duo, GMA950 and ipw3945 wifi. With linux-image-2.6.24-8-generic hibernate worked always und standby often.
But with linux-image-2.6.24-10-generic this luck is gone. Especially with hibernate the laptop is never able to shut down. There apppears only one message on the screen:
[ xxx.xx ] drm_sysfs_suspend

On the hdd led I can see that the laptop is saving the ram to disk and when it becomes dark, I can power off the laptop by pressing the powerbutton for 5 seconds. After it resumes successfully from this image.

syslog, dmesg, ... are only saying that the laptop is send into hibernate or that it is starting from hibernate. no error messages. :(

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

Hi dgf,

Per the kernel team's bug policy, can you please attach the following information. Please be sure to attach each file as a separate attachment.

* uname -a > uname-a.log
* cat /proc/version_signature > version.log
* dmesg > dmesg.log
* sudo lspci -vvnn > lspci-vvnn.log

For more information regarding the kernel team bug policy, please refer to https://wiki.ubuntu.com/KernelTeamBugPolicies . Thanks again and we appreciate your help and feedback.

Changed in linux:
status: New → Incomplete
Revision history for this message
dgf (dgf) wrote :
Revision history for this message
dgf (dgf) wrote :
Revision history for this message
dgf (dgf) wrote :
Revision history for this message
dgf (dgf) wrote :

This is the log after resuming.
I have the feeling it crashes directly before it wants to shut down. After saving the ram to disk all keyboard leds flash shortly up and then the laptop fans are louder and pressing keys, e.g. capslock, returns no results.

Revision history for this message
Dan Alderman (danalderman) wrote :

I am experiencing what seems to be the same issue on a Thinkpad X61s 76693JG. The machine does save the image to disk but it never shuts down, the only way to recover is to hold the power button for 4 seconds. Resume sometimes works, the wireless coming back is a bit hit and miss.

Suspend seems to work fine, although the wireless can take 30 seconds+ to come alive again.

Revision history for this message
Dan Alderman (danalderman) wrote :
Revision history for this message
Dan Alderman (danalderman) wrote :
Revision history for this message
Dan Alderman (danalderman) wrote :
Revision history for this message
Dan Alderman (danalderman) wrote :
Revision history for this message
Simon Kagstrom (simon-kagstrom) wrote :

I'm also seeing this on my X41 laptop. However, the attached patch makes hibernation shutdown my computer correctly (and also starts up afterwards). The patch is taken from this thread on LKML:

  http://article.gmane.org/gmane.linux.kernel.suspend.devel/4575

In particular this mail from Rafael J. Wysocki:

  http://thread.gmane.org/gmane.linux.kernel.suspend.devel/4575/focus=4620

It applies with some fuzz on 2.6.24-3 (the kernel source version when I built it). I saw in the kernel changelogs that 2.6.24-10.16 had this message:

linux (2.6.24-10.16) hardy; urgency=low
  [...]
  * Update drm and i915 drm driver to fix suspend issues.
    - LP: #189260

and I'm not sure what that particular part really means, it seems to be related to this error.

It would be nice if someone else could try this patch and it would be great if a fix for this problem could be included in the hardy release. Thanks!

// Simon

Revision history for this message
Simon Kagstrom (simon-kagstrom) wrote :

Sorry about the noise, but I think the final patch for this issue is this:

  http://lkml.org/lkml/2008/2/23/269

It's apparently not directly caused by i915, and I suppose what was testing before might have been this (from kernel/power/disk.c):

int hibernation_platform_enter(void)
{
        [...]
        local_irq_disable();
        error = device_power_down(PMSG_SUSPEND);
        if (!error) {
                hibernation_ops->enter();
                /* We should never get here */
                while (1);
        }
        local_irq_enable();

At least it looks like an infinite loop to me (being stuck and heating up with the fan running etc).

// Simon

Revision history for this message
Simon Kagstrom (simon-kagstrom) wrote :

linux-source is probably more appropriate

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

Hi Guys,

I'm just including the upstream git commit id and description that Simon pointed out for the kernel team to reference.

However, please note that while the symptom of this bug (failure to Hibernate) is the same, it is specific to the hardware used. So for future reference it would be helpful to the development teams if you would open a new bug report against your specific set of hardware. We can easily mark bugs as duplicates later on. Thanks.

commit 3a2d5b700132f35401f1d9e22fe3c2cab02c2549
Author: Rafael J. Wysocki <email address hidden>
Date: Sat Feb 23 19:13:25 2008 +0100

    PM: Introduce PM_EVENT_HIBERNATE callback state

    During the last step of hibernation in the "platform" mode (with the
    help of ACPI) we use the suspend code, including the devices'
    ->suspend() methods, to prepare the system for entering the ACPI S4
    system sleep state.

    But at least for some devices the operations performed by the
    ->suspend() callback in that case must be different from its operations
    during regular suspend.

    For this reason, introduce the new PM event type PM_EVENT_HIBERNATE and
    pass it to the device drivers' ->suspend() methods during the last phase
    of hibernation, so that they can distinguish this case and handle it as
    appropriate. Modify the drivers that handle PM_EVENT_SUSPEND in a
    special way and need to handle PM_EVENT_HIBERNATE in the same way.

    These changes are necessary to fix a hibernation regression related
    to the i915 driver (ref. http://lkml.org/lkml/2008/2/22/488).

    Signed-off-by: Rafael J. Wysocki <email address hidden>
    Acked-by: Pavel Machek <email address hidden>
    Tested-by: Jeff Chua <email address hidden>
    Signed-off-by: Linus Torvalds <email address hidden>

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
Simon Kagstrom (simon-kagstrom) wrote : Re: [Bug 197064] Re: Hibernate fails on Centrino-laptop

On Tue, 11 Mar 2008 17:35:46 -0000
Leann Ogasawara <email address hidden> wrote:

> However, please note that while the symptom of this bug (failure to
> Hibernate) is the same, it is specific to the hardware used. So for
> future reference it would be helpful to the development teams if you
> would open a new bug report against your specific set of hardware. We
> can easily mark bugs as duplicates later on.

I've reported my problem as #201086, thanks for looking into this, I'm
looking forward to having it resolved!

// Simon

Revision history for this message
dgf (dgf) wrote :

I applied the patch from http://lkml.org/lkml/2008/2/23/269 to the current linux-source-2.6.24 and the laptop shuts down, when it has finished saving the image to the disk. However mouse and keyboard do not work. I don't know if it came through this patch or I misconfigured the kernel. Let's see what the next kernel update will bring.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

I built the current ubuntu-hardy git, and the patch (plus commit 038eb0ea04b245351be34b0ae76b55eee4603989 to fix a compile error) worked fine, also my keyboard/mouse.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Adding milestone.

Changed in linux:
milestone: none → ubuntu-8.04
Stefan Bader (smb)
Changed in linux:
assignee: ubuntu-kernel-team → stefan-bader-canonical
status: Triaged → In Progress
Stefan Bader (smb)
Changed in linux:
assignee: stefan-bader-canonical → kernel-team
status: In Progress → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

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.