[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:abrou... ) , 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 <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |NEEDINFO InfoProvider| |abrouwers@gmail.com --- Comment #2 from Michal Vyskocil <mvyskocil@novell.com> 2010-09-29 12:23:12 UTC --- Hi Andrew, can you post the /var/log/pm-*log? -- 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#c3 --- Comment #3 from Andrew Brouwers <abrouwers@gmail.com> 2010-09-30 01:00:19 UTC --- Hi Michal, Thanks for the reply! Sure - see below: thinkpad ~ $ cat /var/log/pm-*.log /usr/lib/pm-utils/power.d/sched-powersave false:**sched policy powersave OFF success. Initial commandline parameters: --quirk-s3-bios --quirk-s3-mode Wed Sep 29 20:52:13 EDT 2010: Running hooks for hibernate. /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:Linux thinkpad 2.6.34.7-0.3-default #1 SMP 2010-09-20 15:27:38 +0200 x86_64 x86_64 x86_64 GNU/Linux Module Size Used by cryptd 9371 0 aes_x86_64 8104 1 aes_generic 27607 1 aes_x86_64 af_packet 22781 2 cpufreq_conservative 12628 0 cpufreq_userspace 3264 0 cpufreq_powersave 1258 0 acpi_cpufreq 8303 1 snd_pcm_oss 53231 0 mperf 1523 1 acpi_cpufreq snd_mixer_oss 18913 1 snd_pcm_oss snd_seq 67475 0 snd_seq_device 7802 1 snd_seq edd 10176 0 loop 17791 0 dm_mod 85571 0 snd_hda_codec_analog 82413 1 arc4 1601 2 ecb 2495 2 pcmcia 66829 0 firewire_ohci 26938 0 firewire_core 60218 1 firewire_ohci crc_itu_t 1747 1 firewire_core snd_hda_intel 28301 2 iwl3945 166640 0 snd_hda_codec 112779 2 snd_hda_codec_analog,snd_hda_intel yenta_socket 44414 0 iwlcore 301147 1 iwl3945 snd_hwdep 7676 1 snd_hda_codec ohci1394 33478 0 tpm_tis 13058 0 rsrc_nonstatic 11694 1 yenta_socket i2c_i801 11881 0 mac80211 283974 2 iwl3945,iwlcore sg 32904 0 snd_pcm 104441 3 snd_pcm_oss,snd_hda_intel,snd_hda_codec sr_mod 16204 0 tpm 17292 1 tpm_tis iTCO_wdt 12106 0 pcmcia_core 23946 3 pcmcia,yenta_socket,rsrc_nonstatic e1000e 152237 0 battery 12270 0 ac 4023 0 ieee1394 103926 1 ohci1394 thinkpad_acpi 83380 0 tpm_bios 6684 1 tpm iTCO_vendor_support 3150 1 iTCO_wdt wmi 8750 0 pcspkr 2222 0 joydev 11686 0 snd_timer 25904 2 snd_seq,snd_pcm cdrom 43051 1 sr_mod cfg80211 182051 3 iwl3945,iwlcore,mac80211 rfkill 21511 2 thinkpad_acpi,cfg80211 snd 82622 15 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_codec_analog,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,thinkpad_acpi,snd_timer soundcore 8565 1 snd snd_page_alloc 9473 2 snd_hda_intel,snd_pcm ext4 393596 2 jbd2 93303 1 ext4 crc16 1715 1 ext4 usbhid 51657 0 i915 350317 3 drm_kms_helper 32944 1 i915 ata_generic 3739 0 sd_mod 41042 4 drm 220492 4 i915,drm_kms_helper ata_piix 23945 0 i2c_algo_bit 6728 1 i915 uhci_hcd 29472 0 ahci 42680 3 ehci_hcd 59876 0 libata 211193 3 ata_generic,ata_piix,ahci scsi_mod 190568 4 sg,sr_mod,sd_mod,libata button 6925 1 i915 intel_agp 34008 2 i915 video 25160 1 i915 usbcore 228898 4 usbhid,uhci_hcd,ehci_hcd fan 4559 0 thermal 20593 0 processor 45301 3 acpi_cpufreq thermal_sys 17942 4 video,fan,thermal,processor total used free shared buffers cached Mem: 2014464 717528 1296936 0 21624 449392 -/+ buffers/cache: 246512 1767952 Swap: 2000056 0 2000056 success. /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:success. /usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate:not applicable. /usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate:success. /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:not applicable. /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:not applicable. /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:success. /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:success. /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:success. /usr/lib/pm-utils/sleep.d/99Zgrub hibernate hibernate:INFO: running prepare-grub Skipping grub entry #1, because it has the noresume option running kernel is grub menu entry 0 (vmlinuz-2.6.34.7-0.3-default) preparing boot-loader: selecting entry 0, kernel /boot/2.6.34.7-0.3-default grub-once: saving original /boot/grub/default running '/usr/sbin/grubonce 0' Using entry #0: openSUSE 11.3 - 2.6.34.7-0.3 time needed for sync: 0.6 seconds, time needed for grub: 0.0 seconds. success. /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:success. Wed Sep 29 20:52:14 EDT 2010: performing hibernate After trying to thaw from this hibernate, it bi-passes the image and boots normally, without even attempting to thaw. My grub menu entry for the default kernel: ##Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 11.3 - 2.6.34.7-0.3 root (hd0,1) kernel /boot/vmlinuz-2.6.34.7-0.3-default root=/dev/disk/by-id/ata-FUJITSU_MHZ2080BH_G1_K60UT8525J7K-part2 resume=/dev/disk/by-id/ata-FUJITSU_MHZ2080BH_G1_K60UT8525J7K-part1 splash=silent quiet showopts vga=0x367 initrd /boot/initrd-2.6.34.7-0.3-default -- 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#c4 --- Comment #4 from Andrew Brouwers <abrouwers@gmail.com> 2010-10-12 18:53:22 UTC --- I have also attempted using a rebuilt package in OBS from Base:System, to test out pm-utils 1.4.1, and still the problem remains. However, I do not think pm-utils is to blame; as the logs show, the hibernate goes down perfectly, and without errors. I think possibly the init scripts, or initrd, are not even trying to load the hibernate image. Do you happen to know where in the init process it searches for an image to thaw from? I cannot find anything checking around /lib/mkinitrd, or the /etc/init.d/* scripts. -- 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#c5 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|abrouwers@gmail.com |mmarek@novell.com --- Comment #5 from Michal Vyskocil <mvyskocil@novell.com> 2011-03-28 12:05:15 UTC --- Hi Andrew, sorry for a long delay As far I understood, the problem is in fact hibernated machine is not booting anymore? Then the resuming is a part of initrd I'd say - Michal: can you help here? -- 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#c6 Michal Marek <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|mmarek@novell.com |hmacht@novell.com --- Comment #6 from Michal Marek <mmarek@novell.com> 2011-03-28 12:15:49 UTC --- /lib/mkinitrd/scripts/boot-resume.*.sh is part of the suspend package. -- 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#c7 --- Comment #7 from Andrew Brouwers <abrouwers@gmail.com> 2011-03-28 12:23:58 UTC --- 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. 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 :-) -- 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#c8 --- Comment #8 from Michal Vyskocil <mvyskocil@novell.com> 2011-03-28 13:33:51 UTC --- (In reply to comment #7)
I did not understand, when you do a hibernate, your system is turned off then. How can you restart it?
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 <abrouwers@gmail.com> 2011-03-28 13:38:48 UTC --- (In reply to comment #8)
I guess "restart" meant, when I open the lid and again push the power button. Not at actually "reboot" - sorry for the confusion.
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 <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|hmacht@novell.com |abrouwers@gmail.com --- Comment #10 from Michal Vyskocil <mvyskocil@novell.com> 2011-03-28 14:22:41 UTC --- Now I'm not sure, what's the problem. Is it resume from hibernate is not working because ... bug in mkintrd/pm-utils, I don't have suspend in my appliance, ...? -- 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#c11 --- Comment #11 from Andrew Brouwers <abrouwers@gmail.com> 2011-03-28 14:29:34 UTC --- 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. The "boot-resume.*.sh" scripts sure sound like a great start. Why would they exist in the suspend package, which isn't really the only way one suspends a system? Most all other distributions use pm-utils directly. -- 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#c12 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |mvyskocil@novell.com InfoProvider|abrouwers@gmail.com | AssignedTo|mvyskocil@novell.com |mmarek@novell.com --- Comment #12 from Michal Vyskocil <mvyskocil@novell.com> 2011-03-29 07:35:50 UTC --- (In reply to comment #11)
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 <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mmarek@novell.com |mvyskocil@novell.com --- Comment #13 from Michal Marek <mmarek@novell.com> 2011-08-01 14:36:28 UTC --- I maintain neither pm-utils, nor the suspend package. And bare mkinitrd doesn't do any resume on its 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#c14 --- Comment #14 from Andrew Brouwers <abrouwers@gmail.com> 2011-08-01 14:51:50 UTC --- (In reply to comment #13)
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 <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mvyskocil@suse.com |vdziewiecki@suse.com --- Comment #15 from Michal Vyskocil <mvyskocil@suse.com> 2012-03-27 08:34:44 UTC --- moved to the new maintainer -- 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#c Vojta Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P5 - None Status|NEW |ASSIGNED -- 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#c16 Wojtek Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |WONTFIX Status|ASSIGNED |CLOSED Resolution| |WONTFIX --- Comment #16 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2014-07-16 15:12:25 UTC --- Noone has time to fix pm-utils any more, sorry. This package will not be present in future opensuse versions as it has been replacad by systemd's suspend functionality. In case this is still an issue on 13.1 with pm-utils uninstalled, please feel free to reopen and assign to someone else. --- Comment #17 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2014-07-16 15:12:31 UTC --- Noone has time to fix pm-utils any more, sorry. This package will not be present in future opensuse versions as it has been replacad by systemd's suspend functionality. In case this is still an issue on 13.1 with pm-utils uninstalled, please feel free to reopen and assign to someone else. -- 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#c16 Wojtek Dziewięcki <vdziewiecki@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |WONTFIX Status|ASSIGNED |CLOSED Resolution| |WONTFIX --- Comment #16 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2014-07-16 15:12:25 UTC --- Noone has time to fix pm-utils any more, sorry. This package will not be present in future opensuse versions as it has been replacad by systemd's suspend functionality. In case this is still an issue on 13.1 with pm-utils uninstalled, please feel free to reopen and assign to someone else. --- Comment #17 from Wojtek Dziewięcki <vdziewiecki@suse.com> 2014-07-16 15:12:31 UTC --- Noone has time to fix pm-utils any more, sorry. This package will not be present in future opensuse versions as it has been replacad by systemd's suspend functionality. In case this is still an issue on 13.1 with pm-utils uninstalled, please feel free to reopen and assign to someone else. -- 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.
participants (1)
-
bugzilla_noreply@novell.com