Quote:
Originally posted by Kahless
why do you really want to hibernate?
|
If he has a laptop then an answer would be : do not loose everything when you run out of batteries.
Or even think about the environnement and just turn off your PC when you don't use it
With suspend, when you resume, you have evrything as you left it, its perfect!
Anyway it works almost perfectly(*) with suspend2 , you have to apply a patch to the kernel.
On my debain (I suppose it is quite the same on other NEW distros):
Get fresh kernel (eg 2.6.12 ) and software-suspend-2.1.9.9-for-2.6.12
Code:
Cd /usr/src
Tar xvzf soft…2.1.9…tgz
Cd /usr/src/linux
../soft..2.1.9/apply
Rename /boot/configXX to /boot/_config so you have a clean config for the new kernel
Make menuconfig
I have APM as module , ACPI linked to the kernel. I think linux will try the first one loaded.. I don't really know ..
Desactivate software suspend (v1)
In software suspend2 , check Swap Writer and Warn if possible fs corruption
Compile kernel
Edit boot/grub/menu.lst , add resume2=/dev/hda5 (example). /dev/hda5 is a swap space (here I have 2.5G but it is too big, maybe 1.5*RAM is enough).
also in your hibernate.conf you can put
Code:
EnableEscape yes
ImageSizeLimit nocache (all the mem caches are erased so the writing to disk is faster)
SaveClock yes
LockKDE yes <-- very important for physical security
for tweaking you can install
->xosd-bin
->userui suspend2 and then make an initrd image and have a nice splash screen saying "resuming..." with your prefered theme
(*) almost because if I remove the DC power supply while the lappy is writing his cache on the disk, then I have sometimes a kernel OOPS. As I also have script to lower the frequency when on batteries, it maybe due to this; I have to investigate..