Chuck Carlson wrote:
>
> Yes it does help, and also brings up another thought. I recall that
> one could take a snapshot of a wintel pc (memory and regs), write it to
> disk, power down and up, reload the snapshot, and you were up and running
> from where you left off. Is there anything like this in the Linux
> world?
>
> Chuck
Yes, there is. There's a patch for kernel at
http://falcon.sch.bme.hu/~seasons/linux/swsusp.html
It's very usefull if you have some long, uninterruptible tasks (as mp3
compression) and you want to power off the system (to go to sleep
without the fan noise)...
The problem is that this system leave the hardware not initialized.
After the resume your devices are all (except console and hard-disk)
uninitialized.
If you use X, for example, you are in great problems...
The reason is that when you "freeze" the system it take a snapshot of
the whole memory used by the system and of the status of the internal
structures of the kernel. Everything is put in the swap partition
Then, when you reboot, everything goes normally until you activate the
swap. At this stage the kernel found a signature in the swap and reload
the structures and the memory from the swap. But some devices (audio,
network, graphic mode, etc) are not yet initialized... and after the
resuming of the structure from swap they don't have another
possibility...
I think that maybe if you postpone the swapon after the hardware
initialization...
Ciao!
Claudio
--
Ash nazg durbatuluk, ash nazg gimbatul,
ash nazg thrakatuluk agh burzum-ishi krimpatul.
---------------------------------------------------------------------
Claudio Granatiero ICQ# : 16725435 (nickname: CGsoft) //
AOL IM: CGsoft IRC : CGsoft (or Paperinik) \\|soft
(PGP Key available) e-mail: claudiog@praimcom
[please insert a point (".") between "praim" and "com" in e-address]
---------------------------------------------------------------------