10 Replies Latest reply: Jul 26, 2006 3:13 PM by JimUrban
didgy Level 1 Level 1 (0 points)
hi there just come across from windows all these years and as u can see in my previous post im having trouble with my mac, but one other question i must ask is that is it possible to stop the computer going into hibernation when i put the lid down on the machine??ive looked in the places that i think it would be but to no avail

thanks

dan

mac bookpro, Mac OS X (10.4.7)
  • 1. Re: how do you turn off hibernation
    Phil Lanzisera Level 2 Level 2 (270 points)
    Your machine does not go into hibernation. It goes into sleep. Hibernation is a process on many window's machines in which the current state is saved to disk and then reloaded up waking from hibernation. Sleep states also exist on window's machines, and they are the same as what is happening on the Mac. The execution of the various processes that are active is suspended and only enough power is consumed as is needed to keep the ram active. Upon awakening, the execution is resumed. As a result, the awakening is almost instantaneous. In hibernation, the machine has to reload the state from disk, and that can take considerably longer. The advantage of hibernation is that it requires even less power than does sleep; the disadvantage is that it takes longer to wake up. Apple doesn't have hibernation built-in.

    Now to the question itself, I know of no way to turn off the system's putting the machine to sleep when the top is closed except if you have it connected to an external monitor and keyboard. In that case, it won't go to sleep. There may be a third-party app that can do it. At the same time, I don't know why you'd want to prevent it from going to sleep.
  • 2. Re: how do you turn off hibernation
    ravuya Level 2 Level 2 (425 points)
    You can install some third-party applications like Sleepless or NoDoz, which will keep your computer from falling asleep when the lid is shut.
  • 3. Re: how do you turn off hibernation
    didgy Level 1 Level 1 (0 points)
    the only reason i ask is that sometimes ive been downloading a torrent using tomato and ive closed the lid and the connection to the internet seemed to have dropped and the torrent would stop downloading and sometimes if i go out its just a pain to come back and find out that its not finished

    thanks ill have a look at these apps when the comp is sorted

    n e chance somebody could recommend me a good antivurs software??

    dan
  • 4. Re: how do you turn off hibernation
    Orcinus Level 2 Level 2 (210 points)
    Sure it's possible...
    Do this in terminal:

    sudo pmset -a hibernatemode 0

    You'll notice if it worked by your machine going to sleep faster when you close down the lid. If you ever want to switch it on again, type in the same command, but replace the "0" with "3". "1" forces it to always go to hibernate instead of regular sleep.
  • 5. Re: how do you turn off hibernation
    ravuya Level 2 Level 2 (425 points)
    I think he means what we call "Sleep" mode (e.g. Windows Standby), not the actual PMU "Hibernate" function.
  • 6. Re: how do you turn off hibernation
    Orcinus Level 2 Level 2 (210 points)
    If you want to disable the regular sleep, easiest way is to enable file sharing and keep another machine connected to a share

    Also, you can keep an external screen and keyboard or mouse connected to it and it won't go to sleep when you close it.

    There are also utilities like Doze, InsomniaX, NoSleep and SleepLess.

    You might find Bandwidth Sleeper useful as well.
  • 7. Re: how do you turn off hibernation
    Orcinus Level 2 Level 2 (210 points)
    Yep, got that, thanks...
    I've added a post describing sleep prevention above.
  • 8. Re: how do you turn off hibernation
    val3ntin3s Level 1 Level 1 (15 points)
    Sure it's possible...
    Do this in terminal:

    sudo pmset -a hibernatemode 0

    You'll notice if it worked by your machine going to
    sleep faster when you close down the lid. If you ever
    want to switch it on again, type in the same command,
    but replace the "0" with "3". "1" forces it to
    always go to hibernate instead of regular
    sleep.



    so wait be default its on 3? and if you change it to 0 it sleeps faster? wouldn't 0 be better than 3 then? or did you mean 0 turns off the sleep option?
  • 9. Re: how do you turn off hibernation
    Orcinus Level 2 Level 2 (210 points)
    On "3" it dumps a RAM image to your hard rive each time it goes to sleep, just in case it "never wakes up", i.e. looses power supply unexpectedly. If that happens, next time you boot it just loads the RAM image back into RAM and "continues from where it left off".

    On "0" it never does that, so if you, for example, pull your battery out and unplug it from AC while it's in sleep, it's as good as shut down and you loose the work you were doing before the sleep.

    Edit: Hope i'm making sense here - my written english is a bit messy today
  • 10. Re: how do you turn off hibernation
    JimUrban Level 4 Level 4 (2,590 points)
    "n e chance somebody could recommend me a good antivurs software??"


    None Neccesary.Aint Ya Glad Ya finally got a Mac?


    Jim

    PowerBook G3 500 Mhz "Pismo"/ 2.0Ghz BlackBook 2GB OWC RAM   Mac OS X (10.4.7)