Hibernacja systemu Mac OS X Lion, czyli jak zmusić system do wybudzania wyłącznie przyciskiem zasilania

Cel:

Zmusić system do wybudzania wyłącznie za pomocą naciśniętego przycisku zasilania.

Realizacja praktyczna:

  1. Odpalamy Terminal.
  2. Wklepujemy man pmset.
  3. Czytamy fragment:
hibernatemode takes a bitfield argument defining SafeSleep behavior.
Passing 0 disables SafeSleep altogether, forcing the computer into
a regular sleep.

(…)

hibernatemode = 0 (binary 0000) by default on supported desktops. The
 system will not back memory up to persistent storage. The system must
 wake from the contents of memory; the system will lose context on power
 loss. This is, historically, plain old sleep.

hibernatemode = 3 (binary 0011) by default on supported portables. The
 system will store a copy of memory to persistent storage (the disk), and
 will power memory during sleep. The system will wake from memory, unless
 a power loss forces it to restore from disk image.

hibernatemode = 25 (binary 0001 1001) is only settable via pmset. The
 system will store a copy of memory to persistent storage (the disk), and
 will remove power to memory. The system will restore from disk image. If
 you want "hibernation" - slower sleeps, slower wakes, and better battery
 life, you should use this setting.
  1. Lektura manuala wskazuje na opcję hibernatemode = 25
  2. Ustawiamy więc tę opcję w Terminalu: sudo pmset -a hibernatemode 25
  3. Gotowe 🙂
  4. Od tej chwili funkcja usypiania, będzie zrzucała na dysk zawartość pamięci RAM systemu i całkowicie odłączała zasilenie komputera.
  5. Wybudzenie będzie możliwe poprzez naciśnięcie przycisku zasilania 🙂

 

Zostaw odpowiedź

Ta strona używa Akismet do redukcji spamu. Dowiedz się, w jaki sposób przetwarzane są dane Twoich komentarzy.