After being annoyed for the last year that my MacBook Pro was eating up my battery life while in hibernation, I finally chose to investigate the matter further. Several articles describe the pmset command (here is one), but to make a long story short I wrote a script that will let my Mac enter hibernation mode (suspend to disk) immediately, without altering the settings (permanently at least).
I uploaded it to pastebin to increase the chances of it being spread. Link.
It should be pretty self explanatory, but to sum it up it does the following:
- Back up your existing hibernation settings
- Sets new ones that will suspend to disk and then cut power (not keeping any power to RAM)
- Hibernates (and shuts off)
- On power on, it restores the previous settings
If you find it useful, drop me a comment. Maybe I could make this into a small systray utility some day if someone finds it useful.