For a couple of weeks, my Mac has been going to sleep by itself. This seems to happen more often when I'm running more stuff on my Mac (Chrome + Spotify + etc…)
In my console, the message is the following:
1/4/15 7:24:04.793 PM coreaudiod[293]: 2015-01-04 07:24:04.792840 PM [AirPlay] Power: SystemWillSleep
Followed by:
1/4/15 7:24:04.794 PM coreaudiod[293]: 2015-01-04 07:24:04.794130 PM [AirPlay] BTLE client stopping to browse for AirPlay Solo Target Presence.
1/4/15 7:24:04.795 PM coreaudiod[293]: 2015-01-04 07:24:04.795289 PM [AirPlay] BTLE discovery removing all devices
This seems to have some sort of correlation with watchdog
, a daemon process on my mac (In this case it's happening after, but it's usually before).
1/4/15 7:24:04.800 PM watchdogd[7673]: [watchdog_daemon] @( pm_callback) - ref=0x0 msg_type=0xe0000280 msg=0x570033
1/4/15 7:24:04.800 PM watchdogd[7673]: [watchdog_daemon] @( wd_daemon_thread) - events buffer: 6329r81941 6779s81941
1/4/15 7:24:04.838 PM watchdogd[7673]: [watchdog_daemon] @( pm_callback) - ref=0x0 msg_type=0xe0000320 msg=0x0
1/4/15 7:24:04.838 PM watchdogd[7673]: [watchdog_daemon] @( pm_callback) - ref=0x0 msg_type=0xe0000300 msg=0x0
Here are some more logs:
The SystemWillSleep
messages:
Watchdog Processes:
Full Log for 7:12 PM:
Some system information: MacBook Pro (Retina, 13 inch, Late 2013) running Yosemite.
Best Answer
Here is the readout from your logs.
Your BTLE (Bluetooth low energy) is shutting down (normal ?)
The
watchdogd
is shutting down the corresponding processes, but is is not meant to shut down your system.The
SystemWillSleep
is for thecoreaudiod
, due to the airplay shutting down, it does not mean the OS X shutting down.All of the above is happening because the OS X received the sleep command (they happen after the command was issued).
The OS X will sleep if you have something like
kernel[0]: sleep
and more info can be found
New logs show:
Your system did enter the sleep mode.
It was woken up by the RTC Alarm. Check your Energy Saver settings-
It was woken up by the WOMP since it is enabled (Wake On Magic Packet) a network.
To see all wake up reasons use
syslog |grep -i "Wake reason"
in your Terminal.So far your system is not acting strange, just doing what you asked it to do. The "restarts" you are referring to are the wakes ups from sleep mode. There is no log entry showing that the system has restarted.
If it did the restart then you would see for example: