kernel_task is using 100% CPU when waking from sleep

Since updating my 13" mid-2013 MacBook Air to Mavericks, there's this issue that's been happening when I wake the computer up from sleep. A proccess called kernel_task uses 100% CPU (a whole core) and hangs there until the computer is restarted. This doesn't make the computer unresponsive, but it kills battery life.


So far, I've tried the following:


1. Resetting SMC, NVRAM and PRAM: no effect.

2. Safe Boot: the issue doesn't happen.

3. Deleting old apps/plugins: issue persists.

4. Closing all apps doesn't solve issue after it takes place.

5. Repairing permissions: no effect.

6. Apple Diagnostics: no issue found in hardware.

7. No kernel extensions from third-parties are installed (there are 120 kext, according to Terminal, but they all come from Apple).

8. Everything is up to date.

9. Only external plugin installed is Flash.


Given these, I reckon it's something software-related. Any tips on solving this would be welcome — things to look for in Console logs would be greatly appreciated.

MacBook Air (13-inch Mid 2013), OS X Mavericks (10.9)

Posted on Oct 28, 2013 12:03 PM

Reply
323 replies

Dec 18, 2013 6:01 PM in response to HalexPereira

I'm pretty sure my problem is caused by apple new earphone (The one comes with Iphone 5S, which can control the volume of macbook). Other earphones do not have the same issue. Problem arises when I wake up macbook air with the apple earphone plugged during sleep (And it seems problem arise only after I used the earphone to control volume and then let macbook sleep). Simplying unplugging the earphone as someone suggests does not work for me.


How to solve:

1. Unplug apple earphone

2. Insert another earphone (whatever earphone, not the apple new one which can control the volume)

3. Closing the lids of macbook air for 5-10 sec

4. Open the lid--> problem solved.

Dec 18, 2013 9:33 PM in response to HalexPereira

I came across this thread searching for help on the kernel_panic issue:



https://discussions.apple.com/thread/5532410?answerId=24026834022#24026834022


Hutch51 wrote: I'm willing to bet it's not the battery monitor. I've been able to reproduce the issue and reproduce the fix. If I'm listening to music—iTunes, Spotify, Pandora—with or without headphones, and the computer sleeps, the kernal_task process goes to about 100% and stays there. That drops my battery from 10-12 hours on a full charge to somewhere near 4-5 hours. You can check that by pulling up the Activity Monitor and going to the CPU tab. You should see the kernal_task process running around 100%. To fix it, I close the laptop, wait five seconds, unplug my headphones (if I'm using them) or plug my headphones in (if I'm not using them), wait five seconds again, and then open the laptop. 100% of the time, this fixes the problem and I can watch the kernal_task CPU usage drop from 100% to <2%.


Also, you can download Coconut Batter to make sure that your battery isn't malfucntioning. It should be >6300 mAh for a 13" rMBP. If it's significantly below that, you might have gotten a bum battery.


Good luck.



I have exactly the same observations as Hutch and others with the kernel_panic CPU bug.


If Spotify is running and my late 2013 rMBP 13" goes to sleep, there is a 50/50 chance that, upon wake, kernel_task will go AWOL and use 100% of a core.


Closing the lid for 5s then opening solves the issue, or:


Closing spotify before sleep state seems to eliminate the issue.


Hope there is a fix soon. Crazy bug this.


Boom was also a culprit but I uninstalled that. Perhaps Boom altered the kext permanently in which case I'm considering a fresh install.



Dec 23, 2013 7:53 AM in response to jodasopa

I have been having this same problem also. No headphone but computer wakes up and kernal_task 98 to 100%. I seem to have found a pattern for me. If I close Google Chrome and put the laptop to sleep and then use Safari no issues. If I leave Chrome open and put the laptop to sleep after doing anything that uses sound (watch a yourtube or anything that has sound from a web page) the problem happens. I have gone 3 days now with just Safari and no issues. Others may want to try.


Thanks

Dec 23, 2013 7:59 AM in response to jodasopa

I had the same problem (Macbook Pro 13" Retina late 2013). When waking from sleep with headphones connected, kernel_task used 100% CPU.


I've just been on the phone with Apple Support, and they had me reboot in recovery mode (Command-R during startup), repair the disk, and then start in Safe Boot mode (Shift during startup), then reboot normally.


I can't reproduce the problem anymore, waking from sleep with headphones plugged in seems to be fine now. Will post again if problem returns, but it seems to have been resolved.

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.

kernel_task is using 100% CPU when waking from sleep

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