I am looking for a way to hibernate (i.e. RAM saved to HDD then turned off) only when closing the lid. When the lid is opened, I expect OSX to simply turn off the screen after X minutes (i.e. everything keeps running). Mostly what a Windows PC does out of the box.
pmset
does not seem to make possible controlling what happens when closing the lid.
Best Answer
Hibernate only (not sleep) when closing the lid:
And to go back to "normal" behavior:
As for the sleep behavior with an open lid, just slide the Computer sleep timer to
Never
in System Preferences > Energy Saver. Alternatively do