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 ...
Created attachment 120333 [details] Hibernate configuration
Created attachment 120335 [details] Hibernate configuration
Created attachment 120336 [details] Hibernate configuration
What video card do you have?
I have an ATI X1400 Video card.
Do you have the following settings in kernel command-line or can you please try adding: acpi_sleep=s3_bios,s3_mode
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.
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.
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.
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.
Do you get the same log in dmesg?
My mistake.
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.
I have framebuffer device and suspend to ram works. I think it is vesafb-tng issue... Can you try radeonfb?
Let's continue at bug#185674 *** This bug has been marked as a duplicate of bug 185674 ***