Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179820 - Laptop fails to resume from Suspend to ram after upgrade of kernel to suspend2-sources 2.6.21
Summary: Laptop fails to resume from Suspend to ram after upgrade of kernel to suspend...
Status: RESOLVED DUPLICATE of bug 185674
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-26 00:11 UTC by trevor campbell
Modified: 2007-09-04 04:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Hibernate configuration (common.conf,3.31 KB, text/plain)
2007-05-26 00:12 UTC, trevor campbell
Details
Hibernate configuration (sysfs-ram.conf,289 bytes, text/plain)
2007-05-26 00:13 UTC, trevor campbell
Details
Hibernate configuration (ram.conf,737 bytes, text/plain)
2007-05-26 00:16 UTC, trevor campbell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description trevor campbell 2007-05-26 00:11:08 UTC
I upgraded world including suspend2-sources to 2.6.21 and my laptop now fails to resume after suspend to ram.

$ uname -srv
Linux 2.6.21-suspend2-r4 #5 SMP PREEMPT Thu May 24 21:57:59 EST 2007

extract of /var/log/messages

Reproducible: Always

Steps to Reproduce:
1. Suspend machine using /usr/sbin/hibernate-ram. (Machine suspends as expected
2. Restart machine by pressing power button (this is the normal method on Dell Inspiron)


Actual Results:  
Machine does not resume.  Hardware begins to wake and freezes.  No entries in var/log/hibernate.log


Expected Results:  
Machine resumes to the same state as before suspend.

$ uname -srv
Linux 2.6.21-suspend2-r4 #5 SMP PREEMPT Thu May 24 21:57:59 EST 2007

# emerge -pv hibernate-script
[ebuild   R   ] sys-power/hibernate-script-1.95-r1  USE="-logrotate -vim-syntax"

Hardware is : Dell Inspiron 6400

NOTE:  If I boot using previous kernel (linux-2.6.19-suspend2-r3) Suspend to ram works as expected.


Extract from /var/log/hibernate.log

Starting suspend at Thu May 24 20:19:28 EST 2007
hibernate-ram: [01] Executing CheckLastResume ... 
hibernate-ram: [01] Executing CheckRunlevel ... 
hibernate-ram: [01] Executing LockFileGet ... 
hibernate-ram: [01] Executing NewKernelFileCheck ... 
hibernate-ram: [05] Executing XStatusSuspendBegin ... 
hibernate-ram: [10] Executing EnsureSysfsPowerStateCapable ... 
hibernate-ram: [10] Executing MiscLaunchAuxFunc1 ... 
Executing /usr/sbin/alsactl store...
hibernate-ram: [11] Executing MiscLaunchAuxFunc2 ... 
Executing /usr/bin/amixer sset PCM 0...
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 0 [0%] [-51.00dB]
  Front Right: Playback 0 [0%] [-51.00dB]
hibernate-ram: [12] Executing MiscLaunchAuxFunc3 ... 
Executing /usr/bin/amixer sset Master 0...
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-46.50dB] [on]
  Front Right: Playback 0 [0%] [-46.50dB] [on]
hibernate-ram: [20] Executing XStatusProgress ... 
hibernate-ram: [30] Executing ServicesStop ... 
 * Shutting down Bluetooth ...
 *     Stopping rfcomm ...
  [ ok ]
 *     Stopping hidd ...
  [ ok ]
 *     Stopping hcid ...
  [ ok ]
  [ ok ]
 * Stopping laptop_mode ...
  [ ok ]
 * Stopping ipw3945d ...
  [ ok ]
hibernate-ram: [30] Executing XStatusProgress ... 
hibernate-ram: [40] Executing XStatusProgress ... 
hibernate-ram: [50] Executing XStatusProgress ... 
hibernate-ram: [59] Executing RemountXFSBootRO ... 
hibernate-ram: [60] Executing XStatusProgress ... 
hibernate-ram: [70] Executing XStatusProgress ... 
hibernate-ram: [80] Executing XStatusProgress ... 
hibernate-ram: [89] Executing SaveKernelModprobe ... 
hibernate-ram: [90] Executing XStatusProgress ... 
hibernate-ram: [91] Executing LockGnomeScreensaver ... 
hibernate-ram: [91] Executing ModulesUnloadBlacklist ... 
hibernate-ram: [95] Executing XStatusProgress ... 
hibernate-ram: [98] Executing CheckRunlevel ... 
hibernate-ram: [98] Executing XStatusProgressKill ... 
hibernate-ram: [99] Executing DoSysfsPowerStateSuspend ... 
hibernate-ram: Activating sysfs power state mem ...
Comment 1 trevor campbell 2007-05-26 00:12:13 UTC
Created attachment 120333 [details]
Hibernate configuration
Comment 2 trevor campbell 2007-05-26 00:13:25 UTC
Created attachment 120335 [details]
Hibernate configuration
Comment 3 trevor campbell 2007-05-26 00:16:10 UTC
Created attachment 120336 [details]
Hibernate configuration
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2007-05-26 08:24:50 UTC
What video card do you have?
Comment 5 trevor campbell 2007-05-27 07:01:01 UTC
I have an ATI X1400 Video card.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2007-05-27 08:27:12 UTC
Do you have the following settings in kernel command-line or can you please try adding:
acpi_sleep=s3_bios,s3_mode
Comment 7 trevor campbell 2007-05-28 09:47:21 UTC
Added acpi_sleep=s3_bios,s3_mode as suggested.  Kernel line now looks like:

kernel /boot/vmlinuz-2.6.21-suspend2-r5 root=/dev/sda5 quiet video=vesafb:1024x768-16@60,ywrap,mtrr:1 acpi_sleep=s3_bios,s3_mode splash=silent,theme:trevor CONSOLE=/dev/tty1

Result was not much different.  Did cold boot then
  First attempt at suspend did suspend, but did cold boot when trying to come out of suspend (after a little disk IO)
  Next 3 attempts did not actually suspend.  Seemed to get to last stage of suspend script and just froze, i.e. /var/log/hibernate looks exactly the same as before.
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2007-05-28 18:09:00 UTC
OK.
I would recommend on:
SwitchToTextMode yes

But I guess it worked for you before without this...

So one option left...
Try gentoo-sources-2.6.21 and suspend-to-ram... The suspend-to-ram is not suspend2 feature... If it does not work either I can CC kernel herd to try and help you.
Comment 9 trevor campbell 2007-05-29 08:38:18 UTC
From google search this does seem to be general kernel bug in 2.6.21
http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg149734.html

It is not a big problem for me personally.
Comment 10 trevor campbell 2007-05-29 08:45:16 UTC
Tried to suspend from single user mode:
> telinit 1
> hibernate-ram --force

(-- force needed because not all expected services running)

This had same result as before.  So not X related.
Comment 11 Alon Bar-Lev (RETIRED) gentoo-dev 2007-05-29 17:02:24 UTC
Do you get the same log in dmesg?
Comment 12 Alon Bar-Lev (RETIRED) gentoo-dev 2007-06-05 17:53:47 UTC
My mistake.
Comment 13 trevor campbell 2007-09-03 11:20:38 UTC
Further investigation & testing shows this is a vanilla kernel bug.  It can be resolved by building a kernel with NO framebuffer support.  Then using s2ram allows suspend & resume as designed. Of course with this workaround I loose my very pretty bootsplash.

Comment 14 Alon Bar-Lev (RETIRED) gentoo-dev 2007-09-04 04:35:31 UTC
I have framebuffer device and suspend to ram works.
I think it is vesafb-tng issue...
Can you try radeonfb?
Comment 15 Alon Bar-Lev (RETIRED) gentoo-dev 2007-09-04 04:36:02 UTC
Let's continue at bug#185674

*** This bug has been marked as a duplicate of bug 185674 ***