Re: Resume/Suspend (was Re: LVM / Filesystems / High availability)

Ian Stirling (root@mauve.demon.co.uk)
Tue, 23 Jun 1998 17:24:10 +0100 (BST)


> From: Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
> Date: Tue, 23 Jun 1998 14:18:04 +0200
> Subject: Re: Resume/Suspend (was Re: LVM / Filesystems / High availabil=
> ity)
>
> HI!
>
> > > What about a "sleep" function that stores a complete live image on =
> the
> > > swapspace and then shuts down for a quick reload after
> > power-on. It
>
> And stores complete image of hw, which is unknown - you forgot to
> say. If you want to be able to suspend X, you would need to save state
> of VGA card which is impossible, or to have GGI.

Well, you don't need a complete image of the VGA card for example,
you just do whatever happens to store the state when another process
accesses the video (for example running zgv under X)
Yes, X needs to repaint, but is this a problem?
Most hardware drivers can put up with the power being pulled to the
device (IDE/SCSI/...)
Doing this so it works to some level is possibly not that hard, don't you
have to deal with most of the same issues if you unplug power to the
disk drives, and ifconfig down /ifconfig up network interfaces.
This currently works (just tried it), and everything resumes pretty cleanly.)
So, some sort of app that puts the terminal in graphics mode, tears down any
network interfaces, storing a little state (IP, netmask, ...)
saves an image, then comes back, resets text terminals ala SVGAtextmode,
switches out of graphics mode, and lets X take over.

I asume I've missed something major, but can't think what it is.

> This is _really_ hard to do. I see alternate way: make your /etc/rc
> scripts boot up *fast*. It can be done: my machine does not spend more
> than 10 seconds in userland initialization.
>
> > > ought to be possible to give all kind of PC:s the same function as =
> a
> > > laptops builtin poweroff/resume.
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu