You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Bluetooth drivers prevent system from sleeping in Mavericks - what's going on!?

Just installed Mavericks. My iMac 27" no longer engages the screensaver or puts the monitor to sleep as specified in preferences as a result. When I enter pmset -g assertions in Terminal, I get the following:



10/22/13, 11:03:40 PM PD

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 16(powerd): [0x0000000900000131] 00:19:12 ExternalMedia named: "com.apple.powermanagement.externalmediamounted"

pid 49(hidd): [0x0000000a00000194] 00:15:51 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"

Timeout will fire in 1170 secs Action=TimeoutActionRelease

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

id=500 level=255 0x4=USB mod=10/22/13, 10:53 PM description=EHC2 owner=AppleUSBEHCI

id=503 level=255 0x8=BT-HID mod=12/31/69, 4:00 PM description=com.apple.driver.IOBluetoothHIDDriver owner=BNBTrackpadDevice

id=504 level=255 0x8=BT-HID mod=12/31/69, 4:00 PM description=com.apple.driver.IOBluetoothHIDDriver owner=AppleBluetoothHIDKeyboard

id=505 level=255 0x100=MAGICWAKE mod=12/31/69, 4:00 PM description=en1 owner=en1



I'm not terribly concerned with "ExternalMedia" as that always appeared in Mountain Lion as well but never actually prevented my system from putting the monitor to sleep. My concern is with the "UserIsActive" item as it appears to refer to "MAGICWAKE" (a google search only shows an app that I do not have installed and sheds no light on what it means in this context) and points directly to my keyboard and trackpad. Oddly, turning "Allow Bluetooth devices to wake this computer" in the Bluetooth advanced preferences does not change this, nor does rebooting. The countdown that appears here is always in the 1160 to 1195 range. I'm completly stumped...

iMac (27-inch Mid 2011), OS X Mavericks (10.9)

Posted on Oct 22, 2013 11:10 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 6, 2017 8:27 PM

Nothing here. I tried of everything that all people here said.


MAC SIERRA 10.12.6


Doing "pmset -g pslog" I know this


pmset -g pslog  18:27  06.08.17

Logging IORegisterForSystemPower sleep/wake messages

pmset is in logging mode now. Hit ctrl-c to exit.

2017-08-06 18:31:14 -0300

IOPSNotificationCreateRunLoopSource

Now drawing from 'AC Power'



2017-08-06 18:31:27 -0300

IORegisterForSystemPower: ...Sleeping...



2017-08-06 19:41:01 -0300

IORegisterForSystemPower: ...HasPoweredOn...

Wake Reason = UHC1 USB3 USB5 UHC7 . //I did this on purpose to test



2017-08-06 22:58:29 -0300

IORegisterForSystemPower: ...Sleeping...



2017-08-06 22:59:07 -0300

IORegisterForSystemPower: ...HasPoweredOn...

Wake Reason = pci1106,3483


Here is the result. I first do the tests according to the tips from you guys. I restart the MAC and then I'll send it to sleep. And he sleeps beautiful. But then I hit the mouse (test only with keyboard, no keyboard, only power button and nothing) to connect again. I use the Mac for a few minutes - I analyze if it has something in "prevented by" and I send a "sudo pmset sleepnow" - It takes a while to turn off completely, then it turns on very quickly.


It is in the second "revive" that mine loses the quality of sleep.

Something on PCI is calling back my mac from sleep instantaneously.



Nothing is attached, no USB, no Bluetooth, no internet sharing, no Chrome o other "sleep prevented by". Nothing. Could Apple be nice and solve this? Creating a simple option to override according to the user's need? They made the "Caffeine" to satisfy users that they did not want to "sleep" right? Why not this demand for sleep?



This problem is getting on my nerves, consuming my patience. Every single reboot I need to rearrange my work desktops because not even that, the Sierra knows how to do it alone sometimes.


Best Regards

150 replies

Nov 1, 2013 4:59 PM in response to targus

>>Does anyone here know a lot about safemode? Can you confirm that it doesn't load the same caches?...


Safe mode clears some caches.


Starting up into Safe Mode does several things:

  • It forces a directory check of the startup volume. You may see a progress bar on the screen during this check, and the computer may take longer than usual to complete its startup.
  • It loads only required kernel extensions (some of the items in /System/Library/Extensions).
  • Mac OS X v10.5.6 or later: A Safe Boot deletes the dynamic loader shared cache at (/var/db/dyld/). A cache with issues may cause a blue screen on startup, particularly after a Software Update. Restarting normally recreates this cache.
  • It disables all fonts other than those in /System/Library/Fonts (Mac OS X v10.4 or later).
  • It moves to the Trash all font caches normally stored in /Library/Caches/com.apple.ATS/(uid)/ , where (uid) is a user ID number such as 501 (Mac OS X v10.4 or later).
  • It disables all startup items and login items (Mac OS X v10.4 or later).
  • In Mac OS X v10.3.9 or earlier, Safe Mode runs only Apple-installed startup items (such items may be installed either in /Library/StartupItems or in /System/Library/StartupItems; these are different than user-selected account login items).

Taken together, these changes can help resolve software or directory issues that may exist on the startup volume.

Nov 2, 2013 12:20 AM in response to angmoh88

angmoh88:


When you say you "reset" your bluetooth devices, do you just mean you powered them down and turned them back on (as part of the battery changing process) or are you talking about actually making the computer "forget" them and restarting the connection from scratch? I turned my keyboard and trackpad off and on (disconnected them), but nothing changed in my terminal readout.

Nov 2, 2013 1:15 AM in response to targus

targus wrote:


angmoh88:


When you say you "reset" your bluetooth devices, do you just mean you powered them down and turned them back on (as part of the battery changing process) or are you talking about actually making the computer "forget" them and restarting the connection from scratch? I turned my keyboard and trackpad off and on (disconnected them), but nothing changed in my terminal readout.


As I replaced the batteries, I took them out completely. So effectively I see that as hard-reset of the keyboard & trackpad.

Nov 2, 2013 3:51 AM in response to angmoh88

Safe mode does not solve this issue, at least for me.


I have never used a bluetooth device on this machine, but I tried to (unsuccesfully) pair my iphone with my mbp, then turned off bluetooth on the computer to see if this made a difference. But, it didn't do anything for me.


I wonder why just changing the batteries would change this?

Nov 3, 2013 3:40 AM in response to terriblewithcomputers

Similar problem on Macbook Pro, when Maverick went to sleep after lid is closed for a day or so, it might wake up when the lid is open after clicking the track pad, it might not. When it does wake up, put in password, then it went dark again almost immediately and I had to press and hold the power button to shut it off and boot back up and Problem persisted...


I uncheck to Wakeup for Network Access in the Energy Saver, will report if the problem goes away, or not.

Nov 4, 2013 7:41 AM in response to targus

Same problem here. Early 2011 15' MBP taking 2 minutes to sleep, even when there's almost nothing but the Finder running. Way more than the 5/6 secs it took ML.

Here's the log for what it's worth:


4/11/13, 12:33:11 PM GMT

Assertion status system-wide:

BackgroundTask 0

PreventDiskIdle 0

ApplePushServiceTask 0

UserIsActive 1

PreventUserIdleDisplaySleep 0

InteractivePushServiceTask 0

PreventSystemSleep 0

ExternalMedia 0

PreventUserIdleSystemSleep 0

NetworkClientActive 0

Listed by owning process:

pid 51(hidd): [0x0000000a0000050d] 00:05:12 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"

Timeout will fire in 288 secs Action=TimeoutActionRelease

Kernel Assertions: 0x104=USB,MAGICWAKE

id=501 level=255 0x4=USB mod=4/11/13, 12:36 PM description=EHC1 owner=AppleUSBEHCI

id=503 level=255 0x100=MAGICWAKE mod=4/11/13, 12:41 PM description=en0 owner=en0

Nov 5, 2013 2:38 PM in response to targus

Same problem here. I've got a Mid-2012 15" MBP, with 8GB Ram and a 256GB Vertex4 SSD.


I'm getting longer-than-normal sleeps than I was on ML, and did a brand new install of Mavericks.


Also getting the same magicwake error.


Assertion status system-wide:

BackgroundTask 0

PreventDiskIdle 0

ApplePushServiceTask 0

UserIsActive 1

PreventUserIdleDisplaySleep 0

InteractivePushServiceTask 0

PreventSystemSleep 0

ExternalMedia 0

PreventUserIdleSystemSleep 0

NetworkClientActive 0

Listed by owning process:

pid 63(hidd): [0x0000000a0000016a] 19:44:20 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"

Timeout will fire in 562 secs Action=TimeoutActionRelease

Kernel Assertions: 0x100=MAGICWAKE

id=504 level=255 0x100=MAGICWAKE mod=11/5/13, 5:33 PM description=en1 owner=en1.


ALSO, still getting long shutdowns, and the whole ACWAKE problem still exists. Computer comes out of sleep when unplugged or plugged into power. All kinds of annoying for no reason.

Subbing to this tread in hopes of a fix for SOMETHING.

Bluetooth drivers prevent system from sleeping in Mavericks - what's going on!?

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