From: Stefan Seyfried <seife@suse.de>
To: Bill Davidsen <davidsen@tmr.com>
Cc: Linux Kernel M/L <linux-kernel@vger.kernel.org>
Subject: Re: [2.6.21.1] resume doesn't run suspended kernel?
Date: Tue, 5 Jun 2007 09:23:55 +0200 [thread overview]
Message-ID: <20070605072355.GA5229@suse.de> (raw)
In-Reply-To: <4658B7DD.3060309@tmr.com>
Hi,
On Sat, May 26, 2007 at 06:42:37PM -0400, Bill Davidsen wrote:
> I was testing susp2disk in 2.6.21.1 under FC6, to support reliable computing
> environment (RCE) needs. The idea is that if power fails, after some short
> time on UPS the system does susp2disk with a time set, and boots back every
> so often to see if power is stable.
Interesting use case.
> No, I don't want susp2mem until I debug it, console come up in useless mode,
> console as kalidescope is not what I need.
You probably need to reset the video mode. Try the s2ram workaround,
specifically "-m".
> Anyway, I pulled the plug on the UPS, and the system shut down. But when it
> powered up, it booted the default kernel rather than the test kernel, decided
> that it couldn't resume, and then did a cold boot.
>
> I can bypass this by making the debug kernel the default, but WHY? Is the
> kernel not saved such that any kernel can be rolled back into memory and run?
The Kernel does nothing to the bootloader during suspend. The kernel does not
even know that you are using a bootloader and how it might be configured.
Userland has to do this (and SUSE's pm-utils actually do. I thought the
Fedora pm-utils also did, but i cannot say for sure). "Just" find out which
entry in menu.lst corresponds to the currently running kernel, and preselect
it for the next boot. It is doable.
So it's a problem of your distro's userland (and if you did not use
pm-hibernate to suspend, it is your very own problem).
You could of course simply go for GRUB's "default saved" and "savedefault"
feature, to always boot the last-booted kernel unless changed in the menu.
--
Stefan Seyfried
QA / R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out."
This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
next prev parent reply other threads:[~2007-06-05 9:35 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-26 22:42 [2.6.21.1] resume doesn't run suspended kernel? Bill Davidsen
2007-05-27 8:41 ` David Greaves
2007-05-27 13:10 ` Bill Davidsen
2007-05-27 15:26 ` David Greaves
2007-05-27 21:20 ` Pavel Machek
2007-05-27 21:17 ` Pavel Machek
2007-05-27 21:14 ` Pavel Machek
2007-05-28 3:15 ` Bill Davidsen
2007-05-28 13:21 ` Bill Davidsen
2007-05-28 13:26 ` Pavel Machek
2007-05-28 17:57 ` Rafael J. Wysocki
2007-05-28 22:48 ` Nigel Cunningham
2007-05-29 11:29 ` Pavel Machek
2007-05-29 12:03 ` Rafael J. Wysocki
2007-05-29 12:23 ` Nigel Cunningham
2007-05-29 12:40 ` Pavel Machek
2007-05-29 13:13 ` Nigel Cunningham
2007-05-29 21:51 ` Rafael J. Wysocki
2007-06-04 11:02 ` Pavel Machek
2007-06-04 11:05 ` Nigel Cunningham
2007-06-05 7:23 ` Stefan Seyfried [this message]
2007-06-05 14:08 ` Bill Davidsen
[not found] <fa.rXcMBo+RSE/6L84EBqFCeyFql/k@ifi.uio.no>
2007-05-27 2:44 ` Robert Hancock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070605072355.GA5229@suse.de \
--to=seife@suse.de \
--cc=davidsen@tmr.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox