Any hibernation solution would have three key requirements from me:Love4Boobies wrote:I think I worded my response carefully. If the lid is closed and one or more processes don't signal back in time, there are plenty of things you could do. First of all, you may use sound to notify the user. If he doesn't take action in time, you could
- forcefully hibernate and notify later that things may not be reliable.
- start killing.
- act according to some configurable policy (e.g., the user might decide in advance on a per-program basis).
- etc.
- Very high reliability. Apps must not be able to mess up hibernation. It must just work
- Minimum CPU usage. Pretty much every time my laptop has hibernated, it has been while the ild is closed (blocking the vents) and inside my bag (insulating it), Heat production must be minimized
- Hibernation time should be dominated by the time taken to write the suspend data to the non-volatile medium. This might involve a tradeoff in which a fast compression algorithm (e.g. LZ4) is used to reduce the quantity of data written to disk
The only time my laptop should be hibernating is when it is imminently necessary - e.g. when the battery is a couple of minutes away from being below the minimum level for RAM retention.