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.

zneak
  • 2,996
  • 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 Aug 23 '10 at 01: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 Aug 23 '10 at 01:43
  • @Am1rr3zA: I already have VMWare Fusion, that I use for work-related stuff. The reason I want to boot my machine on Windows is to play Starcraft 2, because performances on OS X are far below those of Windows. – zneak Aug 23 '10 at 02:44
  • I am glad you plat Starcraft II, I am a big fan of blizzard too but I get starcraft for OS X and don't have your problem :P – Am1rr3zA Aug 23 '10 at 02:47
  • 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 Aug 23 '10 at 07: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. – Louis Gerbarg Aug 24 '10 at 08: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 Aug 24 '10 at 17:31
  • There are 3rd party Windows drivers that can read and write HFS+, as can Linux, or a second OS X install. The firmware doesn't know what will happen once it boots the OS, all it can tell is whether or not it is booting off the same partition it booted off the last time. – Louis Gerbarg Aug 24 '10 at 20:14
  • @Louis Gerbarg: Yeah, I know that. It should have read "My Windows installation". – zneak Aug 25 '10 at 02:15
  • http://apple.stackexchange.com/questions/400/mac-os-x-hidden-features-and-nice-tips-tricks/1573#1573 – Nippysaurus Sep 17 '10 at 23:46
  • @Nippysaurus Thank you, but this question is about 3 weeks older than the answer you point to. – zneak Sep 18 '10 at 00:17
  • I've done some research on this. Check it out here: http://superuser.com/questions/432838/hibernate-between-os-x-and-bootcamp-win-7 –  Jun 06 '12 at 13:12
  • 1
    @zneak — Three weeks older, so what ? – Nicolas Barbulesco Jan 21 '14 at 20:57

3 Answers3

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

Studer
  • 8,779
  • 5
  • 38
  • 38
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

Matt
  • 143
Am1rr3zA
  • 13,219
  • 14
  • 68
  • 88
5

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

Simon
  • 7,451
Avi
  • 81