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

Jul 29, 2014 1:35 PM in response to egshea

I turned on icloud sync in contacts and added a contact. Addressbooksync disappeared from the activity monitor for now and pmset shows nothing preventing idle sleep when I am running contacts. But as soon as I shut down contacts, it returns. I don't think I should need contacts to run just to get the iMac to sleep.

Jul 29, 2014 1:37 PM in response to dh250

Hm...you sure you need to leave Contacts running? You probably don't even need a contact in there...I had none. I just had to check on "Contacts" in the iCloud control panel.

Also, the Addressbooksync runs every time my computer wakes from sleep...but after 10 seconds or so it finishes and allows sleep again. Maybe you need to give it a little more time?

Jul 29, 2014 11:29 PM in response to dh250

It seems that I have figured out the cause for my Mac Pro's sleep issue! I have spent the last 2 months trying various things I read on the forum. But none of them worked until I tried the following.


I think the "Spotlight" software is the problem. It tries to index the external HDs and keeps the Mac Pro awake. My external HDs are from OWC and they seem to enter sleep mode quickly. Then Spotlight has problems with the sleeping external HDs, according to the hypothesis. So I excluded the external HDs from the search. My Mac Pro has been able to enter sleep mode reliably for the last 6 days! In the past, I thought I might have found the cause and walkaround. But the problem came back in 2 to 3 days. Hopefully, this really addresses the sleep problems.


What I did was to use System Preference and then pick Spotlight. Then under the "Privacy" tab, add my 2 external HDs on the list so that Spotlight does not use them. It works for me for the last 6 days!! YMMV though....

Oct 7, 2014 8:11 PM in response to dh250

Hello. Thanks to this discussion I was led to "pmset -g assertions" and Address Book Source Sync as the cause of my MacBook failing to sleep. Here is how I fixed it. Open Terminal and run this command:


launchctl unload -w /System/Library/LaunchAgents/com.apple.AddressBook.SourceSync.plist


This command adds a "Disabled" entry in /var/db/launchd.db/com.apple.launchd.peruser.USERID/overrides.plist, where USERID is your user ID. So, I believe you'll have to run this command for all user accounts that are experiencing the problem. I do not use iCloud or syncing of any kind. This change would probably mess those things up if you are using them. To undo, this should work:


launchctl load -w /System/Library/LaunchAgents/com.apple.AddressBook.SourceSync.plist

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.