Regression: hibernate freezes the system

Bug #221213 reported by Radu Cristian Fotescu
16
Affects Status Importance Assigned to Milestone
linux (Baltix)
New
Undecided
Unassigned
linux (Ubuntu)
Fix Committed
High
Unassigned
Hardy
Triaged
High
Unassigned
Intrepid
Fix Committed
High
Unassigned

Bug Description

Gutsy was 100% OK with hibernation on this laptop.

In March, Hardy was actually still hibernating on my laptop, but it was freezing with "drm_sysfs_suspend" on the screen, so I had to manually press the On/Off button for 5 seconds once the disk activity stops.

This was as per Ubuntu Bugs #197064 and #201086.

Since I installed Hardy RC, hibernation failed completely (system freezing and nothing saved on disk) with several messages of this kind on the screen:
"BUG: soft lockup - CPU#0 stuck for 11 s! [ipolldevd:5623]"

A few days ago, after a kernel update, it started to fail with a different message as the last screen line:
"Suspending console(s)"

Right now, with an updated system, nothing changed, which means 8.04 is a severe regression over 7.10 with regards to hibernation!

Revision history for this message
Radu Cristian Fotescu (beranger) wrote : dmesg.log
Revision history for this message
Radu Cristian Fotescu (beranger) wrote : lspci-vvmm.log
Revision history for this message
Radu Cristian Fotescu (beranger) wrote : uname-a.log

This is valid for all the kernels! I have tried here the RT one just in case.

Revision history for this message
Radu Cristian Fotescu (beranger) wrote : version.log
Revision history for this message
Radu Cristian Fotescu (beranger) wrote : Screenshot
Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → High
status: New → Triaged
Revision history for this message
Pastito (pastito) wrote :

I'm having the same problem but also with the suspending.
I have a Compaq nx6120 with the kernel 2.6.24 -17 generic in hardy

I'll attach my xorg.conf in case it helps.

If you need extra info please ask for it.

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

Hi Radu,

Just to see if it makes a difference, care to test the Intrepid Ibex 8.10 kernel? It was most recently rebased with the upstream 2.6.25 kernel and is currently available in the following PPA:

https://edge.launchpad.net/~kernel-ppa/+archive

If you are not familiar with how to install packages from a PPA basically do the following:

Create the file /etc/apt/sources.list.d/kernel-ppa.list to include the following two lines:

deb http://ppa.launchpad.net/kernel-ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/kernel-ppa/ubuntu hardy main

Then run the command:

sudo apt-get update

You should then be able to install the linux-image-2.6.25 kernel package. After you've finished testing you can remove the kernel-ppa.list file and run 'sudo apt-get update' once more to restore your system. Please let us know your results. Thanks.

Revision history for this message
Radu Cristian Fotescu (beranger) wrote : Re: [Bug 221213] Re: Regression: hibernate freezes the system
  • unnamed Edit (1.5 KiB, text/html; charset=iso-8859-1)

Thanks.

I should be able to tell you the results within 16 hours from now.

Regards,
Radu-Cristian

Leann Ogasawara <email address hidden> wrote: Hi Radu,

Just to see if it makes a difference, care to test the Intrepid Ibex
8.10 kernel? It was most recently rebased with the upstream 2.6.25
kernel and is currently available in the following PPA:

https://edge.launchpad.net/~kernel-ppa/+archive

If you are not familiar with how to install packages from a PPA
basically do the following:

Create the file /etc/apt/sources.list.d/kernel-ppa.list to include the
following two lines:

deb http://ppa.launchpad.net/kernel-ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/kernel-ppa/ubuntu hardy main

Then run the command:

sudo apt-get update

You should then be able to install the linux-image-2.6.25 kernel
package. After you've finished testing you can remove the kernel-
ppa.list file and run 'sudo apt-get update' once more to restore your
system. Please let us know your results. Thanks.

--
Regression: hibernate freezes the system
https://bugs.launchpad.net/bugs/221213
You received this bug notification because you are a direct subscriber
of the bug.

---------------------------------
Looking for the perfect gift? Give the gift of Flickr!

Revision history for this message
Radu Cristian Fotescu (beranger) wrote :

YES!

Installing from kernel-ppa:
linux-image-2.6.25-1-generic
linux-ubuntu-modules-2.6.25-1-generic
FIXED it!

It now hibernates correctly and resumes reliably!

The only problem I have is that the bootsplash breaks the screen (it usually turns black), so I had to remove "splash" from the kernel line.

[Another thing: Ubuntu completely non-informative while suspending to disk; it only prints "drm_sysfs_suspend" during the whole operation.]

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

Hi Radu,

Thanks for testing and the feedback. I'm glad to hear this is at least resolved for now with the upcoming Intrepid kernel. So the tricky part now would be to narrow down the exact patch(es) which have resolved this issue. That unfortunately is a difficult task if you are unfamiliar with how to perform a git bisect. This is obviously something we don't expect you as a bug reporter to know how to do. The decision is really up to you at this point. Are you fine with running the Intrepid kernel which resolves your issue, or would you like to try to locate the patch and try to get it into the 8.04.1 Hardy point release. If you would like to try to shoot for the 8.04.1 point release, please refer to the information below which regards how to build your own kernel and perform a git bisection:

https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
  * Instead use git://kernel.ubuntu.com/ubuntu/ubuntu-intrepid.git when you clone the tree
  * Also, the above wiki will walk you through the old way of building the Ubuntu kernel, for the more up to date way, refer to: https://help.ubuntu.com/community/Kernel/Compile

http://www.kernel.org/doc/local/git-quick.html#bisect

The only other thing with performing the git bisect is that you'll have to reverse the meanings of "good" and "bad" when performing the git bisect since it assumes you are searching for the patch which caused the regression rather than the patch which fixed the issue.

Again, this is completely at your own comfort level. Let us know with how you'll want to proceed.

Also, with the new bugs you are seeing with the Intrepid kernel, care to open separate bug reports for each of those. It is helpful to the kernel team if bug reports are about one specific issue and a specific set of hardware.

Hope that helped. Thanks.

Changed in linux:
status: Triaged → Fix Released
assignee: nobody → ubuntu-kernel-team
importance: Undecided → High
status: New → Triaged
Revision history for this message
Rupde (rupde2) wrote :

I have an HP Compaq nx7400 laptop that will no longer suspend to RAM. It worked with 7.10 and through the upgrade to 8.04 days after it's release. Within the last week it broke. I don't think there have been any kernel updates withing the last week, so I think in my case at least it's a supporting bit of code that broke it.

I did try the upstream 2.6.25 kernel mentioned above and it did also fix my issue. Unfortunately other things stop working with the new kernel such as restricted drivers and VMware Workstation.

Revision history for this message
Rupde (rupde2) wrote :

Do you know that rule, KISS (Keep It Simple Stupid)? I don't always try the obvious. I just choose the last kernel (2.6.24-16-generic) in my grub menu and now my laptop suspends and resumes properly. Something related to 2.6.24-17-generic has broken my ability to suspend.

Changed in linux:
status: Fix Released → Fix Committed
Revision history for this message
Ohb01 (ohb01) wrote :

I'd like to try the above new 2.6.25 kernel work-around, but after you create the above /etc/apt/sources.list.d/kernel-ppa.list file, how exactly do you install linux-image-2.6.25-1-generic and linux-ubuntu-modules-2.6.25-1-generic from kernel-ppa? It would be great to get more detailed installation instructions.

Also, would the process add a new line to the GRUB menu to boot with the new 2.6.25 kernel, or would I need to edit that manually, and if so -- how?

Background: I have a very similar-sounding issue with my Dell Dimension 4700 (BIOS Rev. A10) desktop. Gutsy used to Suspend and Hibernate (though it sometimes "lost" the Atheros-based wireless card after Resume from Hibernate, it was fully OK after Resume from Suspend -- it "just worked"). We used Suspend a lot to save energy when the computer was not needed (we shut it down fully at night.) After upgrading to Hardy, the system freezes upon Resume from either Suspend or Hibernate, no matter which existing kernel version I select in GRUB.

Thanks in advance for your help.

Revision history for this message
Galileon Galilei (galileon) wrote :

Love you Rupde, I KISSed it and it works now! 2.6.24-16 works perfectly fine!

I could not install 2.6.25-1 though for some reason, it seems there is no .25 kernel in the ppa repository...

Revision history for this message
Ohb01 (ohb01) wrote :

Unfortunately, the above "KISS" method did not work for me. No previous kernel version that I tried from the GRUB menu was able to restore from Suspend properly. Today's kernel upgrade to 2.6.24-18-generic has also not solved the problem.

I'd still like to try the above new 2.6.25 kernel work-around, but It would be great to get more detailed installation instructions. In particular, I have two questions:

1. After you create the above /etc/apt/sources.list.d/kernel-ppa.list file, how exactly do you install linux-image-2.6.25-1-generic and linux-ubuntu-modules-2.6.25-1-generic from kernel-ppa?

2. Would the process add a new line to the GRUB menu to boot with the new 2.6.25 kernel, or would I need to edit that manually, and if so -- how?

Thanks in advance for your help.

Revision history for this message
Jason Oster (parasyte) wrote :

The 2.6.24-18-generic update has not helped me with this problem, either.

Revision history for this message
5tan (kamildor) wrote :

HP nx7400 EY508ES. 2.6.24-18-generic not resume from suspend (to RAM).
2.6.24-16-generic resume from suspend to RAM correct. Resume from hibernate works, but after while (1-2 min.) freezes the system (8.04 hardy heron).

Revision history for this message
Ohb01 (ohb01) wrote :

Correction to my previous post (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/221213/comments/15 ): kernel 2.6.20-16-generic, which is still in my GRUB list, does allow resume from Suspend and Hibernate. It works very slowly (not sure if there is a real advantage compared to full Shutdown/restart), and you get odd screen artifacts sometimes, but it does work.

I should also mention that the (proposed?) 2.6.24-19-generic kernel is actually worse for me than 2.6.20-16-generic, because Suspend/Resume does not work in 2.6.24-19-generic (Hibernate/Resume works, but still very slowly). See my post at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/226279/comments/113 for details.

Kernel 2.6.24-16-generic is not in my GRUB menu -- where would I get it?

Revision history for this message
Jonathan Cooper (bugs-launchpad-net-jonc) wrote :

I've found another possible workaround for this bug.

In dealing with https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/226342 I've stopped running pulseaudio completely. Since then, I haven't had any significant problems with hibernate/resume on 2.6.24-16-generic. It has managed to successfully hibernate & resume at least 5 times in a row. The only slight artifacts are that each time I resume, I get a little squeal from the speakers, and a popup message saying my computer failed to hibernate.

See also https://bugs.launchpad.net/ubuntu/+bug/144323 for some more history on my experience.

I'll see if I get the same behaviour with -18 next time I do a full shutdown.

Revision history for this message
Zdeněk Dlauhý (zdlauhy) wrote :

And so I, with 2.6.24-16-generic suspend to disk works okay, but with 17/18 i doesnt wake up.

Revision history for this message
Jason Oster (parasyte) wrote :

linux-image-2.6.24-19-generic, 2.6.24-19.33 appears to correct this problem for me.

Revision history for this message
dvo (mueller8) wrote :

linux-image-2.6.25-1-generic is no longer available at kernel-ppa. See https://bugs.launchpad.net/ubuntu/+source/linux/+bug/226279 for my solution.

Revision history for this message
Radu Cristian Fotescu (beranger) wrote :

This bug is officially a duplicate of bug #226279. What to do when the bug #226279 is officially fixed, but THIS BUG is still a bug for me! The kernel that's said to fix bug #226279 does NOT fix bug #221213, which is the situation reported by me!

So: as long as bug #221213 is concerned, and for my Acer, Hardy is broken, only Gutsy and Intrepid have working kernels.

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.