For now lets just focus on the MacBook.
Too bad; the iMac might be simpler. It has no battery, and it's older, so has fewer power-management capabilities.
Code:
Active Profiles:
Battery Power -1
AC Power -1*
Currently in use:
standbydelay 4200
standby 1
womp 0
halfdim 1
hibernatefile /var/vm/sleepimage
darkwakes 0
networkoversleep 0
disksleep 0
sleep 0 (sleep prevented by 276)
autopoweroffdelay 14400
hibernatemode 3
autopoweroff 1
ttyskeepawake 1
displaysleep 2
acwake 0
lidwake 1
Running on power with full battery (MacBook), I shutdown the computer (leaving the lid open). After shutdown completes, I switch off the power strip. In the morning, I first turn on the power strip. At that time, the MacBook (and iMac) startup without me doing anything else. (I didn't press power button)
First, thanks for posting that. I don't see anything specific that looks liike it would wake it when the charger is applied. The battery profile might show something different, so please copy & paste this command into a Terminal window, then copy and paste complete output into a reply:
Second, although I see nothing specific, you could try a "shotgun" approach. This will turn off several power-management parameters and see if it makes a difference when you leave it overnite. If it doesn't, you can revert to the originals. If there is a difference, we can turn them back on one by one until the culprit is found.
To do this, you must first be logged in using an admin account. If not, do that first. Then launch Terminal.
Next, copy & paste this command into a Terminal window:
Code:
sudo pmset -a standby 0 acwake 0 autopoweroff 0 lidwake 0
It will ask you for a password. (If you've never used 'sudo' before, you'll also see a warning followed by the request for password.) Enter your admin password. Nothing appears in Terminal while entering the password (no echo). When password entry is done, press the RETURN key.
You can confirm that the new settings were stored with this command:
It should show the names with new values.
Finally, please do an experiment:
1. Shutdown the MacBook as usually done.
2. Turn off the power-strip as usually done.
3. In the morning,
leave the power-strip off, and press the power-button on the MacBook.
4. After it starts, and is showing a battery reading, what is the battery percent-charged number?
5. You can turn on the power-strip after getting the battery reading.
----------
Try entering this command into terminal:
From 'man pmset':
pmset must be run as root in order to modify any settings.
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/pmset.1.html