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 Best 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

Jun 11, 2014 8:52 AM in response to R.Davis.Ferguson

i have been on to apple support again. i am running a macpro mid 2010


after them advise to try a cabled mouse i am now running with bluetooth disabled and i am using a Cabled apple mouse


i have Mavericks on the 1Tb drive that came with the machine with all my software installed


i am lucky enough also to have a few spare HDD that i can install the older OS on to.as my system came with Lion then i have lion on one 40 GB HDD and i also have Snow leopard on another 40 Gb HDD.


these system only have the default software on. I have not migrated any data as most of what i use is on another drive that i use just for storage and have set up my email in Mail.app from scratch (using IMAP) so i can still access my mail while i am on the test HDD's


pmset -g

and

pmset -g assertions


all seems ok for now

none of the error relating to bluetooth or most of the time it has been usereventagent mds


as yet i have been unable to get this to NOT shutdown at the time intervals i specify but have only just started testing with the other HDD's .

i seem to think that this problem is when i have been using the system for many hours. not only a short space of time so i need to try set the time for the machine to shutdown as never and leave for a 24 hours and see what happens with that too.

Jun 21, 2014 12:08 AM in response to macrowiz

I also noticed this! The delay is shorter (like 10-20 seconds) if I send the Mac to sleep right after booting or waking, and it's longer (20-45 seconds) after using the computer for many hours.


I'm glad you serve as proof that this is not a portable Mac issue; it has to be Mavericks.


I would encourage you and others to get a free developer account and report this at https://bugreport.apple.com/ to get some attention and provide feedback on this from more system configurations.

Aug 13, 2014 12:57 AM in response to truekenny

I updated to 10.9.4 as well and have turned off all apps, etc. but I still have the issue.


Even when shut-down my laptop will use about 10% battery in a 24hr period, even though I have energy saver settings set and everything turned off before shut-down!

It is causing major issues for me and I also cannot login to the Apple Bug Reporter! The apple stores haven't any clue.


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 68(hidd): [0x0000000a00000160] 00:00:21 UserIsActive named: "com.apple.iohideventsystem.queue.tickle"

Timeout will fire in 99 secs Action=TimeoutActionRelease

pid 59(mds): [0x0000000c00000132] 00:00:43 BackgroundTask named: "com.apple.metadata.mds.power"

No kernel assertions.



This issue has been going for about a year now and apple still doesnt have a solution????

Aug 28, 2014 11:09 AM in response to macrowiz

further update, wiped and reinstalled mavericks again and was ok for a while then it started again. been only using a cabled mouse and bluetooth switched off/ disabled.Zap the NVRAM and all seems working as normal.


i contacted apple to update my case and was told that the NVRAM / PRAM was software based and that it is not something that should be done too often

so today from terminal i typed "uptime"

17:14 up 3 days, 23:59, 2 users, load averages: 1.02 0.94 0.86


so its been running constant for 3 days and has been sleeping normal in this time

now i have enabled bluetooth and started using my magic mouse again, i will see how it goes

Oct 7, 2014 1:18 PM in response to macrowiz

further update, since my last update all seems to be running OK. seems to be working fine for weeks now ,

I did think that the problem was the UPS that i have connected but this time i did not connect the USB cable that allows the set up of shutdown timers depending on battery power or time

all worked fine for weeks so now i have connected the USB and all seems fine, the only thing i can think this to be is that

when i did reset the NVRAM i did this 3 times not the normal once so it seem to have been something stuck in NVRAM that may have been left over and so causing the problem

Oct 23, 2014 10:36 AM in response to socceryo3

i had to reset the NVRAM again but can't exactly say definitely that its one thing or another that triggers this

To reset the NVRAM see this article on how to do this OS X Yosemite: Reset your computer’s PRAM

At step 4 i don't release after the first chime i hold until definitely the 2nd chime as its then that i notice that the sound of the chime is louder as if then its set to the default value or preferably the 3rd then release so it seem to have been something stuck in NVRAM that may have been left over and so causing the problem

Nov 3, 2015 7:24 PM in response to targus

hey man I was having the same issue for quite some time. This may not apply to you specifically but may apply to other people having this issue. I had installed the NoSleep program on my computer a month or so ago but ended up deleting the app. turns out it hadn't completely been removed from my laptop. i installed the app again and then ran the uninstall script that came with the program. closed the lid on the laptop and BOOM went straight to sleep. i guess it is probably only relevant if you've installed that program at some stage but hope it helps some people out.


Michael

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 ID.