Macbook Pro waking up early mornings (and waking me up). Lid closed, nothing plugged in.

My Macbook Pro 2012 often wakes up during the night, regularly around midnight, and 7am. The optical drive makes that whirring noise, so it often wakes me up, which as you might imagine, irks. Can anyone figure out what's causing it, and how to stop it?? I've searched for hours for an explanation or solution to no avail.


The lid remains closed. Nothing is plugged in to it. Bluetooth is normally off.

Energy Saver > Schedule > Start up or Wake is off.

MacOS Mojave 10.14.6, but it happened on the previous OSs too.


I tried this, to no effect (proposed elsewhere as a possible solution):

Date & Time > Disable/Uncheck: Set date and time automatically


Wake Reason in the log is "RTC (Alarm)". system.log includes "SIGALRM" but I don't know to what that refers.



log show |grep -i "Wake reason"

...
2020-04-27 21:11:03.405282+0100 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: EC.SleepTimer (SleepTimer)
2020-04-27 21:11:03.405285+0100 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: EC.SleepTimer (SleepTimer)
2020-04-27 22:00:34.042351+0100 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2020-04-27 22:00:34.042354+0100 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2020-04-28 06:50:21.641526+0100 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2020-04-28 06:50:21.641529+0100 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)



Console app > system.log

at the time of the last wake has:


Apr 28 06:49:42 richs-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.sandboxd[93677]): Service exited due to SIGALRM | sent by kernel_task[0]
Apr 28 06:49:42 richs-MacBook-Pro syslogd[42]: ASL Sender Statistics
Apr 28 06:49:47 richs-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.bsd.dirhelper[94074]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.bsd.dirhelper
Apr 28 06:49:48 richs-MacBook-Pro systemstats[54]: assertion failed: 18G4032: systemstats + 668620 [...]: 0x7feb7be072b0
Apr 28 06:49:52 richs-MacBook-Pro xpcproxy[94086]: libcoreservices: _dirhelper_userdir: 529: bootstrap_look_up returned (ipc/send) invalid destination port



This is as far as I have been able to get; the system.log reads rather gibberish to me.


I rarely use the optical drive, so a workaround could be to temporarily disable/silence it, so long as I could easily turn it back on when needed.


Thanks for any help.

MacBook Pro 13", 10.14

Posted on Apr 28, 2020 3:55 AM

Reply

Similar questions

6 replies

Apr 28, 2020 1:28 PM in response to leroydouglas

Do you have a Bluetooth device paired to your Mac. While less likely in your situation, there are reports of people with a Mac in a backpack staying powered on, because they also had a Bluetooth mouse with one of the buttons compressed in the backpack as well.


Do you have Internet Sharing enabled?


Do you have Wake for network access enabled? I have a backup server running Carbon Copy Cloner, and it will send a network wake packet to each laptop it is about to backup over night. Even Macs with their lids closed get backed up, as long as they have power.


I you have an Apple TV or an Apple Airport Extreme they have the ability to act as a Bonjour Proxy, and if they see a network request addressed to your Mac, they will send the network wake packet to your Mac so that it can address the network request that the Apple TV or Airport Extreme saw.


Do you have any scheduled wake up events. System Preferences -> Energy Saver -> Schedule. Also

Applications -> Utilities -> Terminal

pmset -g sched

can show if there are any scheduled wake events.

Apr 29, 2020 12:16 AM in response to BobHarris

Thanks for the checklist Bob.


Bluetooth was off last night. There are only 2 paired devices, and they are definitely off and out of range.


System Preferences > Sharing

everything is turned off, including Internet Sharing.


The option "Wake for network access" in System Preferences > Energy Saver is only available under the "Power Adapter" tab, it is not there on the "Battery" tab, implying that it only applies when the laptop is connected to the power. However, I unchecked it just to be sure.


System Preferences > Energy Saver > Schedule

nothing checked.


pmset -g sched

gives no output.


No Apple TV.

Backup is by Time Machine to an Airport Time Capsule.


Last night there were 2 RTC (Alarm)


2020-04-28 22:19:45.135758+0100 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2020-04-28 22:19:45.135761+0100 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2020-04-29 06:07:24.573348+0100 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)
2020-04-29 06:07:24.573350+0100 0x74       Default     0x0                  0      0    kernel: (AppleACPIPlatform) AppleACPIPlatformPower Wake reason: RTC (Alarm)


and SIGALRM in System.log


Apr 29 06:06:47 richs-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.sandboxd[4468]): Service exited due to SIGALRM | sent by kernel_task[0]
Apr 29 06:06:47 richs-MacBook-Pro syslogd[42]: ASL Sender Statistics
Apr 29 06:06:49 richs-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Apr 29 06:06:55 richs-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.bsd.dirhelper[4547]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.bsd.dirhelper
Apr 29 06:06:55 richs-MacBook-Pro systemstats[54]: assertion failed: 18G4032: systemstats + 668620 [...]: 0x7feb7be072b0
Apr 29 06:07:01 richs-MacBook-Pro xpcproxy[4564]: libcoreservices: _dirhelper_userdir: 529: bootstrap_look_up returned (ipc/send) invalid destination port



I could try turning off Wi-Fi to narrow the possible causes, unless anyone knows a more specific way, or can make sense of the log, or there are any other suggestions?

Apr 29, 2020 6:49 AM in response to Richard_Green

FYI: A TimeCapsule is an Airport Extreme router, so it also provides Bonjojur Proxy services. But you turned off the "Wake for Network Access", so that should not matter.


Looking at the logs you provided, I'm assuming that there is a launchd task that wants to be woken up. Maybe some maintenance services getting run in the middle of the night.


I do not play with launchd or launchctl much (if ever). The only app I'm aware of that makes looking at launchd and launchctl tasks is Lingon <https://www.peterborgapps.com/lingon>, but it is a for pay app. I do not know if it as a trial period or not.


I'm sure you can look at them manually, or with Xcode, I just am too weak in this area to give good advice.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Macbook Pro waking up early mornings (and waking me up). Lid closed, nothing plugged in.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.