Bug 43551 - suspend doesn't work properly
Summary: suspend doesn't work properly
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Sleep-Wake (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Aaron Lu
URL: https://bugs.launchpad.net/ubuntu/+so...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-18 17:38 UTC by Elvis Slavic
Modified: 2013-02-20 06:30 UTC (History)
3 users (show)

See Also:
Kernel Version: 3.5.0
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg log (72.52 KB, text/plain)
2012-06-18 17:39 UTC, Elvis Slavic
Details

Description Elvis Slavic 2012-06-18 17:38:52 UTC
When trying to suspend, computer goes into suspend mode for a second and wakes up immediately afterwards.

This was tested in Ubuntu 12.04 using upstream kernel. I used linux-image-3.5.0-030500rc2-generic_3.5.0-030500rc2.201206082235_amd64.

Bug has also been created on the launchpad (no. 1013372):

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1013372

I've also added dmesg log to this message. If needed, I can execute additional testing and provide more data.
Comment 1 Elvis Slavic 2012-06-18 17:39:37 UTC
Created attachment 73811 [details]
dmesg log
Comment 2 Alan 2012-06-18 20:27:19 UTC
[   64.126851] sd 2:0:0:0: [sda] Stopping disk
[   64.137661] ACPI handle has no context!
[   66.671983] PM: suspend of devices complete after 2647.842 msecs

This seems to go through all the device parts properly in both directions.
Comment 3 Elvis Slavic 2012-06-26 20:06:38 UTC
I retested using newest kernel (linux-image-3.5.0-999-generic_3.5.0-999.201206260421_amd64) and I'm still experiencing the same issue.

The problem is that computer wakes up without user intervention after a second or two. There are no error messages but computer just comes on immediately. I have no idea where should I look for issue.

Can you please provide some hints where to look or what to provide (which logs) in order to try to identify where the problem is?
Comment 4 James 2012-07-28 05:24:35 UTC
I can confirm this issue as well.  This issue is not present with my 3.4.6 kernel, only 3.5.0.  Additionally, my hardware does not appear to ever power down.  While it does suspend and resume successfully, it does not stay in a suspended state.

If any information or logs are needed from my system, just let me know.
Comment 5 Aaron Lu 2012-12-06 09:05:53 UTC
Hi Elvis,

I think you can try disable all wakeup devices before entering S3.
You can see which devices are enabled for wakeup by:
# cd /proc/acpi
# cat wakeup
Device	S-state	  Status   Sysfs node
PS2K	  S3	*enabled   pnp:00:08
EHC1	  S3	*enabled   pci:0000:00:1d.0
EHC2	  S3	*enabled   pci:0000:00:1a.0
HDEF	  S4	*disabled  pci:0000:00:1b.0
GLAN	  S4	*enabled   pci:0000:00:19.0
RP01	  S4	*disabled  pci:0000:00:1c.0
PXSX	  S4	*disabled
RP02	  S4	*disabled
PXSX	  S4	*disabled
RP03	  S4	*disabled  pci:0000:00:1c.2
PXSX	  S4	*disabled
... ...

And disable them like this:
# echo PS2K > wakeup

Make sure all of them are disabled, and then see if system resumes automatically, thanks.
Comment 6 Aaron Lu 2013-01-30 07:24:26 UTC
Hi Elvis,

Care to give it a test?

Note You need to log in before you can comment on or make changes to this bug.