Bug 803098

Summary: hibernation does not work
Product: [openSUSE] openSUSE 12.3 Reporter: Elmar Stellnberger <estellnb>
Component: BasesystemAssignee: Thomas Renninger <trenn>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: bjoernv, shiverma, whdu
Version: RC 1   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/messages
yast2 install logs
/var/log/messages
pm-suspend.log
/var/log/messages (plain suspend: nomodeset, shutdown)
patch for mkinitrd

Description Elmar Stellnberger 2013-02-11 15:18:32 UTC
User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:18.0) Gecko/20100101 Firefox/18.0

Hibernation does not work on my FS Amilo Xi 2550 (Note that it was working once; however not for 12.2). Instead it simply powers off without any message on the screen and then boots normally as if there would have been a normal system shutdown.

Reproducible: Always
Comment 1 Elmar Stellnberger 2013-02-11 15:19:05 UTC
Created attachment 524132 [details]
/var/log/messages
Comment 2 Elmar Stellnberger 2013-02-11 15:20:03 UTC
Created attachment 524133 [details]
yast2 install logs
Comment 3 shishir verma 2013-02-14 20:14:21 UTC
I faced a similar problem when I had my Android phone connected to my computer.
Hibernation went through fine as soon as I unplugged my phone.
Comment 4 Elmar Stellnberger 2013-02-14 21:29:13 UTC
Created attachment 524773 [details]
/var/log/messages

this time it did not react at all on my hibernation requests sent by pm-hibernate.
Comment 5 Elmar Stellnberger 2013-02-14 21:29:57 UTC
Created attachment 524774 [details]
pm-suspend.log
Comment 6 Stephan Kulow 2013-02-18 13:36:21 UTC
I have no idea how to debug this myself, http://en.opensuse.org/openSUSE:Bugreport_Suspend_failure is a dead link ;(
Comment 7 Elmar Stellnberger 2013-02-19 12:25:32 UTC
Created attachment 525236 [details]
/var/log/messages (plain suspend: nomodeset, shutdown)

Having set 
shutdown method = shutdown
compress = n
in /etc/suspend.conf
and radeon.modeset=0 as kernel parameter
the suspend process seems fine now.
However when booting again it can not recognize the suspend image in the swap device:
(first line on boot is always rsyslogd)
PM: loading for hibernation image, Image not found (code -22)

Setting splash=n does not improve things either (and there appear to be no further options to try.).
Comment 8 Elmar Stellnberger 2013-02-19 13:44:38 UTC
I have inspected my initrd and found out that the file /sbin/resume has not been packaged into the initrd but is required by boot/81-resume.userspace.sh.
Comment 9 Elmar Stellnberger 2013-02-19 22:01:22 UTC
Simply add this file to your initrd and it will work.
Comment 10 Elmar Stellnberger 2013-02-20 10:08:34 UTC
Created attachment 525451 [details]
patch for mkinitrd

Here is a patch for mkinitrd; the path for /usr/sbin/resume was wrong.
It now works with the Vesa driver without kernel modesetting.
However there is a different bug with radeons kernel modesetting (I will file a different report on this).
Comment 11 Elmar Stellnberger 2013-02-20 10:10:26 UTC
please look out; I think there are some dups around for this bug.
Comment 12 Vojtech Dziewiecki 2013-02-21 13:38:15 UTC
mkinitrd bug - reassigning
Comment 13 Michal Marek 2013-02-28 11:33:30 UTC
This script is not part of mkinitrd.
Comment 15 Thomas Fehr 2013-03-12 10:59:28 UTC
Reassigned to maintainer of suspend which contains
/lib/mkinitrd/scripts/boot-resume.userspace.sh
Comment 16 Thomas Renninger 2013-03-27 08:38:40 UTC
This got fixed by Jiri (Slaby) quite some time ago.
Changelog of suspend package in openSUSE:12.3 projects mentions:
Mon Feb 25 22:36:11 UTC 2013 - jslaby@suse.com

- fix path to resume, it's in /usr/sbin (bnc#802882)

I wonder why bug#802882 is still open. Let's take this bug to further track things if something should still be unresolved.

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