Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Maybe one reason I haven't had any problems with my rMB (or for that matter, my rMBP) is that I don't use the "sleep" function at all..... The machine is either on as I'm using it or it's shut down completely.

Yep, that'd do it! So you have "turn display off after" set to Never in your Power prefs for battery?
 
Well, anyone still wondering whether to try to get their Macbook swapped for a new one, don't bother. Like others, a new one exhibits the same behaviour. In fact, happened the first time I left it overnight! In my other post at https://forums.macrumors.com/threads/kernel-panics-on-macbook-12-9-1.1980359/page-4#post-23316896, I explained how these Macs wake themselves out of standby every 2 hours. Apart from wasting battery and shortening its life, it's also reading and writing a sleep image every time, which shortens the life of the SSD. My new Macbook, with its fresh OS install and just signing into iCloud on a new user, still does this so I'm guessing they all do. No other Macs do this when on battery. I reckon this is another bug.

I'm trying something now to see if it eliminates the panics. Macs have a standbydelay time. They go into normal sleep mode after whatever time you've set, then go into standby (aka hibernate) after standbydelay. On these Macs, standbydelay is by default set to 10800, which is 3 hours. So the Mac sleeps after the sleep time, wakes up after 2 hours because of the other possible bug, then an hour later goes into standby. Then every 2 hours after that it comes out of standby, reading the sleepimage, and a short while later goes back into standby. Standby is a much deeper state of sleep that turns most stuff off (I think part of the sleep bug is that it keeps wifi on, but that's another story). So I'm going to try disabling standby altogether. The machine will only ever sleep and never go into the deep standby state. Maybe this will stop the panics. Downside is that sleep using more battery than standby - but a lot less than the huge drain when the panic bug rears its ugly head! Disabling standby is pretty easy:

Start the Terminal app from a user with admin privileges.
Enter the command:

sudo pmset -b standby 0

Enter your password and that's it. The -b parameter says to only affect the battery settings. You can see all the power management settings using:

Pmset -g

To revert, use:

sudo pmset -b standby 1

Anyone else willing to give this a go?

In my case, everything has been working fine now for a week. Maybe its just coincidence but I think disabling bluetooth is the key difference. Could you try that?
[doublepost=1473334905][/doublepost]
I'm having this issue too. But I also have another sleep/hibernate issue, and I wonder whether it is related and if others can confirm it happens on their MacBooks too...

I'm finding that the Mac wakes up exactly every 2 hours when on AC or battery, even without powernap or wake for wifi. This only starts happening once you sign into iCloud. From the logs, it looks like an issue with a TCP keepalive that's for the Apple Push Services Daemon. It also looks as though wifi is kept on even when on battery, which seems plain wrong. I've even seen the Mac wake up from standby with a wake reason of "network" (it's usually RTC/Maintenance), which proves wifi is left on all the time. Battery drain during sleep certainly seems worse than other laptops. Can anyone please look at their Console logs when the machine is left, say, overnight on battery power, and see if it regularly wakes up every 2 hours? Have to look at the logs from a user with admin privileges.

Be very interested in comparing notes...

I can also confirm that my macbook wakes up exactly every 2 hours. Also with powernap and wake on wifi disabled.
 
Last edited:
Yep, that'd do it! So you have "turn display off after" set to Never in your Power prefs for battery?

Yes, that is correct. I decided a long time ago that I just didn't care for the "sleep" function and either I"m using my machine or I'm not. If I am going to be away from the machine for a significant time I simply go ahead and shut it down, and I shut it down each night at bedtime as well.
 
I really encourage those who are having "panics" to check closely the logs and look for drivers that aren't Apple.

While the Appple products do have issues and there are hardware flaws that make it past the testing process, most panics are not because of these. The logs are cryptic in that they list memory locations where the bad code hits and of course if there is a memory location which is physically bad a panic will occur.

It appears a large majority of issues seem to be because of the video and next in line are IO issues. Ask if you have anything loaded from a program which is causing the panic. Start with a clean OS X load and then slowly add back the programs you use (not from a backup) and see if the panics start again.

The only problem with this approach is, if you're like me, there is too big an investment in software and it may be impractical to not load from a backup.

Good luck to you all!
 
In my case, everything has been working fine now for a week. Maybe its just coincidence but I think disabling bluetooth is the key difference. Could you try that?
[doublepost=1473334905][/doublepost]

I can also confirm that my macbook wakes up exactly every 2 hours. Also with powernap and wake on wifi disabled.

I will certainly try disabling bluetooth once I've run for a while without standby. Trouble is, it takes so long to try any individual change because the panics happen only maybe once or twice a week.
[doublepost=1473369928][/doublepost]
I really encourage those who are having "panics" to check closely the logs and look for drivers that aren't Apple.

While the Appple products do have issues and there are hardware flaws that make it past the testing process, most panics are not because of these. The logs are cryptic in that they list memory locations where the bad code hits and of course if there is a memory location which is physically bad a panic will occur.

It appears a large majority of issues seem to be because of the video and next in line are IO issues. Ask if you have anything loaded from a program which is causing the panic. Start with a clean OS X load and then slowly add back the programs you use (not from a backup) and see if the panics start again.

The only problem with this approach is, if you're like me, there is too big an investment in software and it may be impractical to not load from a backup.

Good luck to you all!

Thanks for the comments. The only things in the backtrace in the panic logs are apple modules. Others here and on the reddit post have tried OS reinstalls with minimal additions and the problem persists. I think (hope) we're looking at a driver problem. The only solution is for us all to hit Apple support and ask for this problem to be escalated. I'm certainly intending to do that, along with the problem of these machines waking up every 2 hours, which just doesn't seem right (and might be part of the problem itself).
 
Last edited:
There may be three or more issues, some of which will be not for Apple to fix.

To properly tell, I'd need to see .panic files with (as previously demonstrated) address-to-symbol translation.
 
There may be three or more issues, some of which will be not for Apple to fix.

To properly tell, I'd need to see .panic files with (as previously demonstrated) address-to-symbol translation.

I have turned on symbols via sudo nvram boot-args="-v keepsyms=y". My plan is to try the Mac with standby off for at least another week to see if it at least bypasses the panic issue. But if I get another panic, I'll be sure to post the log here. When I rebooted after the command, I saw lots of console messages fly past. Is that normal? Also, how do I reverse the symbols? Just sudo nvram boot-args="-v keepsyms=n"?

Thanks for your interest in our problems...
 
  • Like
Reactions: grahamperrin
OK. https://forums.macrumors.com/posts/23378363 was based on:
  • my limited experience with pre-release macOS Sierra (Mac OS X 10.12); and
  • my assumption that SIP in Sierra will be no more, no less protective than SIP in El Capitan.

(With all Apple operating systems after Mavericks, I have relatively little experience.)
 
OK. https://forums.macrumors.com/posts/23378363 was based on:
  • my limited experience with pre-release macOS Sierra (Mac OS X 10.12); and
  • my assumption that SIP in Sierra will be no more, no less protective than SIP in El Capitan.

(With all Apple operating systems after Mavericks, I have relatively little experience.)

Oh well, chalk that one top to experience eh? El Capitan must be different I guess. BTW, never heard of TrueOS before. Sounds interesting...
 
  • Like
Reactions: grahamperrin
I will certainly try disabling bluetooth once I've run for a while without standby. Trouble is, it takes so long to try any individual change because the panics happen only maybe once or twice a week.
[doublepost=1473369928][/doublepost]

Thanks for the comments. The only things in the backtrace in the panic logs are apple modules. Others here and on the reddit post have tried OS reinstalls with minimal additions and the problem persists. I think (hope) we're looking at a driver problem. The only solution is for us all to hit Apple support and ask for this problem to be escalated. I'm certainly intending to do that, along with the problem of these machines waking up every 2 hours, which just doesn't seem right (and might be part of the problem itself).

2 weeks now and no more kernel panics so far. Also no more wakes every 2 hours and I didn't change anything, only disabled BT.
 
  • Like
Reactions: Gpulvi
I had similar sleep/wake issues with my 2015 MacBook. Eventually traced the cause to Adobe Flash Player, once that was uninstalled problem went away completely.
 
  • Like
Reactions: mikelj
I had similar sleep/wake issues with my 2015 MacBook. Eventually traced the cause to Adobe Flash Player, once that was uninstalled problem went away completely.

The "wake every 2 hours" issue happens with a brand new OS install, with a brand new user. You only need to sign into iCloud on that user, and the machine wakes every 2 hours and, I believe, leaves wifi turned on. No Flash in sight. Others have reported the kernel panic occurs with a brand new install too. Good thought though!

2 weeks now and no more kernel panics so far. Also no more wakes every 2 hours and I didn't change anything, only disabled BT.

I turned off Bluetooth overnight. The machine still wakes every 2 hours. Are you signed into iCloud, because that's what instigates the issue? If you are, would you mind posting a copy of the console log from the time just before you put it to sleep, to the time you woke it up, with that period covering preferably a bit over 5 hours (2 hours for the 2-hourly wake-up, another hour for it to go into standby, and another 2 hours to see if it wakes up again)? If you've managed to somehow stop it waking up, that will improve battery life while asleep and will probably also stop the panics, because they happen when the machine wakes itself up from standby (hibernation) during a long period asleep. I also presume you leave wifi turned on before you sleep there machine? Hopefully we can compare configurations and pin this down some more...

EDIT: I also have had no kernel panics with standby turned off for a bit over a week. Battery drains about 3% overnight when it just sleeps and never goes into standby, but of course, always wakes up super-quickly all the time. Still wakes up every 2 hours, but for a very short while because it doesn't have to read the sleep image and come out of standby all the time.
 
I use both BlueTooth and Adobe Flash Player in my computers.....and never any problems with kernel panics. I still think the waking every two hours problem is related to the Energy settings.

Not at all. The only energy settings that affects sleep on battery is Power Nap, and we don't have that checked. The 12" Macbook is the ONLY machine I have tested that wakes like this. I've tried multiple later model Macbook Pros, an 11" Macbook and a Macbook Air. The only time I've seen anything like this is when on AC with wake for network access and power nap turned on in the Power settings for AC. On battery, it seems to behave as though wake for network access is turned on, especially since I sometimes see wake reasons of "network" even outside the periodic 2 hour wakes. When it's asleep on battery it just shouldn't be woken by things like this, unless Apple has changed something radically just for this particular model.
 
The "wake every 2 hours" issue happens with a brand new OS install, with a brand new user. You only need to sign into iCloud on that user, and the machine wakes every 2 hours and, I believe, leaves wifi turned on. No Flash in sight. Others have reported the kernel panic occurs with a brand new install too. Good thought though!



I turned off Bluetooth overnight. The machine still wakes every 2 hours. Are you signed into iCloud, because that's what instigates the issue? If you are, would you mind posting a copy of the console log from the time just before you put it to sleep, to the time you woke it up, with that period covering preferably a bit over 5 hours (2 hours for the 2-hourly wake-up, another hour for it to go into standby, and another 2 hours to see if it wakes up again)? If you've managed to somehow stop it waking up, that will improve battery life while asleep and will probably also stop the panics, because they happen when the machine wakes itself up from standby (hibernation) during a long period asleep. I also presume you leave wifi turned on before you sleep there machine? Hopefully we can compare configurations and pin this down some more...

EDIT: I also have had no kernel panics with standby turned off for a bit over a week. Battery drains about 3% overnight when it just sleeps and never goes into standby, but of course, always wakes up super-quickly all the time. Still wakes up every 2 hours, but for a very short while because it doesn't have to read the sleep image and come out of standby all the time.

Hi there. Unfortunately you are right, I double checked my logs today and found that my computer is waking up every 2 hours again.

I can confirm that I'm signed into iCloud and seems to be the main reason for the wakes. Also, no more kernel panics if I shutdown BT before closing the lid (wifi is still on).

Also, take into account that tomorrow I may be updating to Sierra and this issue may "mysteriously" disappear ;)

Anyway, I can hold the update and retrieve some logs for you. Do you still want me to post them and investigate further or we do make the jump to Sierra?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.