← All spotlightsPrograms / Features

Spotlight › Hibernate

Hibernate and resume

A build-matched conventional-memory snapshot, restored through a BIOS-accessible hard disk.

Hibernate
The os8088 desktop with a window titled Hibernate asking whether to save everything in memory to C colon backslash HIBERNAT dot IMG and stop the machine, with Hibernate and Cancel buttons, and an About box open behind it.
Hibernate confirmation.
Saved RAM
640KB
Resident code
259 bytes
Disk calls per direction
About 80

01 / Snapshot contract

Snapshot contract

Hibernate saves the desktop session to the hard disk and stops execution. A subsequent boot offers Resume or Discard. Window positions, package state and clipboard are restored from the snapshot rather than reopened from application files.

This is os8088's own mechanism. It does not depend on ACPI sleep states or a machine-specific suspend BIOS.

02 / Save and resume sequence

Save and resume sequence

The captures show one emulator session through save, restart and restore. They are functional evidence, not a measurement of a physical XT's disk latency.

System menu
The os8088 System menu open, listing About os8088, Control Panel, Task Manager, a separator, Hibernate and Restart. An About box sits open near the bottom of the desktop.
System-menu entry.
No hard disk
The same System menu on a machine with no hard disk. The Hibernate item is greyed out and reads Hibernate, No HD, in brackets.
Unsupported-volume refusal.
Hibernate
The Hibernate confirmation window, asking whether to save everything in memory to drive C and stop the machine, with the About box still open behind it.
Save confirmation.
Safe to switch off
A plain text screen reading: os8088 has hibernated. It is now safe to switch the machine off. Press any key to restart it.
Completed save.
Hibernate
A freshly booted os8088 desktop with a window titled Hibernate saying a hibernation file is on drive C and asking whether to resume where you left off or discard it and start normally.
Next-boot resume choice.
About os8088
The os8088 desktop after resuming, with the About box open again at the same position near the bottom of the screen and its name in the menu bar.
Restored window position and active application.

03 / Restore path

Restore path

The save payload is an uncompressed conventional-memory image. Device-owning drivers detach before save and reinitialise after restore; the boot-time clock replaces the snapshot clock. The recorded resident hook is 259 bytes, with the larger operation in the load-on-demand HIBER driver.

Restoration requires the same kernel build and a BIOS-readable disk. The final reader relocates into text VRAM so it can overwrite conventional RAM, then transfers control into the saved session. A different-build image is rejected. The format and ordering are specified in the project's Hibernate contract.

04 / Resume constraints

Resume constraints

A writable, BIOS-accessible hard disk is required. Active XMS allocations block hibernation because this format does not save them. A direct-controller-only volume is unsuitable for the BIOS restore path.

A dual-display session resumes as a single-display desktop until a normal restart. A snapshot is not a portable application checkpoint; changing the build or relevant machine configuration invalidates that assumption.

05 / Exercise resume

Exercise resume

Use a writable copy of the live hard-disk image or an installed BIOS-accessible volume. Wait for the completion screen before powering off. Restart with the same image and choose Resume; use Discard to test a clean boot instead.

qemu-system-i386 -drive file=os8088-usb.img,format=raw -boot c \
  -chardev msmouse,id=m0 -serial chardev:m0