[Bug 395892] New: suspend to disk does not work: s2disk: atomic_snapshot result 12
https://bugzilla.novell.com/show_bug.cgi?id=395892 Summary: suspend to disk does not work: s2disk: atomic_snapshot result 12 Product: openSUSE 11.0 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Mobile Devices AssignedTo: seife@novell.com ReportedBy: mvidner@novell.com QAContact: qa@suse.de Found By: --- RC1 (build 131), the machine is Toshiba Portege 3020CT, a laptop from 2000. When I try to suspend to disk from the console, using pm-hibernate, it gracefully fails and /var/log/pm-suspend.log says "s2disk: atomic_snapshot result 12". /etc/suspend.conf has all values commented out. Interestingly, if I call "s2disk -f /var/lib/s2disk.conf" directly, from run level 1, it does work (except it does not power off at the end), including resume. I looked at http://en.opensuse.org/Pm-utils#Troubleshooting but it seems to be targetted at problems with higher layers. What logs should I look at, what debugging options are there? -- 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=395892 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395892#c1 Stefan Seyfried <seife@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fseidel@novell.com, rjwysocki@sisk.pl, | |hmacht@novell.com, seife@novell.com AssignedTo|seife@novell.com |pavel@novell.com Found By|--- |Development Component|Mobile Devices |Kernel --- Comment #1 from Stefan Seyfried <seife@novell.com> 2008-06-04 10:35:44 MDT --- if s2disk returns with "12", this means it got ENOMEM somewhere. Pavel, the message is from my "increase debugging output"-patch, the code is: (in suspend_system()): if (atomic_snapshot(snapshot_fd, &in_suspend)) { error = errno; suspend_printf("%s: atomic_snapshot result %d\n", my_name, error); break; } atomic_snapshot() is: static int atomic_snapshot(int dev, int *in_suspend) { int error; error = ioctl(dev, SNAPSHOT_CREATE_IMAGE, in_suspend); if (error && errno == ENOTTY) { report_unsupported_ioctl("SNAPSHOT_CREATE_IMAGE"); error = ioctl(dev, SNAPSHOT_ATOMIC_SNAPSHOT, in_suspend); } return error; } So i guess the machine is simply out of memory, right? The same thing working from runlevel 1 is explained by less running processes etc. You might see some helpful messages in dmesg after it failed, so it might be interesting looking there. -- 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=395892 User pavel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395892#c2 Pavel Machek <pavel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Minor Status|NEW |ASSIGNED --- Comment #2 from Pavel Machek <pavel@novell.com> 2008-06-04 13:01:04 MDT --- I'd need to see dmesg to know what happened. But your system is below minimal requirements for OpenSuSE, right? ;-). -- 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=395892 User mvidner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395892#c3 --- Comment #3 from Martin Vidner <mvidner@novell.com> 2008-06-04 14:35:20 MDT --- Created an attachment (id=220205) --> (https://bugzilla.novell.com/attachment.cgi?id=220205) hibernate-dmesg Yes, below the reqs and I don't even have to look them up. But I had fun installing it: http://mvidner.blogspot.com/2008/05/installation-without-yast.html -- 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=395892 User pavel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395892#c4 --- Comment #4 from Pavel Machek <pavel@novell.com> 2008-06-05 02:48:24 MDT --- ..actually, this seems to be insteresting case: default s2disk takes quite a while to load, and then fails; while in-kernel swsusp seems to work. Hmm... we have a "great splash screen" and all the s2disk code is mlocked()... -- 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=395892 Pavel Machek <pavel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|suspend to disk does not work: s2disk: |s2disk fails with ENOMEM on 96MB machine |atomic_snapshot result 12 | -- 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=395892 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395892#c5 --- Comment #5 from Stefan Seyfried <seife@novell.com> 2008-06-05 02:51:33 MDT --- splash = n in /etc/suspend.conf could fix that. -- 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=395892 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395892#c6 --- Comment #6 from Stefan Seyfried <seife@novell.com> 2008-06-05 03:01:06 MDT --- yes, worksforme. On an armada e500, 192MB, but booted with mem=96m. -- 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=395892 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395892#c7 --- Comment #7 from Stefan Seyfried <seife@novell.com> 2008-06-05 03:14:27 MDT --- and it actually works from X with KDE loaded, too ;) -- 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=395892 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395892#c8 --- Comment #8 from Stefan Seyfried <seife@novell.com> 2008-06-05 03:25:07 MDT --- 128MB is enough for using the splash screen, so i'd actually say we do not need to do anything special (like "disable splash if machine has less than ... MB"), because anybody who is able to install on such a low memory machine will probably be able to also figure out how to optimize the suspend config ;) -- 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=395892 User pavel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395892#c9 --- Comment #9 from Pavel Machek <pavel@novell.com> 2008-06-05 03:35:22 MDT --- Agreed, splash=n helps here, too. (There are other, unrelated problems with sound drivers breaking suspend). -- 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=395892 User pavel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=395892#c10 Pavel Machek <pavel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX --- Comment #10 from Pavel Machek <pavel@novell.com> 2008-06-05 03:36:35 MDT --- (But sound problems should go to separate bug report). -- 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