Fast sleep on Mac OS X
By default, my MacBook Pro goes into deep sleep (hibernate) mode when I close the lid. This is nice but I have 8GB of RAM and it is quite a slow process. Furthermore, I never went out of battery during a whole sleep process. So I’m going to avoid dumping my whole RAM content to the SSD disk and save of bit of it:
# pmset -a hibernatemode 0
# rm /var/vm/sleepimage
Should I want to re-enable hibernate mode, I’d run
# pmset -a hibernatemode 3
This enables going in sleep mode in 2 seconds, rather than a minute… w00t!