X41 fails to hibernate in hardy

Bug #201086 reported by Simon Kagstrom
44
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Stefan Bader
Nominated for Hardy by Matthew Garrett

Bug Description

Hardy fails to hibernate on my IBM X41 laptop. The hibernation looks OK until the computer should be shut off, at which point the computer just hangs in an infinite loop. A hard shutdown (holding the power button for 5 secs) is needed to turn it off.

When turned on again, Hardy loads the stored image correctly and resumes the desktop (albeit with a warning bubble that it failed to hibernate).

I scanned the LKML for this error and found the commit below. When applying this (actually an earlier test patch of it) to linux-source-2.6.24-3, my computer hibernates just fine. I've reported this in bug #197064, which seems to be the same error but for different hardware: https://bugs.launchpad.net/bugs/197064

It would be quite nice if this patch could be included in Hardy!

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>

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

Hi Simon,

Thanks for opening the new report :) I'm reassigning to the kernel team for their consideration. Thanks.

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: New → Triaged
Stefan Bader (smb)
Changed in linux:
assignee: ubuntu-kernel-team → stefan-bader-canonical
status: Triaged → In Progress
Stefan Bader (smb)
Changed in linux:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.24-13.23

---------------
linux (2.6.24-13.23) hardy; urgency=low

  [Alessio Igor Bogani]

  * rt: Updated configuration files

  [Ben Collins]

  * openvz: New custom flavour for OpenVZ
  * config: Disable IDE AMD driver in favor of PATA version
    - LP: #181561
  * config: Disable IDE VIA driver in favor of PATA version
    - LP: #181561
  * drivers/video: Restore gutsy backlight dimming behavior
    - LP: #205261
  * build/config: Enable CONFIG_CIFS_WEAK_PW_HASH
    - LP: #202445

  [Colin Ian King]

  * SAUCE: Add support for version 4 of Chelsio NICs in cxgb3 driver
    - LP: #201893

  [Kees Cook]

  * AppArmor: re-add missing "type" field in syslog reports.
    - LP: #202888
  * kvm: reset TSS on x86_64 to avoid ioperm bitmap corruption
    - LP: #144900

  [Stefan Bader]

  * USB: EHCI: add separate IAA watchdog timer
    - LP: #198619
  * SAUCE: Always use SCO protocol (disable eSCO support)
    - LP: #39414
  * PM: Introduce PM_EVENT_HIBERNATE callback state
    - LP: #201086

  [Tim Gardner]

  * Disable DRM suspend/resume on pre-915 Intel chips
    - LP: #207496
  * frame buffer regression - screen blank except for blinking cursor after fbcon
    vtswitch
    - LP: #201591

 -- Tim Gardner <email address hidden> Wed, 19 Mar 2008 10:05:05 -0400

Changed in linux:
status: Fix Committed → Fix Released
Revision history for this message
Simon Kagstrom (simon-kagstrom) wrote : Re: [Bug 201086] Re: X41 fails to hibernate in hardy

On Sun, 30 Mar 2008 22:50:06 -0000
Launchpad Bug Tracker <email address hidden> wrote:

> This bug was fixed in the package linux - 2.6.24-13.23

Thanks. I can confirm that hibernation works after installing
linux-image-2.6.24-13-generic, great!

However, there seems to be some regressions as well - my ipw2200
wireless card no longer works, presumably
because /lib/firmware/2.6..-13 doesn't exit. I reported it as #209795.

Thanks,
// Simon

Revision history for this message
Michael B. Trausch (mtrausch) wrote :

I am running Hardy, latest updates installed, and having this issue. Should I file a separate bug?

My hardware is 32-bit system on AMD64 x2 hardware. Forced power-off is required to be able to reboot, and when I reboot, I have the following information in the kernel boot messages:

Apr 3 22:36:53 sage kernel: [ 34.486714] Attempting manual resume
Apr 3 22:36:53 sage kernel: [ 34.486762] swsusp: Resume From Partition 8:3
Apr 3 22:36:53 sage kernel: [ 34.486764] PM: Checking swsusp image.
Apr 3 22:36:53 sage kernel: [ 34.486946] PM: Resume from disk failed.

Need to know if this should be a separate issue or not so that I know what to do next. Thanks!

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

On Fri, 04 Apr 2008 03:09:25 -0000
"Michael B. Trausch" <email address hidden> wrote:

> Apr 3 22:36:53 sage kernel: [ 34.486714] Attempting manual resume
> Apr 3 22:36:53 sage kernel: [ 34.486762] swsusp: Resume From
> Partition 8:3 Apr 3 22:36:53 sage kernel: [ 34.486764] PM:
> Checking swsusp image. Apr 3 22:36:53 sage kernel: [ 34.486946]
> PM: Resume from disk failed.

This seems like a different issue. The problem I had was with actually
*hibernating* (the computer would not turn off). This has been fixed in
2.6.24-13. (Thanks again for that!)

I'd vote for #201086 to be closed.

// Simon

Revision history for this message
piontec (piontec-gmail) wrote :

This solved my problem with shut off on X60s too. Still, it does not help on my 2 desktop PCs. They hibernate and resume from disk, but they never shut off after hibernate is finished.

Here is info about my kernel:

# uname -a
Linux dcs-lp 2.6.24-14-generic #1 SMP Thu Apr 3 04:49:29 UTC 2008 i686 GNU/Linux
# cat /proc/version_signature
Ubuntu 2.6.24-14.25-generic

I'm also attaching output of dmesg on fresh started system and result of lspci -vvnn.

Revision history for this message
piontec (piontec-gmail) wrote :
Revision history for this message
Tito's (rcarrasco) wrote :

Same problem here.

Laptop compaq presario V3117LA, AMD Semprom 3400+
The problem still exists in 2.6.24-18-generic.

When laptop lid is closed my system begin hibernation. The screen go black and the blue lights on front are still on. Pushing the power button 5 secs is the only alternative.

At power on, the system resume ok but with a message about the fail in hibernate.

Revision history for this message
Tito's (rcarrasco) wrote :
Revision history for this message
Tito's (rcarrasco) wrote :
Revision history for this message
Tito's (rcarrasco) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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