[Bug 641164] New: Failure to resume from hibernate (thaw) on system without s2{ram,disk} installed
https://bugzilla.novell.com/show_bug.cgi?id=641164 https://bugzilla.novell.com/show_bug.cgi?id=641164#c0 Summary: Failure to resume from hibernate (thaw) on system without s2{ram,disk} installed Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: abrouwers@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4 I'm using an 11.3-based distribution (built in Studio with a few custom apps), with a KDE4 desktop environment. In my setup, pm-utils is installed for KDE to use for suspending the machine, however the s2ram or s2disk components are non-existent on my machine. On my machine, I can suspend to disk nicely using "pm-hibernate" ; however, when attempting to thaw the laptop, it boots normally. My grub config does have the appropriate resume= line for the image, but seems to be completely ignored! After researching a little bit more, I've found the pm-utils package to be extremely hacked up with patching (including some additional "should I resume?" checks that were failing, and specific calls to prefer s2disk, which weren't installed on my machine); I've tried rebuilding a more "vanilla" version of pm-utils ( https://build.opensuse.org/package/files?package=pm-utils&project=home:abrouwers ) , without much luck. For some reason, grub completely ignores my resume= line , which I have confirmed is correctly specified. Furthermore, the /var/log/pm-suspend.log entry shows every hook completely perfectly. Reproducible: Always Steps to Reproduce: 1. Hibernate machine using un-patched pm-hibernate 2. Attempt to resume from grub 3. Actual Results: System boots fresh Expected Results: System boots from dumped hibernate image -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c2
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c3
--- Comment #3 from Andrew Brouwers
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c4
--- Comment #4 from Andrew Brouwers
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c5
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c6
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c7
--- Comment #7 from Andrew Brouwers
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c8
--- Comment #8 from Michal Vyskocil
Hello,
Yes, that's correct. Doing a hibernate works nice fine, but the restore doesn't ever seem to get triggered when I re-start the machine.
I did not understand, when you do a hibernate, your system is turned off then. How can you restart it?
So, it does boot, but not in to the previous session.
Should boot-resume.sh not be apart of the init-scripts packages, then? Surely hibernate/thaw can work fine using native pm-utils :-)
The resume must be handled in initrd, because regular userspace is not available atm. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c9
--- Comment #9 from Andrew Brouwers
Yes, that's correct. Doing a hibernate works nice fine, but the restore doesn't ever seem to get triggered when I re-start the machine.
I did not understand, when you do a hibernate, your system is turned off then. How can you restart it?
I guess "restart" meant, when I open the lid and again push the power button. Not at actually "reboot" - sorry for the confusion.
So, it does boot, but not in to the previous session.
Should boot-resume.sh not be apart of the init-scripts packages, then? Surely hibernate/thaw can work fine using native pm-utils :-)
The resume must be handled in initrd, because regular userspace is not available atm.
This sounds fine - though it seems currently that function only exists in the 'suspend' package, which is wrong IMO. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c10
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c11
--- Comment #11 from Andrew Brouwers
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c12
Michal Vyskocil
As mentioned, the problem is that when I attempt thaw, by pushing the power button the next morning, the system does not attempt to thaw, but will rather boot fresh. Something in either the init scripts or initrd are not looking for the suspended image.
The problem is not in pm-utils, which as shown above, are clearly doing their job.
OK, then - moved this bug to mkinitrd maintainer, he might be able help you ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c13
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c14
--- Comment #14 from Andrew Brouwers
I maintain neither pm-utils, nor the suspend package. And bare mkinitrd doesn't do any resume on its own.
Erm, obviously? :) That's the entire point, is that resuming should not depend on the "suspend" package, since most common desktops can and will use pm-utils on their own. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c15
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c
Vojta Dziewięcki
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c16
Wojtek Dziewięcki
https://bugzilla.novell.com/show_bug.cgi?id=641164
https://bugzilla.novell.com/show_bug.cgi?id=641164#c16
Wojtek Dziewięcki
participants (1)
-
bugzilla_noreply@novell.com