Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

My Maverics can't sleep!!

Hello.

Everything was working right, but since a week ago my Mac just dont sleep anymore.

The process AddressBookSourceSync just keep preventing my Mac to sleep as you can see bellow.


15/11/13, 23:08:59 WET Showing all currently held IOKit power assertions

Assertion status system-wide:

BackgroundTask 0

PreventDiskIdle 0

ApplePushServiceTask 0

UserIsActive 0

PreventUserIdleDisplaySleep 0

InteractivePushServiceTask 0

PreventSystemSleep 0

ExternalMedia 0

PreventUserIdleSystemSleep 1

NetworkClientActive 0

Listed by owning process:

pid 1048(AddressBookSour): [0x0000000100000162] 00:00:15 PreventUserIdleSystemSleep named: "Address Book Source Sync"

Timeout will fire in 1785 secs Action=TimeoutActionTurnOff

Kernel Assertions: 0x10c=USB,BT-HID,MAGICWAKE

id=501 level=255 0x4=USB mod=15/11/13, 23:14 description=UHC4 owner=AppleUSBUHCI

id=505 level=255 0x100=MAGICWAKE mod=01/01/70, 01:00 description=en0 owner=en0

id=506 level=255 0x8=BT-HID mod=01/01/70, 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard


I even removed my icloud and gmail account from my system but the process just keep starting even if i force it to close.

I even tryed to remove the /Users/coolfx/Library/Application Support/AddressBook folder (i read that on forum elsewhere) and it didnt fix the problem.

What the **** is happening?

Can someone help me pleaseeeeee????

Thanks in advance.

CoolFX

Mac Pro, OS X Mavericks (10.9)

Posted on Nov 15, 2013 3:24 PM

Reply
Question marked as Best reply

Posted on Nov 15, 2013 5:45 PM

Please test after taking each of the following steps.

Step 1


Back up all data.

Triple-click anywhere in the line of text below on this page to select it:

~/Library/Caches/com.apple.AddressBookSourceSync


Right-click or control-click the highlighted line and select


Services Reveal

from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash.

Log out, log back in, and test. If there's no change, go to the next step.

*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select

Go Go to Folder...

from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.


Step 2

If you use iCloud, uncheck the box marked Contacts in the iCloud preference pane. Press return to confirm, or click Keep on Mac in the dialog that opens.

Step 3

From the list of groups on the left side of the Contacts window, select All On My Mac. If that group doesn't exist or is empty, skip this step. Otherwise, from the menu bar, select

File Export Export vCard

Save the exported contacts to the Desktop.


Step 4

Quit Contacts. Reveal the following item in the Finder as you did in Step 1:

~/Library/Application Support/AddressBook

Move the selected folder to the Desktop, leaving the window open for now.

Step 5

Launch Contacts. Your contacts will be gone. If you took Step 3, then double-click the file you created in that step and confirm that you want to import from it. Your contacts will reappear.

Step 6

If you took Step 2, reverse it. Test. If the issue is resolved, delete the AddressBook folder and the vCard file on the Desktop and close the open folder window.

Otherwise, quit Contacts again and put the AddressBook folder back where it was, overwriting the newer one that will have been created in its place. Post your results.

26 replies
Question marked as Best reply

Nov 15, 2013 5:45 PM in response to CoolFX2008

Please test after taking each of the following steps.

Step 1


Back up all data.

Triple-click anywhere in the line of text below on this page to select it:

~/Library/Caches/com.apple.AddressBookSourceSync


Right-click or control-click the highlighted line and select


Services Reveal

from the contextual menu.* A folder should open with an item selected. Move the selected item to the Trash.

Log out, log back in, and test. If there's no change, go to the next step.

*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select

Go Go to Folder...

from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.


Step 2

If you use iCloud, uncheck the box marked Contacts in the iCloud preference pane. Press return to confirm, or click Keep on Mac in the dialog that opens.

Step 3

From the list of groups on the left side of the Contacts window, select All On My Mac. If that group doesn't exist or is empty, skip this step. Otherwise, from the menu bar, select

File Export Export vCard

Save the exported contacts to the Desktop.


Step 4

Quit Contacts. Reveal the following item in the Finder as you did in Step 1:

~/Library/Application Support/AddressBook

Move the selected folder to the Desktop, leaving the window open for now.

Step 5

Launch Contacts. Your contacts will be gone. If you took Step 3, then double-click the file you created in that step and confirm that you want to import from it. Your contacts will reappear.

Step 6

If you took Step 2, reverse it. Test. If the issue is resolved, delete the AddressBook folder and the vCard file on the Desktop and close the open folder window.

Otherwise, quit Contacts again and put the AddressBook folder back where it was, overwriting the newer one that will have been created in its place. Post your results.

Nov 16, 2013 3:58 PM in response to Linc Davis

Well.

I removed that folder on step 1, but no luck.

I had removed my icloud account from my mac before, so i reconfigured my icloud account to try your remaining steps . As soon i reconfigured my icloud account the service AddressBookSourceSync disapeared and my computer start sleeping again.

Maybe that folder i removed on step 1 helped after all. Dont know for sure but thanks for your help. 🙂

Jul 14, 2014 9:55 AM in response to DOKDOR

I’ve tried a lot of things to get rid of the problem. To no avail, until I tried to think (does not hurt, although you could restrict access to this human trait ;-)


My system, when problems existed:


MacBook Pro Retina 13 (late 2012)

OS X Mavericks 10.9.4

Google Contacts enabled

iCloud Contacts disabled

etc...


Every night - and sometimes even when background TimeMachine backups were initiated, the system simply started to sound like a vacuum cleaner, and no login screen was obtainable. In a few cases, it was possible after waiting an eternity, and I discovered several - up to 20-30 - “ManagedClient” processes using all processor resources (balanced among them all - when you killed some of the processes, they just used more processing resources each up to the same total amount).


The system was running wild, but it was mainly noticed because we had unusually high temperatures, also during the night, for a period. Otherwise the computer did not reach the same temperature level and extreme fan noise. In most cases, I had to turn the computer off, and then start again.


The culprit was this:

pid xxxx(AddressBookSour): [0x0000000100000xxx] 00:00:15 PreventUserIdleSystemSleep named: "Address Book Source Sync” Timeout will fire in 1785 secs Action=TimeoutActionTurnOff

The process ID would be altered every 30 seconds or so, and the power control logs would contain horribly many entries like this, when I had started machine again:

14/07/14 12.07.30 CEST Assertions PID 84(apsd) Released InteractivePushServiceTask "com.apple.apsd-login" 00:01:31 id:0xc00000142 [System: PrevIdle DeclUser NetAcc kCPU kDisp]

14/07/14 12.07.34 CEST
Assertions PID 369(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30
id:0x100000173 [System: DeclUser NetAcc kCPU kDisp]

14/07/14 12.08.05 CEST
Assertions PID 370(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30
id:0x100000175 [System: DeclUser NetAcc kCPU kDisp]

14/07/14 12.08.35 CEST
Assertions PID 380(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30
id:0x100000178 [System: DeclUser NetAcc kCPU kDisp]

Note the difference between sync attempts, and the PID change. This behaviour can continue “forever”. Typically until the notebook has been turned off.

14/07/14 13.00.46 CEST   Assertions              PID 653(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30  id:0x100000266 [System: DeclUser NetAcc kCPU kDisp]
14/07/14 13.01.17 CEST   Assertions              PID 661(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30  id:0x100000269 [System: DeclUser NetAcc kCPU kDisp]

14/07/14 13.01.47 CEST Assertions PID 663(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30 id:0x10000026a [System: DeclUser NetAcc kCPU kDisp]

It’s happened for some time now, but I’ve not always had iCloud contacts disabled. So, I tried the following:


  1. Make sure, that iCloud AND Google contacts are switched off on all iPads and Iphones. Answer yes to delete.
  2. Enable iCloud contacts. Let Google contacts be active (they are used to sync to Google and thus Android tablet and smartphone).
  3. Note, that the contacts application looks a bit different on the left side.
  4. Reboot.
  5. Login and start the console, and enter:

pmset -g assertions

You will probably see something akin to this (depending on your hardware):


14/07/14 17.49.57 CEST

Assertion status system-wide:

BackgroundTask 0

PreventDiskIdle 0

ApplePushServiceTask 0

UserIsActive 1

PreventUserIdleDisplaySleep 0

InteractivePushServiceTask 0

PreventSystemSleep 0

ExternalMedia 1

PreventUserIdleSystemSleep 1 ***

NetworkClientActive 1

Listed by owning process:

pid xxx(AddressBookSour): [0x0000000100000xxx] 00:00:15 PreventUserIdleSystemSleep named: "Address Book Source Sync”

Timeout will fire in 1785 secs Action=TimeoutActionTurnOff

pid 69(hidd): [0x0000000a000001fc] 00:01:52 UserIsActive named: "com.apple.iohideventsystem.queue.tickle" Timeout will fire in 568 secs Action=TimeoutActionRelease

pid 16(powerd): [0x000000090000012c] 00:37:21 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"

pid 124(cupsd): [0x00000012000001e1] 00:03:38 NetworkClientActive named: "org.cups.cupsd"

Kernel Assertions: 0x2c=USB,BT-HID,THNDR

id=500 level=255 0x4=USB mod=14/07/14 17.20 description=XHC1 owner=AppleUSBXHCI

id=501 level=255 0x20=THNDR mod=14/07/14 17.49 description=NHI0 owner=AppleThunderboltHAL

id=504 level=255 0x8=BT-HID mod=01/01/70 01.00 description=com.apple.driver.IOBluetoothHIDDriver owner=BNBMouseDevice

id=505 level=255 0x8=BT-HID mod=01/01/70 01.00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard

Note the “activity” icon in the contacts application in the iCloud header, and possibly also in the Google header in the left pane. As long as there is any activity here, you can find “1” in the field “PreventUserIdleSystemSleep” above (see *** mark). Initially this can take some time.

When all activity has stopped in the contacts application, wait a minute or so, and then reenter:

pmset -g assertions
on the console, and now you see “0” in the field “PreventUserIdleSystemSleep” in above example. Then you can complete the iCloud configuration.
  1. Keep Google contacts deactivated on your iPad/iPhone.
  2. Activate iCloud contacts. Answer yes to merge.
  3. Wait some minutes until everything is working as intended again.
  4. I use ONLY my notebook to sync contacts to both iCloud and Google.
  5. iPads etc. only access iCloud contacts.
  6. Android gear only access Google.
  7. This works.


The problem is, that when you activate contact sync to Google contacts, and disable iCloud contacts syncing, the sync application seems to go haywire, and continues to do the impossible. I'm not saying, it always does, but something can trigger this behavior.

Please note:

EACH time your computer starts or wakes up, it will attempt to sync contacts. That is as it should be, and while the sync takes place, you will see the dreaded:

PreventUserIdleSystemSleep 1


As soon, as this “initial sync” has terminated (can take some time depending on line speed etc.) you will se the state:


PreventUserIdleSystemSleep 0

Hope this will help in at least some of the cases, I’ve seen in this forum.

Jul 14, 2014 6:48 PM in response to Kurt Friis

FYI - this is what led to "the fix" for me. I had two "Internet Accounts" in System Preferences - a Gmail account and my iCloud account. NEITHER were set to sync Contacts...but I can't swear that was always the case.

Anyway, I enabled Contact Sync on both accounts (Gmail and iCloud) and, ta-dah! AddressbookSour was no longer preventing sleep!


In my case having it sync those contacts doesn't really matter as all my contacts are kept in another account and I never use my Mac's built-in contacts. But, if I feel daring, I may try switching them off and see if it comes back. But I'm afraid to jinx it.

Jul 14, 2014 11:27 PM in response to egshea

How long has it been since it first worked properly? I am in the middle of debugging the same problem.


After a reboot, it will take a few days for the problem to occur in my Mac Pro. Currently, it enters sleep ok for the last 24 hours. But if I do a "pmset -g assertions", I see that PreventUserIdleSystemSleep is set to 1. But it still enters to sleep mode after the timeout.


Odd.....

Jul 15, 2014 5:49 AM in response to vett93

First of all, the value “1” in “PreventUserIdleSystemSleep” is nothing special. It's only a problem, if a process keeps this "flag" set continually, as I showed in a previous example. The "thingy" preventing sleep, was the value “1” in “PreventUserIdleSystemSleep”, but the originator of this flag was (most of the time) a contacts sync process repeated each 30 seconds (when sync to iCloud was NOT enabled). Here’s a “cut” from my “power” log (pmset -g log) as an example of one of many cases for the value “1” in “PreventUserIdleSystemSleep”, that is totally acceptable and normal:


Total Sleep/Wakes since boot at 14/07/14 19.34.03 CEST :11


15/07/14 12.52.51 CEST Showing all currently held IOKit power assertions

Assertion status system-wide:

BackgroundTask 1

PreventDiskIdle 0

ApplePushServiceTask 0

UserIsActive 1

PreventUserIdleDisplaySleep 0

InteractivePushServiceTask 0

PreventSystemSleep 0

ExternalMedia 1

PreventUserIdleSystemSleep 1

NetworkClientActive 0

Listed by owning process:

* pid 1771(backupd): [0x00000001000006c7] 00:01:55 PreventUserIdleSystemSleep named: "Time Machine backup"

pid 1771(backupd): [0x0000000c000006c6] 00:01:55 BackgroundTask named: "Time Machine backup"

pid 84(hidd): [0x0000000a000006b9] 00:03:33 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"

Timeout will fire in 592 secs Action=TimeoutActionRelease

* pid 1609(ChronoSync): [0x00000001000005f3] 00:56:15 PreventUserIdleSystemSleep named: "<EZSSynchronizer: 0x1040ac400>"

pid 16(powerd): [0x000000090000012c] 17:18:47 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"

pid 11(UserEventAgent): [0x0000000c000006d1] 00:00:15 BackgroundTask named: "com.apple.metadata.mds_stores.power"

pid 11(UserEventAgent): [0x0000000c000006c3] 00:02:26 BackgroundTask named: "com.apple.backupd-auto"

pid 137(mds_stores): [0x0000000c000006d0] 00:00:15 BackgroundTask named: "com.apple.metadata.mds_stores.power"

Kernel Assertions: 0x2c=USB,BT-HID,THNDR

id=500 level=255 0x4=USB mod=14/07/14 19.41 description=XHC1 owner=AppleUSBXHCI

id=503 level=255 0x20=THNDR mod=15/07/14 11.53 description=NHI0 owner=AppleThunderboltHAL

id=504 level=255 0x8=BT-HID mod=01/01/70 01.00 description=com.apple.driver.IOBluetoothHIDDriver owner=BNBMouseDevice

id=505 level=255 0x8=BT-HID mod=01/01/70 01.00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard


From this, you can see, that there are TWO tasks, that prevent sleep. One is “Time Machine Backup” and the other my “ChronoSync” application, which is currently performing a sync operation to a NAS connected through Ethernet. Both operations (marked * above) should be left to complete their work, before my macbook goes to sleep. At least, that’s the common wisdom. Even if it wasn’t so, I’d personally prefer things to behave that way.


The important thing is this state, taken a bit later:


Total Sleep/Wakes since boot at 14/07/14 19.34.03 CEST :11


15/07/14 13.05.17 CEST Showing all currently held IOKit power assertions

Assertion status system-wide:

BackgroundTask 0

PreventDiskIdle 0

ApplePushServiceTask 0

UserIsActive 1

PreventUserIdleDisplaySleep 0

InteractivePushServiceTask 0

PreventSystemSleep 0

ExternalMedia 1

PreventUserIdleSystemSleep 1

NetworkClientActive 0

Listed by owning process:

pid 84(hidd): [0x0000000a000006b9] 00:15:59 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"

Timeout will fire in 583 secs Action=TimeoutActionRelease

* pid 1609(ChronoSync): [0x00000001000005f3] 01:08:41 PreventUserIdleSystemSleep named: "<EZSSynchronizer: 0x1040ac400>"

pid 16(powerd): [0x000000090000012c] 17:31:13 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"

Kernel Assertions: 0x2c=USB,BT-HID,THNDR

id=500 level=255 0x4=USB mod=14/07/14 19.41 description=XHC1 owner=AppleUSBXHCI

id=503 level=255 0x20=THNDR mod=15/07/14 11.53 description=NHI0 owner=AppleThunderboltHAL

id=504 level=255 0x8=BT-HID mod=01/01/70 01.00 description=com.apple.driver.IOBluetoothHIDDriver owner=BNBMouseDevice

id=505 level=255 0x8=BT-HID mod=01/01/70 01.00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard


Now it’s only my active sync process (marked * above), that prevents the notebook from going to sleep. Time Machine Backup has terminated, and no longer prevents my computer from sleeping. After some intensive work, the system even settles down to this:


15/07/14 14.32.26 CEST

Assertion status system-wide:

BackgroundTask 0

PreventDiskIdle 0

ApplePushServiceTask 0

UserIsActive 1

PreventUserIdleDisplaySleep 0

InteractivePushServiceTask 0

PreventSystemSleep 0

ExternalMedia 1

PreventUserIdleSystemSleep 0

NetworkClientActive 0

Listed by owning process:

pid 84(hidd): [0x0000000a0000080a] 00:09:05 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"

Timeout will fire in 589 secs Action=TimeoutActionRelease

pid 16(powerd): [0x000000090000012c] 18:58:22 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"

Kernel Assertions: 0x2c=USB,BT-HID,THNDR

id=500 level=255 0x4=USB mod=14/07/14 19.41 description=XHC1 owner=AppleUSBXHCI

id=503 level=255 0x20=THNDR mod=15/07/14 11.53 description=NHI0 owner=AppleThunderboltHAL

id=504 level=255 0x8=BT-HID mod=01/01/70 01.00 description=com.apple.driver.IOBluetoothHIDDriver owner=BNBMouseDevice

id=505 level=255 0x8=BT-HID mod=01/01/70 01.00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard


where there is nothing blocking the system from going to sleep, except me (the flag “UserIsActive” equals “1”). Everything looks relaxed and beautiful, and sleep should be possible any moment now. …any moment noooowwffhh …any …shhh


Here’s an example of a period of real and completely undisturbed sleep from the recent night:


Time stamp Domain Message Duration Delay


14/07/14 23.22.06 CEST Sleep Idle Sleep to DarkWake: Using AC (Charge:100%)

14/07/14 23.22.06 CEST Assertions PID 16(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00 id:0xe00000455 [System: SRPrevSleep NetAcc kCPU]

14/07/14 23.22.06 CEST Assertions PID 127(cupsd) Released NetworkClientActive "org.cups.cupsd" 01:06:23 id:0x1200000380 [System: SRPrevSleep kCPU]

14/07/14 23.22.22 CEST Assertions PID 16(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15 id:0xe00000455 [System: SRPrevSleep kCPU]

14/07/14 23.22.22 CEST Assertions PID 16(powerd) Released InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15 id:0xe00000455 [System: SRPrevSleep kCPU]

14/07/14 23.22.22 CEST Summary- [System: No Assertions] Using AC

14/07/14 23.22.22 CEST Sleep Idle Sleep: Using AC (Charge:100%) 36619 secs

14/07/14 23.22.23 CEST Assertions PID 127(cupsd) Created NetworkClientActive "org.cups.cupsd" 00:00:00 id:0x1200000460 [System: BGTask NetAcc kCPU]

14/07/14 23.22.24 CEST SlowResponse PMConnection: Response from com.apple.apsd is slow (powercaps:0x0) 1997 ms

14/07/14 23.22.24 CEST WakeRequests Clients requested wake events: None

15/07/14 09.32.41 CEST Wake Wake [CDNVA] due to EHC1/HID Activity: Using AC (Charge:100%) 1399 secs

15/07/14 09.32.41 CEST Cancelled Kernel: Response from cupsd is to cancel state change (powercaps:0x9)

15/07/14 09.33.10 CEST Assertions PID 1092(backupd-helper) Released BackgroundTask "backupd-helper" 00:00:28 id:0xc0000046c [System: PrevIdle BGTask NetAcc kCPU]

15/07/14 09.33.11 CEST Assertions PID 1165(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30 id:0x100000473 [System: PrevIdle BGTask NetAcc kCPU]

15/07/14 09.33.11 CEST Assertions PID 221(UserEventAgent) Released BackgroundTask "com.apple.AddressBook.ScheduledSync" 00:00:30 id:0xc00000474 [System: PrevIdle BGTask NetAcc kCPU]

15/07/14 09.33.12 CEST Assertions PID 127(cupsd) Released NetworkClientActive "org.cups.cupsd" 10:10:49 id:0x1200000460 [System: PrevIdle BGTask]

15/07/14 09.34.29 CEST Assertions PID 1092(backupd-helper) Released BackgroundTask "backupd-helper" 00:00:30 id:0xc0000048a [System: PrevIdle BGTask]

15/07/14 09.34.38 CEST Assertions PID 137(mds_stores) Released BackgroundTask "com.apple.metadata.mds_stores.power" 00:01:45 id:0xc00000485 [System: PrevIdle BGTask]

15/07/14 09.34.38 CEST Assertions PID 11(UserEventAgent) Released BackgroundTask "com.apple.metadata.mds_stores.power" 00:01:45 id:0xc00000486 [System: PrevIdle BGTask]

15/07/14 09.37.04 CEST Assertions PID 1180(backupd) Released BackgroundTask "Time Machine backup" 00:03:54 id:0xc00000487 [System: PrevIdle]

15/07/14 09.37.04 CEST Assertions PID 1180(backupd) Released PreventUserIdleSystemSleep "Time Machine backup" 00:03:54 id:0x100000488 [System: No Assertions]

15/07/14 09.41.21 CEST Assertions PID 1266(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30 id:0x10000049c [System: BGTask]

15/07/14 09.41.21 CEST Assertions PID 221(UserEventAgent) Released BackgroundTask "com.apple.AddressBook.ScheduledSync" 00:00:30 id:0xc0000049d [System: No Assertions]

15/07/14 09.45.03 CEST Assertions PID 99(apsd) Released ApplePushServiceTask "com.apple.apsd-recreatecachedictionaries-push.apple.com" 00:00:29 id:0xc000004aa [System: BGTask]

15/07/14 09.50.20 CEST Assertions PID 1274(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30 id:0x1000004c6 [System: BGTask]

15/07/14 09.50.20 CEST Assertions PID 221(UserEventAgent) Released BackgroundTask "com.apple.AddressBook.ScheduledSync" 00:00:30 id:0xc000004cd [System: No Assertions]

15/07/14 09.51.29 CEST Assertions PID 1393(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30 id:0x1000004e0 [System: BGTask]

15/07/14 09.51.29 CEST Assertions PID 221(UserEventAgent) Released BackgroundTask "com.apple.AddressBook.ScheduledSync" 00:00:30 id:0xc000004e1 [System: No Assertions]

15/07/14 09.55.45 CEST Assertions PID 16(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00 id:0xe000004e7 [System: SRPrevSleep kCPU]

15/07/14 09.56.00 CEST Assertions PID 16(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15 id:0xe000004e7 [System: SRPrevSleep kCPU]

15/07/14 09.56.00 CEST Assertions PID 16(powerd) Released InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15 id:0xe000004e7 [System: SRPrevSleep kCPU]


Between 23.22.24 and 09.32.41 nothing happened. The system was effectively dead, quiet and inactive for more than 10 hours. No log entry. No nothing, until I woke up the system. Then I start to see sync entries - as you should with active sync immediately after wakeup after 10 hours downtime - and also “Time Machine Backup” wants a say together with a lot of other things. Immediately after wakeup, the system is a busy place, and it may take minutes before the system is not prevented from going to sleep again. This is also as it should be. From time to time i.e. contact sync has to take place. The important thing is, that it completes, and no longer blocks the computer from entering sleep mode.


Before activating iCloud contact sync, this situation was often (maybe most of the time or always ???) blocked by a sync process recurring again and again and again each 30 seconds in "perpetuity" ;-)


I hope, this will help in understanding the problem, and - if Apple looks into this - it may even lead to a fix for the problem.

Jul 15, 2014 6:00 AM in response to vett93

The problem was immediate for me. Rebooting never relieved it for even a time. Additionally, I found the issue affected BOTH accounts on my computer. Oddly, merely deleting the Gmail account did not resolve it...I had to enable Contact sync on iCloud in both accounts. Which makes me wonder if the problem isn't ONLY the iCloud Contact sync. I will try to experiment more tonight.

Jul 21, 2014 11:31 PM in response to Kurt Friis

Kurt, is your Mac Pro free of sleep problems now? I have tried everything I read from the forum but none of them worked for more than 3 days. In other words, after I applied various suggestions and rebooted the Mac Pro, the sleep problem would go away for 2 to 3 days. Then the problem comes back and stays.


Then I have to reboot the Mac Pro to enable the sleep mode again. The sad part is that my Mac Pro has developed boot problems similar to others on the Mac Pro forum. About 1/3 of the time, the boot process does not complete and I have to do a hard reset to retry.


Double whammy....


Apple, can I get my money back?

Jul 22, 2014 2:16 AM in response to vett93

Sorry to hear about your problems. I did not see, that I had ended up in the wrong forum. The workaround works on my Macbook Pro Retina 13, and I have had no problems with "unexpected activities" since I added sync to iCloud for my contacts. In addition I have decided to deactivate power-nap, which I usually do not need.


Here's a cut-out from todays log (I've just started the critter):


Time stamp Domain Message Duration Delay

========== ====== ======= ======== =====


21/07/14 23.09.58 CEST Sleep Software Sleep pid=85: Using AC (Charge:100%) 41149 secs

21/07/14 23.10.04 CEST SlowResponse PMConnection: Response from com.apple.apsd is slow (powercaps:0x0) 5997 ms

21/07/14 23.10.04 CEST WakeRequests Clients requested wake events: None

22/07/14 10.35.47 CEST Wake Wake [CDNVA] due to EHC1/HID Activity: Using AC (Charge:100%)

22/07/14 10.35.47 CEST SlowResponse Kernel: Response from powerd is slow (powercaps:0x0) 6008 ms

22/07/14 10.36.17 CEST Assertions PID 4730(backupd-helper) Released BackgroundTask "backupd-helper" 00:00:30 id:0xc00002147 [System: PrevIdle DeclUser BGTask kDisp]

22/07/14 10.36.17 CEST Assertions PID 9581(AddressBookSour) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30 id:0x100002149 [System: PrevIdle DeclUser BGTask kDisp]

22/07/14 10.36.17 CEST Assertions PID 233(UserEventAgent) Released BackgroundTask "com.apple.AddressBook.ScheduledSync" 00:00:30 id:0xc0000214a [System: PrevIdle DeclUser BGTask kDisp]

22/07/14 10.39.35 CEST Assertions PID 9617(backupd) Released BackgroundTask "Time Machine backup" 00:03:18 id:0xc00002160 [System: PrevIdle DeclUser kDisp]

22/07/14 10.39.35 CEST Assertions PID 9617(backupd) Released PreventUserIdleSystemSleep "Time Machine backup" 00:03:18 id:0x100002161 [System: DeclUser kDisp]


Total Sleep/Wakes since boot at 16/07/14 23.05.09 CEST :31


22/07/14 10.48.58 CEST Showing all currently held IOKit power assertions

Assertion status system-wide:

BackgroundTask 0

PreventDiskIdle 0

ApplePushServiceTask 0

UserIsActive 1

PreventUserIdleDisplaySleep 0

InteractivePushServiceTask 0

PreventSystemSleep 0

ExternalMedia 1

PreventUserIdleSystemSleep 0

NetworkClientActive 0

Listed by owning process:

pid 90(hidd): [0x0000000a000020bb] 12:00:41 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"

Timeout will fire in 567 secs Action=TimeoutActionRelease

pid 16(powerd): [0x00000009000016e2] 47:03:07 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"

Kernel Assertions: 0x2c=USB,BT-HID,THNDR

id=500 level=255 0x4=USB mod=16/07/14 23.14 description=XHC1 owner=AppleUSBXHCI

id=501 level=255 0x20=THNDR mod=22/07/14 10.38 description=NHI0 owner=AppleThunderboltHAL

id=504 level=255 0x8=BT-HID mod=01/01/70 01.00 description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard

id=557 level=255 0x8=BT-HID mod=01/01/70 01.00 description=com.apple.driver.IOBluetoothHIDDriver owner=BNBMouseDevice


My machine also slept like a baby between 23.10.04 CEST yesterday and 10.35.47 today - some 11 hours and 25 minutes. Please note, that I also have power-nap disabled. I do not need this computer to wakeup all hours of the day, just to check mail and appointments (my smartphone does that), and my TimeMachine runs perfectly, while the computer is awake anyway, so the need to interrupt sleep for a TimeMachine backup is not really given (and then, of course, minimized further, since... smile).

But, since you still have trouble getting the machine to sleep, there must be something extra loose in your system. I suggest, you use the terminal command "pmset -g log" each day, to discover what (and when) the "disturbing factor" gets executed. Save the logs, and compare. With just a bit of luck, you may discover the "extra factor", that you need to compensate. Without the logs, you'll have a hard time discovering the culprit.

Best of luck.

Jul 29, 2014 1:20 PM in response to Kurt Friis

I have a new late 2013 iMac that will not sleep because of addressbooksourcesync. The power management assertions show that addressbooksync is Preventing User Idle Sleep. I followed the instructions above in Linc's solution and nothing worked. I use Google to sync contacts and NOT iCloud.

Addressbooksourcesync is constantly preventing sleep. I have a Macbook Pro that does not have this issue and addressbooksync is not constantly running.

Is there anything else I can do to get control over addressbooksync?

My Maverics can't sleep!!

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