The Mac must be powered on to run your script. Only a few Apple specific processes are allowed to run via PowerNap.
You can use pmset to schedule your Mac to wake in the middle of the night.
pmset allows you to schedule system sleep, shutdown, wakeup and/or power on. "schedule" is for setting up one-time power events, and "repeat" is for setting ...
Your MacBook will normally always go to sleep when you close the lid, and that unfortunately will stop the music playing.
But there is a way to stop your Mac from going to sleep when you close the lid with a simple shell command.
Disable sleeping when lid is closed:
sudo pmset -a disablesleep 1
Re-enable sleeping when lid is closed:
sudo pmset -a ...
Do not blindly start typing copying/pasting stuff into the prompt without knowing what you're doing this could seriously hinder performance or destroy your system!!
Fire up a terminal window either through cmd+space and typing into spotlight Terminal.app or Finder > Applications > Utilities > Terminal
I'd modify the energy settings via pmset.You can get ...
Your setting of hybernate mode is the one to achieve exactly what you described.
But you are correct. I use this setting since many years and through many versions of MacOS (Yosemite, El Capitan, Sierra & High Sierra).
From memory I reported many times the same problem to Apple about this mode failing on output of hibernation when the battery was nearly ...
I'd say "Nothing". Assuming there is an defective battery, you can't 'manage' its safety with any specific behaviour. It could fail and overheat while in use, or while charging.
The odd recall notwithstanding, Apple has worked very hard at making laptops use minimal power when closed, while also allowing some necessary background tasks; and then letting ...
Run diagnostics on the Mac as follows:
Disconnect all external devices
Go to Apple Menu —> Restart
Immediately press and hold down the D key while your Mac restarts
Keep holding the D key until you see the screen listing different languages appears
Click English. Apple Diagnostics starts automatically.
Common results could be:
Wi-Fi — a failure of the ...
As you stated in your post, this is a feature of various 2016 (and later) MacBook models, it is not supported on your 2013 MacBook Air.
I suppose you could get into the habit of putting your MBA to sleep instead of shutting it down, as this would mean it'd start fairly quickly upon opening the lid, but of course that's not the same as auto boot.
You could install blueutil and SleepWatcher via homebrew and set a .sleep code to call blueutil in order to disable bluetooth and call "networksetup -setairportpower en0 off" to disable wifi when going to sleep mode or closing the lid.
Blueutil comands are "/usr/local/bin/blueutil -p 0" to disable bluetooth and blueutil -p 1 to enable it.
To use ...
To prevent mac from sleeping. First and foremost, know what's preventing a normal sleep with a command $ pmset -g assertions You will receive a console output as:
2019-08-25 20:51:34 +0545
Assertion status system-wide:
A simple way would be install a GUI app. A good one is KeepingYouAwake. This app is a GUI front-end to caffeinate command. It's very simple to install and configure, and keeps your computer from sleeping.
You can install it via Homebrew by running:
brew cask install keepingyouawake
If you don't have Homebrew installed, you can follow the instructions to ...
Broadly speaking, what I would do next is as follows:
1. Quit all applications and put the MBP to sleep overnight. Then,
If it's still draining battery power significantly, it's time to reset the System Management Controller (see below)
If it didn't drain the battery much during the night, then proceed the following night with only two or three apps ...
Had the same issue on MBP 15" 2013 since upgrading to Mojave: macbook restarts each time if left to sleep on battery power (no issues when connected to the grid), Apple support silent. Caught exact error message upon reboot:
Sleep transition timed out after 180 seconds while creating hibernation file or while calling rootDomain's clients about upcoming ...