Hibernate/Sleep problem Whenever my MBP 9.1 is in sleep mode and plugged in and I unplug the charger, machine turns on and stays on for about 2 minutes and then gets to sleep again.

Is there something I can change so when it's in sleep mode and I unplug or plug charger, stays at that state and doesn't hibernate or hybrid sleep or whatever it's name is given by Apple?

I basically want to disable hibernate altogether by automatic means.

My OS X version is 10.9.4.

Thanks.
Go to System Preferences > Energy Saver. Change the sleep settings for both on Battery and While charinging.


Alternatively you could use NoSleep to make sure your MBP never goes to sleep.