Archive for June, 2006

Moving the hibernate image file on a MacBookPro…

Thursday, June 8th, 2006

So I like to partition my Macs so that my user directory is on a different partition to the system drive.
I got kind of frustrated when I got my MacBook Pro and realised that due to having 2Gb of RAM, the hibernate settings by default were taking up an extra 2Gb on my system partition with the sleep image file at /var/vm/sleepimage.

After poking around with pmset for a while, I realised that you can move the image file…

sudo pmset -a hibernatefile /Volumes/OtherVolume/sleepimage

Then trash /var/vm/sleepimage, and all seems hunky-dory…

There are some other useful settings I’ve seen people mention on the web, like setting:

sudo pmset -a  hibernatemode x

Where x is an integer meaning:

  • 0 – disable hibernate mode.
  • 1 – hibernate when shutting the lid instead of sleeping.
  • 3 – normal hibernate settings.
  • 5 – hibernate when shutting the lid instead of sleeping (with secure virtual memory turned on)
  • 7 – normal hibernate settings (with secure virtual memory turned on)

I wonder what the even numbers do…