Several minutes until usable after wake from sleep

This problem has been dogging me since before Mavericks. My admin account (other accounts do not have this problem) can take up to five minutes to become fully usable. Some apps seem to work, others give me spinning beach ball. The network (wireless or ethernet) is included in the slow start. I have scoured these discussions, tried to compare Console logs and even gone to the Genuis bar for help (the recommended deleting bezel services which does not help). Once it wakes up fully the system seems to work just fine. Does anyone have an idea of what might be causing this?

OS X Mavericks (10.9), 2.2 ghz i7 CD2, 16gb ram, 750gb hd

Posted on Mar 23, 2014 12:53 PM

Reply
42 replies

Mar 23, 2014 5:01 PM in response to Rick Wintheiser1

Some users have reported solving this problem by resetting the NVRAM (PRAM.) One user reports long delays in waking from sleep after enabling FileVault. I can't reproduce that experience, but if applicable, you could try disabling FileVault.

If you've installed something called "iCleanMemory," or any other third-party software that is supposed to "clean" or "free up" memory, remove it according to the developer's instructions after backing up all data. Reboot and test. If there's no change, continue.

Please read this whole message before doing anything.

This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.

The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.

Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.

Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.

Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.

The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.

Test while in safe mode. Same problem?

After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

Mar 23, 2014 9:32 PM in response to Rick Wintheiser1

When you have the problem, note the exact time: hour, minute, second.

If you have more than one user account, these instructions must be carried out as an administrator.

Launch the Console application in any of the following ways:


☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.


☞ Open LaunchPad. Click Utilities, then Console in the icon grid.


Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select

View Show Log List

from the menu bar.

Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above. Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first. Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).

The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. In most cases, a few dozen lines are more than enough. It is never necessary or helpful to post more than about 100 lines. "The more, the better" is not the rule here.

Please do not indiscriminately dump thousands of lines from the log into this discussion.

Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

Mar 24, 2014 6:18 AM in response to Linc Davis

I slept my machine, at 9:03, then woke it. I have included the last line before the full sleep. As I have only Safari open, the system seems to be responding a little better, but still well over 30 seconds until usable. Thank you for your help.


3/24/14 9:03:19.000 AM kernel[0]: **** [IOBluetoothHostControllerUSBTransport][SuspendDevice] -- Suspend -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0xc400 ****

3/24/14 9:09:38.000 AM kernel[0]: hibernate_page_list_setall(preflight 0) start 0xffffff81d2046000, 0xffffff81d20c6000

3/24/14 9:09:38.000 AM kernel[0]: hibernate_page_list_setall time: 715 ms

3/24/14 9:09:38.000 AM kernel[0]: pages 4133269, wire 404151, act 1274936, inact 2295, cleaned 0 spec 614, zf 5448, throt 0, compr 48, xpmapped 261131

3/24/14 9:09:38.000 AM kernel[0]: could discard act 314424 inact 157764 purgeable 6240 spec 1967349 cleaned 0

3/24/14 9:09:38.000 AM kernel[0]: hibernate_page_list_setall found pageCount 1687492

3/24/14 9:09:38.000 AM kernel[0]: IOHibernatePollerOpen, ml_get_interrupts_enabled 0

3/24/14 9:09:38.000 AM kernel[0]: IOHibernatePollerOpen(0)

3/24/14 9:09:38.000 AM kernel[0]: encryptStart 14290

3/24/14 9:09:38.000 AM kernel[0]: bitmap_size 0x7f5a0, previewSize 0x6fe7b0, writing 1685420 pages @ 0x791fe0

3/24/14 9:09:38.000 AM kernel[0]: encryptEnd 126ad800

3/24/14 9:09:38.000 AM kernel[0]: image1Size 0x238ad000, encryptStart1 0x14290, End1 0x126ad800

3/24/14 9:09:38.000 AM kernel[0]: encryptStart 238ad000

3/24/14 9:09:38.000 AM kernel[0]: encryptEnd b334bc00

3/24/14 9:09:38.000 AM kernel[0]: PMStats: Hibernate write took 34426 ms

3/24/14 9:09:38.000 AM kernel[0]: all time: 34426 ms, comp bytes: 6903844864 time: 6673 ms 986 Mb/s, crypt bytes: 2719187312 time: 4648 ms 557 Mb/s,

3/24/14 9:09:38.000 AM kernel[0]: image 3006578688 (35%), uncompressed 6903844864 (636933), compressed 2986782544 (43%), sum1 8564f91, sum2 63de2a5e

3/24/14 9:09:38.000 AM kernel[0]: zeroPageCount 59390, wiredPagesEncrypted 213002, wiredPagesClear 189166, dirtyPagesEncrypted 1283341

3/24/14 9:09:38.000 AM kernel[0]: hibernate_write_image done(0)

3/24/14 9:09:38.000 AM kernel[0]: sleep

3/24/14 9:09:38.000 AM kernel[0]: Wake reason: EHC1

3/24/14 9:09:38.000 AM kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake

3/24/14 9:09:38.000 AM kernel[0]: Previous Sleep Cause: 5

3/24/14 9:09:38.000 AM kernel[0]: The USB device HubDevice (Port 1 of Hub at 0xfd000000) may have caused a wake by issuing a remote wakeup (2)

3/24/14 9:09:38.000 AM kernel[0]: AppleThunderboltHAL::earlyWake - complete - took 1 milliseconds

3/24/14 9:09:38.000 AM kernel[0]: The USB device HubDevice (Port 3 of Hub at 0xfd100000) may have caused a wake by issuing a remote wakeup (3)

3/24/14 9:09:38.000 AM kernel[0]: The USB device Keyboard Hub (Port 1 of Hub at 0xfd130000) may have caused a wake by issuing a remote wakeup (3)

3/24/14 9:09:38.000 AM kernel[0]: Thunderbolt Self-Reset Count = 0xedefbe00

3/24/14 9:09:38.000 AM kernel[0]: TBT W (1): 0 [x]

3/24/14 9:09:38.000 AM kernel[0]: wlEvent: en1 en1 Link DOWN virtIf = 0

3/24/14 9:09:38.000 AM kernel[0]: AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving).

3/24/14 9:09:38.000 AM kernel[0]: en1: 802.11d country code set to 'X0'.

3/24/14 9:09:38.000 AM kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161 165

3/24/14 9:09:38.000 AM kernel[0]: The USB device Apple Keyboard (Port 2 of Hub at 0xfd131000) may have caused a wake by issuing a remote wakeup (3)

3/24/14 9:09:38.000 AM kernel[0]: full wake (reason 1) 151 ms

3/24/14 9:09:38.148 AM UserEventAgent[11]: Captive: CNPluginHandler en1: Inactive

3/24/14 9:09:38.150 AM configd[54]: network changed: v4(en0:192.168.2.117, en1-:192.168.2.115) DNS* Proxy SMB

3/24/14 9:09:38.000 AM kernel[0]: **** [IOBluetoothHostControllerUSBTransport][SuspendDevice] -- Resume -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0xc400 ****

3/24/14 9:09:38.000 AM kernel[0]: AppleBCM5701Ethernet [en0]: Link down (womp disabled, proxy idle)

3/24/14 9:09:38.323 AM configd[54]: network changed: v4(en0-:192.168.2.117) DNS- Proxy- SMB-

3/24/14 9:09:38.331 AM netbiosd[1085]: network_reachability_changed : network is not reachable, netbiosd is shutting down

3/24/14 9:09:38.393 AM WindowServer[112]: handle_will_sleep_auth_and_shield_windows: NULL shield_window (lock state: 1)

3/24/14 9:09:38.394 AM WindowServer[112]: CGXDisplayDidWakeNotification [39172368209128]: posting kCGSDisplayDidWake

3/24/14 9:09:39.148 AM hidd[43]: MultitouchHID: device bootloaded

3/24/14 9:09:39.000 AM kernel[0]: Ethernet [AppleBCM5701Ethernet]: Link up on en0, 100-Megabit, Full-duplex, No flow-control, Debug [796d,0301,05e1,0200,41e1,0000]

3/24/14 9:09:40.941 AM configd[54]: network changed: v4(en0+:192.168.2.117) DNS+ Proxy+ SMB+

3/24/14 9:09:41.948 AM apsd[59]: Unrecognized leaf certificate

3/24/14 9:09:47.000 AM kernel[0]: en1: 802.11d country code set to 'US'.

3/24/14 9:09:47.000 AM kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161 165

3/24/14 9:09:49.157 AM ntpd[115]: ntpd: wake time set +1.037088 s

3/24/14 9:09:50.154 AM com.apple.time[186]: Interval maximum value is 946100000 seconds (specified value: 9223372036854775807).

3/24/14 9:09:50.159 AM com.apple.time[186]: Interval maximum value is 946100000 seconds (specified value: 9223372036854775807).

3/24/14 9:09:50.000 AM kernel[0]: MacAuthEvent en1 Auth result for: 90:84:0d:de:6f:f2 MAC AUTH succeeded

3/24/14 9:09:50.000 AM kernel[0]: wlEvent: en1 en1 Link UP virtIf = 0

3/24/14 9:09:50.000 AM kernel[0]: AirPort: Link Up on en1

3/24/14 9:09:50.000 AM kernel[0]: en1: BSSID changed to 90:84:0d:de:6f:f2

3/24/14 9:09:50.000 AM kernel[0]: AirPort: RSN handshake complete on en1

3/24/14 9:09:51.077 AM UserEventAgent[11]: Captive: [CNInfoNetworkActive:1655] en1: SSID 'EM Extreme' making interface primary (cache indicates network not captive)

3/24/14 9:09:51.078 AM configd[54]: network changed: v4(en0:192.168.2.117) DNS* Proxy SMB

3/24/14 9:09:51.078 AM UserEventAgent[11]: Captive: CNPluginHandler en1: Evaluating

3/24/14 9:09:51.080 AM UserEventAgent[11]: Captive: en1: Not probing 'EM Extreme' (cache indicates not captive)

3/24/14 9:09:51.080 AM UserEventAgent[11]: Captive: CNPluginHandler en1: Authenticated

3/24/14 9:09:51.085 AM configd[54]: network changed: v4(en0:192.168.2.117, en1!:192.168.2.115) DNS Proxy SMB

3/24/14 9:09:51.000 AM kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1

3/24/14 9:09:51.369 AM AirPlayUIAgent[332]: 2014-03-24 09:09:51.368710 AM [AirPlayUIAgent] Changed PIN pairing: no

3/24/14 9:09:52.694 AM AirPlayUIAgent[332]: 2014-03-24 09:09:52.694047 AM [AirPlayUIAgent] Changed PIN pairing: no

3/24/14 9:10:01.881 AM AirPlayUIAgent[332]: 2014-03-24 09:10:01.881266 AM [AirPlayUIAgent] Changed PIN pairing: no

3/24/14 9:10:02.845 AM AirPlayUIAgent[332]: 2014-03-24 09:10:02.844693 AM [AirPlayUIAgent] Changed PIN pairing: no

3/24/14 9:10:15.302 AM SystemUIServer[195]: Could not find image named 'stats-label-green'.

3/24/14 9:10:18.963 AM Dock[194]: _getAndSetImage():1309 Failed to retrieve the last 10 desktop images. Setting default image.

3/24/14 9:10:19.600 AM Dock[194]: _getAndSetImage():1309 Failed to retrieve the last 10 desktop images. Setting default image.

3/24/14 9:10:24.447 AM WindowServer[112]: disable_update_timeout: UI updates were forcibly disabled by application "Console" for over 1.00 seconds. Server has re-enabled them.

3/24/14 9:10:24.631 AM WindowServer[112]: common_reenable_update: UI updates were finally reenabled by application "Console" after 1.18 seconds (server forcibly re-enabled them after 1.00 seconds)

3/24/14 9:10:31.167 AM com.apple.IconServicesAgent[222]: main Failed to composit image for binding VariantBinding [0x1cb] flags: 0x8 binding: FileInfoBinding [0x42f] - extension: pptx, UTI: org.openxmlformats.presentationml.presentation, fileType: PPTX.

3/24/14 9:10:31.168 AM quicklookd[1145]: Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0x203] flags: 0x8 binding: FileInfoBinding [0x103] - extension: pptx, UTI: org.openxmlformats.presentationml.presentation, fileType: PPTX request size:16 scale: 1

3/24/14 9:10:46.532 AM syncdefaultsd[1148]: *** -[IADomainCache init]: IA domains cache couldn't be read.

3/24/14 9:10:46.532 AM syncdefaultsd[1148]: -[IAPluginManager allAListPlugins] [546] -- *** warning: we're on the slow path.

Mar 24, 2014 8:02 AM in response to Linc Davis

No improvement. I have included the console output from the last wake. As you can see, nearly two minutes passed until it was usable.


3/24/14 10:58:18.000 AM kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake

3/24/14 10:58:18.000 AM kernel[0]: Previous Sleep Cause: 5

3/24/14 10:58:18.000 AM kernel[0]: The USB device HubDevice (Port 1 of Hub at 0xfd000000) may have caused a wake by issuing a remote wakeup (2)

3/24/14 10:58:18.000 AM kernel[0]: AppleThunderboltHAL::earlyWake - complete - took 2 milliseconds

3/24/14 10:58:18.000 AM kernel[0]: The USB device HubDevice (Port 3 of Hub at 0xfd100000) may have caused a wake by issuing a remote wakeup (3)

3/24/14 10:58:18.000 AM kernel[0]: The USB device Keyboard Hub (Port 1 of Hub at 0xfd130000) may have caused a wake by issuing a remote wakeup (3)

3/24/14 10:58:18.000 AM kernel[0]: Thunderbolt Self-Reset Count = 0xedefbe00

3/24/14 10:58:18.000 AM kernel[0]: TBT W (1): 0 [x]

3/24/14 10:58:18.000 AM kernel[0]: wlEvent: en1 en1 Link DOWN virtIf = 0

3/24/14 10:58:18.000 AM kernel[0]: AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving).

3/24/14 10:58:18.000 AM kernel[0]: en1: 802.11d country code set to 'X0'.

3/24/14 10:58:18.000 AM kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161 165

3/24/14 10:58:18.000 AM kernel[0]: The USB device Apple Keyboard (Port 2 of Hub at 0xfd131000) may have caused a wake by issuing a remote wakeup (3)

3/24/14 10:58:18.000 AM kernel[0]: full wake (reason 1) 152 ms

3/24/14 10:58:18.152 AM UserEventAgent[11]: Captive: CNPluginHandler en1: Inactive

3/24/14 10:58:18.154 AM configd[54]: network changed: v4(en0:192.168.2.117, en1-:192.168.2.115) DNS* Proxy SMB

3/24/14 10:58:18.000 AM kernel[0]: **** [IOBluetoothHostControllerUSBTransport][SuspendDevice] -- Resume -- suspendDeviceCallResult = 0x0000 (kIOReturnSuccess) -- 0xc400 ****

3/24/14 10:58:18.000 AM kernel[0]: AppleBCM5701Ethernet [en0]: Link down (womp disabled, proxy idle)

3/24/14 10:58:18.472 AM WindowServer[112]: handle_will_sleep_auth_and_shield_windows: NULL shield_window (lock state: 1)

3/24/14 10:58:18.473 AM WindowServer[112]: CGXDisplayDidWakeNotification [45470995588486]: posting kCGSDisplayDidWake

3/24/14 10:58:19.271 AM hidd[43]: MultitouchHID: device bootloaded

3/24/14 10:58:19.000 AM kernel[0]: Ethernet [AppleBCM5701Ethernet]: Link up on en0, 100-Megabit, Full-duplex, No flow-control, Debug [796d,0301,05e1,0200,41e1,0000]

3/24/14 10:58:21.050 AM configd[54]: LINKLOCAL en0: parent has no IP

3/24/14 10:58:22.265 AM configd[54]: network changed: v4(en0-:192.168.2.117) DNS- Proxy- SMB-

3/24/14 10:58:22.277 AM netbiosd[1415]: network_reachability_changed : network is not reachable, netbiosd is shutting down

3/24/14 10:58:24.801 AM configd[54]: network changed: v4(en0+:192.168.2.117) DNS+ Proxy+ SMB+

3/24/14 10:58:25.788 AM apsd[59]: Unrecognized leaf certificate

3/24/14 10:58:28.578 AM ntpd[115]: ntpd: wake time set +0.463244 s

3/24/14 10:58:30.681 AM com.apple.time[186]: Interval maximum value is 946100000 seconds (specified value: 9223372036854775807).

3/24/14 10:58:30.685 AM com.apple.time[186]: Interval maximum value is 946100000 seconds (specified value: 9223372036854775807).

3/24/14 10:58:55.613 AM xpcproxy[1516]: assertion failed: 13C64: xpcproxy + 3438 [D559FC96-E6B1-363A-B850-C7AC9734F210]: 0x2

3/24/14 10:59:54.000 AM kernel[0]: en1: 802.11d country code set to 'US'.

3/24/14 10:59:54.000 AM kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161 165

3/24/14 11:00:12.960 AM AirPlayUIAgent[332]: 2014-03-24 11:00:12.959527 AM [AirPlayUIAgent] Changed PIN pairing: no

3/24/14 11:00:14.000 AM kernel[0]: MacAuthEvent en1 Auth result for: 90:84:0d:de:6f:f2 MAC AUTH succeeded

3/24/14 11:00:14.000 AM kernel[0]: wlEvent: en1 en1 Link UP virtIf = 0

3/24/14 11:00:14.000 AM kernel[0]: AirPort: Link Up on en1

3/24/14 11:00:14.000 AM kernel[0]: en1: BSSID changed to 90:84:0d:de:6f:f2

3/24/14 11:00:14.000 AM kernel[0]: AirPort: RSN handshake complete on en1

3/24/14 11:00:15.037 AM UserEventAgent[11]: Captive: [CNInfoNetworkActive:1655] en1: SSID 'EM Extreme' making interface primary (cache indicates network not captive)

3/24/14 11:00:15.037 AM configd[54]: network changed: v4(en0:192.168.2.117) DNS* Proxy SMB

3/24/14 11:00:15.040 AM UserEventAgent[11]: Captive: CNPluginHandler en1: Evaluating

3/24/14 11:00:15.041 AM UserEventAgent[11]: Captive: en1: Not probing 'EM Extreme' (cache indicates not captive)

3/24/14 11:00:15.041 AM UserEventAgent[11]: Captive: CNPluginHandler en1: Authenticated

3/24/14 11:00:15.045 AM configd[54]: network changed: v4(en0:192.168.2.117, en1!:192.168.2.115) DNS Proxy SMB

3/24/14 11:00:20.055 AM AirPlayUIAgent[332]: 2014-03-24 11:00:20.055183 AM [AirPlayUIAgent] Changed PIN pairing: no

3/24/14 11:00:20.000 AM kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1

3/24/14 11:00:35.610 AM AirPlayUIAgent[332]: 2014-03-24 11:00:35.609885 AM [AirPlayUIAgent] Changed PIN pairing: no

3/24/14 11:00:36.868 AM AirPlayUIAgent[332]: 2014-03-24 11:00:36.867887 AM [AirPlayUIAgent] Changed PIN pairing: no

3/24/14 11:00:55.178 AM Dock[194]: _getAndSetImage():1309 Failed to retrieve the last 10 desktop images. Setting default image.

3/24/14 11:01:08.768 AM Dock[194]: _getAndSetImage():1309 Failed to retrieve the last 10 desktop images. Setting default image.

Mar 24, 2014 9:34 AM in response to Rick Wintheiser1

Please read this whole message before doing anything.


This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.


Step 1


The purpose of this step is to determine whether the problem is localized to your user account.


Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”


While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.


Test while logged in as Guest. Same problem?


After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.


*Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.


Step 2


The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.


Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.

Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.


Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.


The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.


Test while in safe mode. Same problem?


After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

Mar 24, 2014 11:43 AM in response to Rick Wintheiser1

Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore is not, in itself, a solution.

First, empty the Trash, if possible.

Triple-click anywhere in the line below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:

find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) 2>&- | wc -l | pbcopy

Launch the built-in Terminal application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

Paste into the Terminal window (command-V). The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign ($) to appear.

The output of the command will be a number. It's automatically copied to the Clipboard. Please paste it into a reply.

The Terminal window doesn't show the output. Please don't copy anything from there.

Mar 24, 2014 6:29 PM in response to Rick Wintheiser1

Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock all your user files, reset their ownership, and remove their access-control lists. If you've set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.

Back up all data.

Step 1

If you have more than one user, and the one in question is not an administrator, then go to Step 2.

Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):

{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-

This time you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.

The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.

Step 2 (optional)

Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.

Boot into Recovery. When the OS X Utilities screen appears, select

Utilities Terminal

from the menu bar. A Terminal window will open. In that window, type this:

res


Press the tab key. The partial command you typed will automatically be completed to this:

resetpassword

Press return. A Reset Password window will open. You’re not going to reset a password.

Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.

Select your username from the menu labeled Select the user account if not already selected.

Under Reset Home Directory Permissions and ACLs, click the Reset button.

Select

Restart

from the menu bar.

Mar 25, 2014 10:48 AM in response to Linc Davis

First off, thank you so much for your detail and dogged support. I hope we can figure this out.


I did step 1 last night, it worked for some time after the first password, then asked again for my admin password. It then worked for a long time and asked AGAIN for my password. It finally then stopped after a very long interval.


I rebooted, tested and it is taking even LONGER to come to use.


This morning I attempted step 2, after nearly 40 minutes I stopped and rebooted. It never showed me DONE. I am working and need this machine, so I will do Step 2 again tonight, if you feel this will be helpful.


BTW, the machine (maybe only the screen) goes to sleep during the process. Can I change the configuration so that it will not?

Mar 25, 2014 11:37 AM in response to Rick Wintheiser1

Boot into Recovery mode, launch Disk Utility, select the startup volume ("Macintosh HD," unless you gave it a different name), and run Repair Disk (not Repair Permissions.) If any problems are found, repeat. Then reboot as usual.

If you don't already have a current backup, you must back up your data before you take the above step. You may be able to back up, even if the system isn't bootable. Ask if you need guidance.

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.

Several minutes until usable after wake from sleep

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