18

I know that when you put your Mac laptop to sleep and the battery dies, next time you plug it in it will wake up from the state it was prior to being put to sleep. There are also hacks to get this behavior with a desktop Mac (except it triggers when you put the Mac to sleep and unplug it).

Is there a way to trigger this behavior without cutting power, and that will still let me put my Mac to sleep normally? Like Windows 7's Hibernate option.

13
  • 5
    Damn. I thought I could use this to switch between OS X and Windows efficiently, but the boot loader won't let you boot on anything else than Mac OS if it's been put in hibernation.
    – zneak
    Commented Aug 23, 2010 at 1:21
  • 1
    I think for you it's better to use parallels Desktop. it's really good software and make you able to boot your install windows on your mac.
    – Am1rr3zA
    Commented Aug 23, 2010 at 1:43
  • 2
    @Am1rr3zA: it's totally playable under OS X for sure. However, with my current-gen MacBook Pro under Windows I can put the game in 1680x1050 with graphics somewhere above medium and still get a smooth 60+ frames per second, and it never drops below that. Under Mac OS, with the same settings, things aren't smooth. So it's good for you if you like Starcraft II under Mac OS, but until Apple or NVidia or whoever's responsible does some serious efforts at making the graphics drivers better, I'll play it under Windows because there is a very noticeable difference.
    – zneak
    Commented Aug 23, 2010 at 7:23
  • 3
    The reason the bootloader will not let you boot into something else when there is a hibernate image is that the hibernated version of the kernel may have references to blocks on the disk, and if you boot into another OS it wouldn't know that, which means it could modify the disk. When the hibernated OS was thawed it would then potentially write out its dirty buffers to the disk on top of blocks that had already been modified, leading to disk corruption. Fundamentally, it is never safe to thaw a hibernation if there is a chance the filesystem it is rooted off has been modified. Commented Aug 24, 2010 at 8:09
  • 1
    @Louis Gerbarg: I didn't think about that (probably because Windows can't write to Mac OS files), but that seems like a good reason.
    – zneak
    Commented Aug 24, 2010 at 17:31

3 Answers 3

6

Yes, of course you can. I myself use Deep Sleep widget (second link) to put my Macbook Pro into hibernation.

And if you prefer to use the command line, read this article.

alt text

1
14

You could use DeepSleep.

I know this is a widget, but if you want an application, do the following :

  1. Download the widget and uncompress the zip file containing it, but do not install it.

  2. Right-click on the widget, the select Show Package Contents.

    right click

  3. Copy the DeepSleep Application where you want.

    alt text

5

There is a pref pane called smart sleep that is pretty good

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .