LWN.net Logo

Suspend to RAM...

Suspend to RAM...

Posted Jul 31, 2008 9:17 UTC (Thu) by rsidd (subscriber, #2582)
Parent article: OLS: Shuttleworth on free software development

"[Updating] picked up a new kernel as well and he did a suspend to RAM when he was done; only later in the cab ride to the Congress Centre did he think: "maybe that was a mistake"

Why would that be a mistake? His new kernel has been installed on the disk but does not interfere with the old kernel in any way.

Now, if he had done a "suspend to disk" and successfully resumed, that would have been interesting...


(Log in to post comments)

Suspend to RAM...

Posted Jul 31, 2008 11:39 UTC (Thu) by sladen (subscriber, #27402) [Link]

In $distro_in_question, PMI already checks for a new default kernel.
$ grep kernel /usr/sbin/pmi
  [ -f /var/run/do-not-hibernate ] && echo "Default kernel has been upgraded" >&2 && exit 1
The improvement would be to twiddle the boot-loader and force loading of the older kernel; or have the initramfs code try to kexec the correct (older) kernel for the hibernated image—should the matching kernel is still around.

Suspend to RAM...

Posted Jul 31, 2008 14:54 UTC (Thu) by pjones (subscriber, #31722) [Link]

The improvement would be to twiddle the boot-loader and force loading of the older kernel

Fedora already does this; has since January 2006.

Suspend to RAM...

Posted Aug 1, 2008 6:15 UTC (Fri) by dlang (✭ supporter ✭, #313) [Link]

I read this that he did a significant upgrade, including a new kernel, then did a
suspend-to-ram and got in the taxi, then had the worry that the resume may not work (he had
never tested it with this laptop/kernel combination). it sounds as if it did, but it is the
type of thing that is definantly bleeding-edge to do.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds