Previous: Battery Up: Features

Experiences With a Dell Inspiron 4100

Hibernation

Summary: When set up properly, hibernation will work for Linux. Windows XP has its own hibernation method, and its own save file, which also works. I don't know, but I doubt, if XP can hibernate using the BIOS method.

The BIOS supports two styles of hibernation: all of memory and video RAM in one partition, or the initial segment in a small partition, continued to a plain file in another DOS partition. I don't know if FAT32 qualifies, but NTFS definitely doesn't, so the split partition method is not feasible on modern systems.

I recreated the save-to-disc partition. It is best to do this before setting up Windows and Linux, in case you make a mistake. Correct method:

If mks2d.exe claims it wants a filesystem but can't find one or is not allowed to use one due to -f, then your hibernation partition is too small. Calculate the size correctly, delete hda2, and reallocate it leaving more space for hda1. If you attempt to hibernate and the partition has not been set up by mks2d.exe, the BIOS will exude a message to the effect that the hibernation partition is incompatible with the BIOS and the BIOS needs to be upgraded (which is a lie). It will then suspend to RAM.

Needless to say, the above procedure is a distillation of what I actually did, in the process of which I trashed my Linux root partition twice. Under no circumstances use DOS fdisk.exe to manipulate the partition table of a disc with unallocated space at the beginning, because it will put your new partition at some random location within your Linux root.

Do not fail to de-hibernate if you have hibernated! Your filesystem will be in an active state, as if the system had crashed, and if you boot Linux then fsck will repair the filesystem. Then you will create or add to files. If you later de-hibernate, that instance will not be aware of the changes made and will trash your filesystem.

If you have a hibernating image that you want to remove, the correct procedure is to execute rms2d.exe, and then mks2d.exe again. The hibernation partition will have been made active, and this needs to be undone, otherwise the BIOS will refuse to use the partition.

It takes 90 seconds to hibernate. The BIOS is not too bright about estimating the remaining charge in the battery, and one time the BIOS initiated a ``critical suspend'' operation with 4% left (it thought), and didn't have enough juice to finish the job.


Previous: Battery Up: Features