MacOS – Why doesn’t the MacBook Air turn off

google-chromemacbook promacossleep-wake

I have a MacBook Air that the lid I left open. The screen was still on when I left it. In System Preferences, I set it to turn off the display and sleep after 10 minutes. But it didn't turn off. I know that because the next morning, all the battery ran out. Why didn't it sleep like the MacBook Air is supposed to?

EDIT: This is the result of the pmset- g command in Terminal.

Active Profiles: 
Battery Power -1 
AC Power 2* 

Currently in use: 

standbydelay 4200 

standby 1 

womp 1 

halfdim 1 

hibernatefile /var/vm/sleepimage 

darkwakes 1 

networkoversleep 0 

disksleep 10 

sleep 10 (sleep prevented by coreaudiod) 

hibernatemode 3 

ttyskeepawake 1 

displaysleep 10 

acwake 0 

lidwake 1 –

Best Answer

If you run following command in the Terminal app it will show you what keep it from sleeping.

pmset -g assertions

Then based on the result you can take a action.

Here is a example:

pid 251(coreaudiod): [0x0000000100000d01] 00:17:27 NoIdleSleepAssertion named: "com.apple.audio.'AppleHDAEngineOutput:1B,0,1,1:0'.noidlesleep" 
pid 251(coreaudiod): [0x0000000100000929] 01:11:47 NoIdleSleepAssertion named: "com.apple.audio.'BoomEngine:0'.noidlesleep"

In this case it was the "BoomEngine app" preventing the sleep.

In your case:

You have the "magicwake" which is keeping it from sleeping.

That could be a Bluetoot coming from headset or external keyboard(track pad), or the battery is low.

It could be also a app that you installed that would wake up on network access.