[Hardy] Laptop can't resume from suspend

Bug #235315 reported by Kyrylo Kalugin
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

When laptop goes standby (suspend to ram), no matter via menu or via lid closing, it does it ok -- the power led starts blonking indicating standby mode. But when key is pressed or lid opened, it do something like shutdown process -- harddisk stops (audible), and power led turns off. One or two second after, laptop turns on (power led showing power-on state), but nothing happens on screen, and no reaction on CapsLock -- system hangs.

* Hibernate process is working fine.

SW: Ubuntu/8.04-amd64, Compiz Fusion + Emerald, No extra drivers installed, no proprietary.
HW: Acer Extensa 4620, Core 2 Duo 1.5Ghz, 4GiB RAM, X3100 Intel Graphics, iwl3945 wireless.

Uname: Linux lyncis-laptop 2.6.24-17-generic #1 SMP Thu May 1 13:57:17 UTC
2008 x86_64 GNU/Linux

Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :
Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :
Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :
Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :
description: updated
description: updated
Revision history for this message
Nick Ellery (nick.ellery) wrote :

Hi, and thanks for your bug report. Please provide this information, and post it using seperate attachments.

- Output of uname -a
- Output of sudo lspci -vvnn
- Try to hibernate/suspend and then restart the system and attach /var/log/kern.log.0
- cp -r /proc/acpi /tmp
- tar -cvjf ~/acpi.tar.bz /tmp/acpi

Thanks!

Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :

~10:08: Suspend events
~10:25: Hibernate events

Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :

Uname: Linux lyncis-laptop 2.6.24-17-generic #1 SMP Thu May 1 13:57:17 UTC
2008 x86_64 GNU/Linux

acpi is attached before as /proc/acpi: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/235315/comments/2

Revision history for this message
Hamish Downer (mishd) wrote :

This may well be a duplicate of bug 226279

Please read through that, and if it is the same, then mark this bug as a duplicate of it.

Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :

I suppose it isn't the same bug.
1. System shuts down after resume --> in bug 226279 it hangs;
2. It does not depends on kernel 2.6.24-17. I've just tried next distros:
  -- Fedora 9 (k. 2.6.25-3);
  -- OpenSuSE 11b4 (k. 2.6.24);
  -- OpenSuSE 10.3 (k. 2.6.18);
  -- CentOS 5.1 (2.6.18-8);

So, I suppose next: it sends poweroff signal just after resume, as described here: <a href="http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-to-ram">http://www.thinkwiki.org/wiki/Problems_with_ACPI_suspend-to-ram</a>, because symptoms are identical. (Also I found <a href="http://ubuntuforums.org/showthread.php?t=30247">this UNSOLVED on ubuntuforums</a>).

<blockquote><b>Shutdown on resume:</b> If your system immediately begins to shut down right after resume, make sure you don't have acpid running with the power button tied to shutdown. The system is simply sensing the power button event and shutting down. This issue has been reported as a bug against the kernel ACPI subsystem, refer to <a href="http://bugzilla.kernel.org/show_bug.cgi?id=6612">kernel.org bugzilla bug #6612</a>. </blockquote>

I found /etc/acpi/powerbtn.sh, where is written:
<code>
# Skip if we just in the middle of resuming.
test -f /var/lock/acpisleep && exit 0
</code>

Maybe that not working properly? I'll try 12 hours later.

Also, as I mentioned before, this is Acer laptop, so it using acer_acpi module (<a href="http://repo.or.cz/w/acer_acpi.git">http://repo.or.cz/w/acer_acpi.git</a>). Maybe this causes a problem.

Revision history for this message
goto (gotolaunchpad) wrote :

Hi, I had the same problem (poweroff after resume) with the TravelMate 5320 on Arch Linux with 2.6.24/25. I have Intel GMA965 with Broadcom wireless...

This is what I did; disable module autoloading, remove any custom modules loading, boot to init 1. Then suspended to acpi 3, the system resumed. Clearly a module was the problem... being that my system usual has around 100 modules loaded it was a pain, but I finally found it. It was one single module that was causing this - psmouse.

Depending on your hardware you could have other problems like backlight stays off, aditional broken modules... there is a nice package "hibernate-script" which is a wrapper around diffrent suspend schemes like tuxonice and uswsusp. It allows you to unload modules, unmount filesystems, kill daemons... - prior to suspending, and reloading modules after resuming.

I don't usually track Ubuntu bugs so if you see that someone is having these troubles (poweroff after resume) with Acer laptops try to suggest to unload psmouse for a start.

Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :

Thank you a lot, bugmenot!!!

Blacklisting "psmouse" helped suspending, but touchpad stopped to work. So the "psmouse" was the "poweroff"er. And the only way -- is to unload psmouse before suspend and load it again on resume.

The way I managed the problem:

ACPI way (does not work for me):
  1. Add "psmouse" to /etc/default/acpi-support, in MODULES="";
This way not worked, because acpi scripts totally not used :(

PM way:
1. As I use gnome-power-manager, it utilizes "pm" functions;
2. As root I created file /etc/pm/config.d/unload_modules;
3. Set it 0755 permission (chmod +x /etc/pm/config.d/unload_modules);
4. Add string there SUSPEND_MODULES="psmouse";
5. Reboot, and SUSPEND NOW WORKING!!

Thank you!

Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :

We should redirect the bug to "psmouse"

Changed in linux:
status: Incomplete → In Progress
Revision history for this message
mfolkerts (mike-surprisetruck) wrote :

YESSSS!!

I have the acer Extenza 4620Z and had the same problem.
I can confirm that the steps 1-5 above work!!!

I was so excited. That I actually signed up for a launchpad account just now!! I have been looking for a fix to this problem for some time now.

Thank you so much!

I was curious how you figured out the solution? How did you know to add the 'unload_modules' file? Was it in the MAN page for gnome-power-manager?

Revision history for this message
mfolkerts (mike-surprisetruck) wrote :

Same problem, Kyrylo's pm solution worked for me.

Changed in linux:
status: In Progress → Confirmed
Revision history for this message
Claus Frein (cfrein) wrote :

Another (and maybe simpler) way is to create a file under /etc/pm/config.d/ and add the problematic module to it, e.g.

> sudo vi /etc/pm/config.d/acer

SUSPEND_MODULES="psmouse"

Works on Acer Extensa 5520.

Revision history for this message
Vazovsky (artem-bezsmertny) wrote :

Hello everybody!

I had a same problem with power off when resuming from suspend.
I have laptop ACER TravelMate 5720.

Solution from cfrein worked just perfect for me! Thanks a lot man!

Changed in linux:
status: Confirmed → Triaged
Changed in linux:
assignee: nobody → ubuntu-kernel-acpi
importance: Undecided → Medium
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Ralph Janke (txwikinger) wrote :

The Intrepid Ibex 8.10 Beta release was most recently announced - http://www.ubuntu.com/testing/intrepid/beta . It contains the 2.6.27 Ubuntu kernel. It would be great if you could test and verify if this is still an issue. The status is being set to Incomplete until we receive further feedback. Thanks.

Changed in linux:
status: Triaged → Incomplete
Revision history for this message
debianmigrant (debianmigrant) wrote :

My Travelmate 5320 was suffering from a black screen on resume, adding SUSPEND_MODULES="psmouse" fixed this issue for me in Hardy. Intrepid on the other hand works 100% after a fresh install, the only distro so far to do so! Keep up the great work!

Revision history for this message
Claus Frein (cfrein) wrote :

In Intrepid Beta (LiveCD) on an Acer Extensa 5520 it is not an issue any more, it works out of the box!

Revision history for this message
Matthew Caron (matt-mattcaron) wrote :

I am noticing a failure to resume from suspend on my Thinkpad T60 on Hardy using kernel 2.6.24-21. 2.6.24-19 works fine. I suspect that there was some regression in -21.

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

@debianmigrant and @Claus Frein, thanks for testing Intrepid. Glad to hear your suspend/resume issues appear to be resolved.

@Kyrylo Kalugin, since you are the original bug reporter, care to confirm if this is resolved for you with Intrepid? You should be able to test with a LiveCD.

@Matthew Caron (or anyone else still having issues), if you can please test Intrepid that would be great. You should be able to test via a LiveCD. Additionally, issues with suspend/resume are typically hardware specific. I suspect you have a different bug and should likely open a new report. The reason I say this is that this bug was originally reported against a 2.6.24-17 kernel. You mentioned 2.6.24-19 was working and has regressed with 2.6.24-21. Thanks.

Revision history for this message
Matthew Caron (matt-mattcaron) wrote :

Intrepid (2.6.27-7-generic) resolves my issue.

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

I'm marking this Fix Released based on the feedback we've received so far. Kyrylo, if this is not resolved for you with the most recent Intrepid Ibex 8.10 release please feel free to reopen this bug by setting the status back to New. Thanks.

Changed in linux:
status: Incomplete → Fix Released
Revision history for this message
thejpster (ubuntu-thejpster) wrote :

I had the same problem on my Acer Extensa 4220 under Hardy and Intrepid. It went to sleep OK, then shutdown on resume. I'm running 2.6.27-11-generic x86_64.

The SUSPEND_MODULES="psmouse" hack fixed it for me.

Revision history for this message
pepe (et21) wrote :

I confirm tricks as described here in a "PM way":
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/235315/comments/11

working briliant on:
Acer TravelMate 5720
Ubuntu 8.04.2 with updates

Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :

The bug continues to be in Jaunty 9.04, out-of-the box installation, not Live CD.

Trick 1-5 with «SUSPEND_MODULES="psmouse"» works again.

Revision history for this message
Kyrylo Kalugin (cyril-kalugin) wrote :

The bug continues to be in Jaunty (9.04).

Changed in linux (Ubuntu):
status: Fix Released → New
Revision history for this message
kernel-janitor (kernel-janitor) wrote :

Hi cyril-kalugin,

If you could run the following command from a Terminal (Applications->Accessories->Terminal) it will automatically gather and attach updated debug information to this report.

apport-collect -p linux-image-`uname -r` 235315

Also, please be sure to take a look at https://wiki.ubuntu.com/DebuggingKernelSuspendHibernateResume . If you can provide any additional information outlined there it would be much appreciated.

Additionally, if you could try to reproduce this with the upstream mainline kernel that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Thanks in advance.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kernel-suspend
tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
POTA (jjdc) wrote :

Acer resume from suspend issue(s) may have been fixed by BIOS updates. I resolved a similar problem https://bugs.launchpad.net/ubuntu/+source/linux/+bug/225202 by updating to the latest BIOS.

Curtis Hovey (sinzui)
Changed in linux (Ubuntu):
assignee: Registry Administrators (registry) → nobody
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.