Bug 45921 - resume from hibernate fails when "Suspend to RAM and standby" is disabled
Summary: resume from hibernate fails when "Suspend to RAM and standby" is disabled
Status: CLOSED CODE_FIX
Alias: None
Product: Power Management
Classification: Unclassified
Component: Hibernation/Suspend (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Lan Tianyu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 23:13 UTC by Andreas Steinmetz
Modified: 2013-04-12 05:49 UTC (History)
4 users (show)

See Also:
Kernel Version: 3.5.[01]
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Kernel config (79.84 KB, text/plain)
2012-08-13 23:14 UTC, Andreas Steinmetz
Details
Modules loaded (2.50 KB, text/plain)
2012-08-13 23:14 UTC, Andreas Steinmetz
Details
Broken config (79.82 KB, text/plain)
2012-08-15 00:26 UTC, Andreas Steinmetz
Details
do acpisleep dmi check if CONFIG_ACPI_SLEEP is set (9.15 KB, patch)
2012-11-28 14:55 UTC, Zhang Rui
Details | Diff
refreshed patch based on Rafael' comments (9.38 KB, patch)
2012-11-29 04:44 UTC, Zhang Rui
Details | Diff

Description Andreas Steinmetz 2012-08-13 23:13:07 UTC
The system in question can't suspend to ram, resume results in a reset and the system hanging in a broken bios (power off required).

Hibernate, however, works, but only, if CONFIG_SUSPEND=y and CONFIG_SUSPEND_FREEZER=y, otherwise resume from hibernate fails with two displays full of vertical bars and an otherwise fully locked up system.

The difference, as far as I can remember, is that if both options are set these vertical bars appear twice shortly on the main display during hibernation, when the options are not set they don't seem to appear.

The system is an Ivy Bridge system using the integrated HD4000 graphics, so i915 is in use.

The behavior is the same with 3.5.0 and 3.5.1. Kernel config attached.
Comment 1 Andreas Steinmetz 2012-08-13 23:14:04 UTC
Created attachment 77641 [details]
Kernel config
Comment 2 Andreas Steinmetz 2012-08-13 23:14:30 UTC
Created attachment 77651 [details]
Modules loaded
Comment 3 Rafael J. Wysocki 2012-08-14 23:16:31 UTC
May I see the .config that doesn't work too, please?
Comment 4 Andreas Steinmetz 2012-08-15 00:26:05 UTC
Created attachment 77731 [details]
Broken config

As per diff to the working config:

@@ -438,8 +438,7 @@
 # Power management and ACPI options
 #
 CONFIG_ARCH_HIBERNATION_HEADER=y
-CONFIG_SUSPEND=y
-CONFIG_SUSPEND_FREEZER=y
+# CONFIG_SUSPEND is not set
 CONFIG_HIBERNATE_CALLBACKS=y
 CONFIG_HIBERNATION=y
 CONFIG_PM_STD_PARTITION=""

Shouldn't affect hibernate, but unfortunately does.
Comment 5 Zhang Rui 2012-11-28 14:20:59 UTC
please attach the dmi output of this laptop.
Comment 6 Zhang Rui 2012-11-28 14:55:44 UTC
Created attachment 87551 [details]
do acpisleep dmi check if CONFIG_ACPI_SLEEP is set

please try this patch and see if it helps.
Comment 7 Zhang Rui 2012-11-29 04:44:50 UTC
Created attachment 87681 [details]
refreshed patch based on Rafael' comments

please try this patch instead.
Comment 8 Florian Mickler 2012-12-22 09:20:17 UTC
A patch referencing this bug report has been merged in Linux v3.8-rc1:

commit 0ac1b1d7b7424cd6f129b5454b504b3cae746f0e
Author: Zhang Rui <rui.zhang@intel.com>
Date:   Fri Nov 30 12:57:03 2012 +0100

    ACPI: do acpisleep dmi check when CONFIG_ACPI_SLEEP is set
Comment 9 Lan Tianyu 2013-03-31 14:22:45 UTC
ping ... Does Comment #8 patch fix the issue?
Comment 10 Lan Tianyu 2013-04-09 06:09:42 UTC
Since there is already a fix bug patch and no response. Close the bug as code fix and if still exit in the last upstream kernel. Please feel free to reopen.

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