Apple hat im Herbst 2005 einen neuen Ruhezustand für portable Macs eingeführt, der den Inhalt des Arbeitsspeichers im Ruhezustand vollständig auf die Festplatte auslagert. Bei plötzlichem Energieabfall – wir kennen die Situation aus diversen Star Trek-Folgen – kann das segensreich sein. Wenn pmset -g | grep hibernatemode
den Wert 3 zurückliefert, ist dieser Modus aktiv. Wenn man statt des ruhigen Schlafes mehr Plattenplatz benötigt:
sudo pmset -a hibernatemode 0 sudo rm /var/vm/sleepimage
Die Macworld erläutert freundlicherweise nicht nur diese Methode, sondern auch die Bedeutung der Modi:
- 0 - Old style sleep mode, with RAM powered on while sleeping, safe sleep disabled, and super-fast wake.
- 1 - Hibernation mode, with RAM contents written to disk, system totally shut down while “sleeping,” and slower wake up, due to reading the contents of RAM off the hard drive.
- 3 - The default mode on machines introduced since about fall 2005. RAM is powered on while sleeping, but RAM contents are also written to disk before sleeping. In the event of total power loss, the system enters hibernation mode automatically.
- 5 - This is the same as mode 1, but it’s for those using secure virtual memory (in System Preferences -> Security).
- 7 - This is the same as mode 3, but it’s for those using secure virtual memory.