Laptop doesn't resume after S3

Bug #20195 reported by Antonio Distante
18
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Notebook: Compaq Presario 2532EA
Distribution: Ubuntu Breezy/Hoary

My laptop goes into S3 well but hangs on resume. I can hear cdrom spin up and
see leds blink once, but nothing more. The screen is off, I can't login with ssh
and sometimes the fan starts up as in high load. I tried alla suggestion from
Documentation/power/video.txt without luck, I think the problem is not video
card. If you need some other information don't esitate to ask.

Revision history for this message
Antonio Distante (antonio-distante) wrote :

Searching in acpi-devel mailinglist's archive I found this Pavel Machek's patch
that should play a beep on resume:

 --- clean/arch/i386/kernel/acpi/wakeup.S 2005-01-22 21:24:51.000000000 +0100
 +++ linux/arch/i386/kernel/acpi/wakeup.S 2004-12-25 15:51:04.000000000 +0100
 @@ -11,7 +11,22 @@
  #
  # If physical address of wakeup_code is 0x12345, BIOS should call us with
  # cs = 0x1234, eip = 0x05
 -#
 +#
 +
 +#define BEEP \
 + inb $97, %al; \
 + outb %al, $0x80; \
 + movb $3, %al; \
 + outb %al, $97; \
 + outb %al, $0x80; \
 + movb $-74, %al; \
 + outb %al, $67; \
 + outb %al, $0x80; \
 + movb $-119, %al; \
 + outb %al, $66; \
 + outb %al, $0x80; \
 + movb $15, %al; \
 + outb %al, $66;

  ALIGN
   .align 4096
 @@ -20,6 +35,7 @@
   wakeup_code_start = .
   .code16

 + BEEP
    movw $0xb800, %ax
   movw %ax,%fs
   movw $0x0e00 + "L", %fs:(0x10)

I applied it to a 2.6.13-rc5 vanilla kernel and build it without framebuffer
support. I booted the new kernel with "init=/bin/sh" and then tried to S3. On
resume system hangs and I can't hear no beep. I hope this helps.

Matt Zimmerman (mdz)
Changed in acpi:
assignee: nobody → dsilvers
Revision history for this message
Martin Bergner (martin-bergner) wrote :

Does this problem still occur for you, if yes, could you try with dapper to see if it still occurs there?

Changed in linux-source-2.6.15:
status: Unconfirmed → Needs Info
Revision history for this message
Antonio Distante (antonio-distante) wrote :

I'm using Dapper and the problem is still here.

Revision history for this message
Alan Pater (alan-pater) wrote :

It now works on a different machine. The S3 resume problem has disappeared on this HP compaq nw8000. Using kernel 2.6.15-21-686 and the libre xorg r300 video driver.

Revision history for this message
Simon Law (sfllaw) wrote :

Antonio has switched to a different laptop, so he can't confirm whether
the Presario 2532EA behaves the same way.

Changed in linux-source-2.6.15:
status: Needs Info → Rejected
Revision history for this message
Antonio Distante (antonio-distante) wrote :

I'm sorry for slow, but I was busy. I tried S3 with kernel 2.6.15-22-686 and the bug is not fixed. Thank you.

Revision history for this message
Simon Law (sfllaw) wrote :

Hi Antonio,

Thank you for responding. Could I ask you to run some programs to
help us diagnose the problem?

$ lspci -vv > /tmp/lspci-vv.log
$ lspci -vvn > /tmp/lspci-vvn.log
$ dmesg > /tmp/dmesg.log
$ sudo dmidecode > /tmp/dmidecode.log

Please attach /tmp/lspci-vv.log, /tmp/lspci-vvn.log, /tmp/dmesg.log, and
/tmp/dmidecode.log to this bug report using the following link:
https://launchpad.net/distros/ubuntu/+bug/20195/+addattachment

Thanks.

Revision history for this message
Antonio Distante (antonio-distante) wrote : dmesg

dmesg

Revision history for this message
Antonio Distante (antonio-distante) wrote : dmidecode

dmidecode

Revision history for this message
Antonio Distante (antonio-distante) wrote : lspci -vv

lspci -vv

Revision history for this message
Antonio Distante (antonio-distante) wrote : lspci -vvn

lspci -vvn

Revision history for this message
Antonio Distante (antonio-distante) wrote :

Hi Simon,
here are log you requested.
Thank you for your interest.

Simon Law (sfllaw)
Changed in linux-source-2.6.15:
status: Rejected → Confirmed
Revision history for this message
Daniel Silverstone (dsilvers) wrote :

Hi Antonio,

Could you please take a look in /etc/default/acpi-support

Is the POST_VIDEO=true line enabled? Also is the SAVE_VIDEO_PCI_STATE=true enabled? Those two lines govern two of the mechanisms we use to save and restore the display configuration. On some laptops they can break resume. (For example on my Toshiba Portege A100 I have to disable both of those in order to prevent the laptop from hanging on resume)

Could you try different combinations of enabling and disabling those lines to see if anything helps? To disable a line, insert a hash (#) at the start, and to re-enable a line, remove any hashes at the start.

Revision history for this message
Antonio Distante (antonio-distante) wrote :

I tried all combinations without luck. Randomly laptop doesn't hang and I can switch on/off caps lock. No screen anyway.
Thanks

Changed in linux-source-2.6.15:
assignee: dsilvers → nobody
Revision history for this message
Greg Toombs (greg-toombs) wrote :

I can confirm that I have had a similar problem of failure to resume from suspend, and changing POST_VIDEO to false and SAVE_VBE_STATE to false fixed it. I have a Toshiba A100 laptop with ATI graphics.

Revision history for this message
kacheng (kacheng) wrote :

I had a desktop with failure to resume from suspend.
ASUS A8N-VM CSM motherboard (nVidia onboard graphics)

Commenting this directive from /etc/default/acpi-support solves the problem.
# POST_VIDEO=true

# SAVE_VBE_STATE=true
was already commented out by default.

Revision history for this message
Launchpad Janitor (janitor) wrote : This bug is now reported against the 'linux' package

Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this linux-source-2.6.15 kernel bug to the new "linux" package. We appreciate your patience and understanding as we make this transition. Also, if you would be interested in testing the upcoming Intrepid Ibex 8.10 release, it is available at http://www.ubuntu.com/testing . Please let us know your results. Thanks!

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
Greg Toombs (greg-toombs) wrote :

I believe the current Intrepid kernel and fglrx updates fix this issue for me with a Toshiba A100 and Radeon chipset.

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

Antonio, since you are the original bug reporter, is this still an issue for you with Intrepid? Thanks.

Changed in linux:
status: Confirmed → Incomplete
Revision history for this message
Antonio Distante (antonio-distante) wrote : Re: [Bug 20195] Re: Laptop doesn't resume after S3

On Wed, Jan 7, 2009 at 2:39 AM, Leann Ogasawara
<email address hidden> wrote:
> Antonio, since you are the original bug reporter, is this still an issue
> for you with Intrepid? Thanks.

Hi Leann,
I can't check because my laptop is broken. If you agree the bug can be closed.
Thanks,
Antonio

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

Hi Antonio,

Sorry to hear about your laptop. Lets go ahead and close this out then as you suggest. Thanks.

Changed in linux:
status: Incomplete → Invalid
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.