DescubreApple

Apple, Mac, iPhone, iPad

Resources

Hibernating MacBook / MacBook Pro

sleepYou’ve probably already read about this topic on other sites… But since I haven’t come across a clear tutorial in Spanish, I’m going to tell you a bit about it, adding my own personal experience.

Sleep, hibernate

For many of you who have a laptop, this topic will feel very familiar… You go from one place to another, using your laptop, and sometimes you have to rush off… leaving everything you were doing on the computer half-finished…

MacBook/PowerBook computers since OS X 10.4.3 have “Safe Sleep” enabled… some of you will already know what it is, and others will be thinking “What’s that??”

The Mac has several “levels” of sleep. In the first of them (when we close the laptop lid or choose sleep) the computer enters a low-power mode, turning off the screen, stopping the hard drive… It’s almost instantaneous… When waking up, the Mac will be just as we left it, with the documents we were working on still open, and so on. For example, this would be useful if we need to move from one room to another or leave the laptop while we go for a coffee.

In sleep mode very little power is consumed, but the laptop remains on and will eventually run out of battery. Before that happens, the system activates hibernation mode. In this mode, the contents of RAM are written to a temporary file on the hard drive (we will need to have free space on the disk equal to the amount of RAM we have), and then the OS shuts the computer down. This way no battery is consumed. In practical terms the Mac will be off. We can put it in its bag, move it… we can leave it like this for as long as necessary, until we can plug it in. When we turn it on, the OS recovers the temporary file it created earlier and loads it back into RAM, once again restoring our session with everything we were doing at that moment.

Some people prefer the Mac to go straight into this state by default, without going to sleep first. That is, when we close the Mac’s lid, it enters safe sleep, saving the session to the hard drive and shutting down completely, so as not to drain the battery.

The advantage of hibernating over sleeping is the considerable battery saving it provides. The main disadvantage is that it takes longer to turn on the Mac from a hibernation state than from sleep (10-15 seconds vs. 1-2 seconds, depending on the amount of RAM).

And if we compare it with shutting the Mac down completely, the advantage of both sleep modes is that we don’t have to reopen the programs and documents we were working on.

Warning: the procedures described below are basically OS X “hacks”. They may not work as expected 100% of the time. Although they generally shouldn’t cause problems, users are advised to be careful when applying them.

On MacBooks there is a way to enable Safe Sleep mode, or a mode in which the Mac “hibernates” directly when the lid is closed.

To enable Safe Sleep we must open a Terminal (it’s in the Applications > Utilities folder) and copy this into the Terminal window:

sudo pmset -a hibernatemode 3

Press Enter and the computer will probably ask us to enter our administrator password.

With this option enabled, the Mac will go to sleep when the lid is closed, and if the battery is about to run out, it will hibernate.

If we want the Mac to hibernate directly, again in Terminal, we must type:

sudo pmset -a hibernatemode 1

With this one enabled, when the lid is closed the Mac will save what we are doing and shut down.

If we want to disable both options, in Terminal:

sudo pmset -a hibernatemode 0

If you want to check whether hibernation mode is working, close the MacBook lid. The white LED on the front will flash for a few seconds and then turn off. When you press the power button, the desktop you were using will appear on screen, but in grayscale, along with a small progress bar indicating that the session is being restored.

If you need more extensive information about these modes or how to enable them on older Macs, I recommend visiting “How to Safe Sleep (Hibernate)”.

My opinion

Personally, I use the Safe Sleep option all the time. I move around a lot with my laptop and I usually like to “close it and forget about it”, knowing I won’t lose what I was doing. For me it’s faster than making sure I’ve bookmarked all the pages I’m visiting, and saved all the changes in my Photoshop documents, etc. Keep in mind that this is slower than using normal sleep (hibernating takes about 10 seconds and restoring the session up to half a minute).

I must also say that sometimes (very rarely, 2 or 3 times out of the hundreds of times I’ve closed the lid) I’ve had some trouble restoring the session, with the computer freezing when the loading finished.

I hope this guide is useful to those who, like me, want to get the most out of their Mac.

Contributor: Jon

JG

Jaime Gomez

Writes at DescubreApple. Topics: Hardware, Software, Industry. 234 articles published since 2006.

33 comments · Comment

33 comments

  1. y alguna manera de cerrar la tapa del macbook sin que se ponga en ningun tipo de resposo?

  2. Iba a hacer otro artículo sobre cerrar la tapa con el mac encendido…
    pero ya que ha salido el comentario aquí:

    necesitas InsomniaX
    http://www.macupdate.com/info.php/id/22211

    Con este programa puedes evitar que el mac se ponga en reposo cuando cierras la tapa, parecido al “Clamshell” mode que se usa cuando lo tienes conectado a un teclado/ratón/monitor externos.

    En principio (tal como el modo clamshell que esta soportado por Apple) no hay peligro de que se estropee el portatil, pero no se te ocurra meterlo asi encendido en una bolsa/mochila porque seguro que se te frie…

  3. Yo suelo usar el InsomniaX…

    Mientras no dejes el mac asi dentro de una mochila o bolsa…. no tapes los orificios de ventilacion posteriores

    En principio no deberia darle ningun problema al mac… En el modo clamshell (cuando lo tienes cerrado conectado a un monitor/teclado/ratón externos) no da ningun problema y esta soportado por Apple…

  4. Yo normalmente utilizo la suspensión normal ya que es mucho más comoda y es más rapida a la hora de volver a trabajar.

    Pero si me tengo que mover o dejar el portail con algun trabajo importante al que se que no voy a volver despues de varias horas utilizo este SafeSleep1.0 (http://www.macupdate.com/info.php/id/25065), que viene a hacer lo mismo que has explicado en este artículo pero con un menu y es mucho más facil de ejecutar en conbinación con quicksilver.

    Saludos!

  5. Hola.

    Excelente post, en estos días probé una aplicación que me permitía apagar la mac en modo seguro, tuve unos problemas, pues al salir del modo seguro una vez me ha dejado prendido el bluetooth…. han visto esto antes???.

    Ahora uso el modo seguro con la línea de comando y al cerrar la tapa se entra en este modo.

  6. yo tengo otro problema no encuentro la puñetera terminal en utilidades en aplicaciones no sale nada carpeta vacia :S

  7. mi macbook pro intel core duo desde hace unos dias cuando cierro mi lap y al abrirla se reinicia y no he podido arreglar este problema ni con los comandos que aqui se explican, les agredecere si me ayudan gracias

  8. @yamir A mi me pasaba lo mismo que a tí, después empezo a sucederme lo siguiente: de vez en cuando dejaba el portatil y me iba a dar una vuelta, cuando volvía se había suspendido, y por consiguiente reiniciado solo…

    La solución fue reinstalar el osx, y la verdad es que me sorprendió el hecho de que, al contrario q windows, me había conservado la instalación anterior perfecta y con todo como estaba.

    Suerte

  9. Pingback: Anonymous
  10. Interesante pero me gustaría saber si poner el mac en reposo le crea problemas, porque recuerdo que hubo un epoca que dejaba un pc en hibernar y se me daño super rápido una de las memorias que tenía, ya que tenia una de 512 y 2 de 256, en fin que se me dañó una de 256, pasa algo con el mac???

  11. Excelente este post, y muy interesante. Soy nuevo en este fabuloso mundo Mac, y tengo una Macbook Aluminium de las últimas, y me pasa lo siguiente:
    La mando a modo de REPOSO, cierro la tapa, y al volver a abrirla unas horas después , siento que el disco duro funciona, pero no me sale el video en pantallla, pareciera que funciona todo, menos el video en pantalla. Tengo que apagarla aplastando el boton, y despues la vuelvo a encender, y todo normal, tengo ya video, alguien me puede ayudar diciendome que pasa?. Me ha sucedido como dos veces en dos meses. les agradecería ayudandome a solucionar esto. Gracias

  12. hola, tengo una pregunta, hace dos dias olvide que puse mi mac en “sleep” y la deje asi por dos dias… pense q la habia apagado, pero hoy al abrirla veo que a estado en sleep, le puede pasar algo por dejarle mucho tiempo en esta opcion?
    un saludo

  13. Hola,

    Recien tengo una MacPro y tengo un problema para intentar sacarla del modo de suspencion por mas que haga no logro “despertarla” y despues de unos minutos comienza a hacer ruido que crees que estoy haciendo mal?

    Saludos y gracias.
    BalamQas

  14. hola a todos!
    Si alguien pudiera auxliarme, soy nueva en el mundo de las mac, tengo un macbook de las blancas con mac ox 10.5.6 mmm lo que sucede es que cuando meto un disco para ver una pelicula, (no con todos pasa lo mismo) ya estoy viendo mi pelicula, pero unos minutos despues se pone mi pantalla en negro y tengo que mover el mouse para que deje de estar en negro y siga viendo la pelicula, segun yo ya le movi por aquello de protector de pantalla o algo asi, pero nada… sigue igual y no sé cómo hacerle si alguien pudiera ayudarme se lo agradezco. Porq no entiendo porq lo hace en un par de minutos si segun yo ya le puse q lo haga en 99 minutos, entonces estoy confundida, espero que sea error de usuario y q no le pase nada a mi mac.

  15. hola, resulta que cuando bajo la tapa de mi macbook pro, entra en reposo pero al cabo de unos cuantos segundos, como en unos 15. Si bajo y abro la tapa rápidamente, la pantalla sigue encendida y entra en reposo con la tapa abierta, se queda en negro y luego vuelve él solo a activarse, (pero con la tapa abierta)
    no sé si me he explicado.

    antes esto no lo hacía y entraba en reposo de manera normal.

  16. Muy buen articulo muchas gracias, quería saber si es posible encender un macbook pro solo abriendo la tapa, se que vuelve a prenderse en caso de que este hibernando o en reposo, pero si esta completamente apagado, puedo prenderlo así?

  17. Buen artículo, lo guardo porque estas cosas está bien tenerlas a mano.

    Me compré un Macbook Pro 13″ (mid 2011) y cuando se le acaba la batería, en lugar de entrar en suspensión entra directamente en hibernación. ¿Hay alguna forma de cambiar esto?

    Yo quiero que mi Macbook cuando se le acabe la batería, entre en suspensión y así al enchufarlo poder volver rápido a donde estaba.

  18. acabo de estrenar mi mac pro 13 finales del 11, y es algo tedioso que cuando la cierro, al siguiente día encuentro con que la batería le ha bajado bastante, también tengo una macbook air de 13, y puede estar cerrada por semanas literalmente y su batería sigue con la misma carga

  19. Pingback: Education
  20. Pingback: emtec-group
🇬🇧 EN