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

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

Jan 18, 2014 8:59 PM in response to HalexPereira

Hi, I'm also reporting that my late 2013 MBP 13" with Mavericks and this kernel_task stuck at 100% issue when:

- Only if a Flash or HTML5 video has been running and computer is put to sleep. Regardless of the type of browsers used. My source of Flash video and HTML5 video is Youtube

- then computer is waken up

- regardless of a headphones are plugged in or not.

- this happens EVERY TIME.


What works to put the kernel_task back to low teens:

- log out and back in. A full reboot also works but not necessary.

- *sometimes works* if i was on headphones, unplug the headphones, put my MBP to sleep and wake it up.

- "what i believe works" play something in iTunes and while it's playing put my MBP into sleep and wake it up.


What doesn't work for MBP as opposed to what's reported to work here for MBA:

- using AppleHDA kext from 10.8.5.

- unloading AppleHDA kext and reloading it. The sound is lost and requires a reboot to get it back.

- Putting MBP to sleep and waking up without headphones or iTunes tricks above.


What it does to my daily usage pattern:

- I have been checking on the Activity Monitor for kernel_task annoyingly, obsessively and compulsively.

Jan 18, 2014 10:52 PM in response to donkim0822

donkim0822


I have late 2013 MBP 13" with Mavericks.


i can't repeat that:

"Only if a Flash or HTML5 video has been running and computer is put to sleep."


BUT somehow I can't anymore repeat ANY earlier methods to put kernel_task to 100%. I reported many methods to this thread 01/11/2014 how my MBP kernel_task goes to 100% but somehow I can't even repeat those methods.


It has been about 4 or 5 days when my MBP hasn't gone "100%". and I haven't done any "fixes" or reinstallations or whatever. And I also have been checking on Activity Monitor for kernel_Task annoyingly and compulsively but nothing has happened. Very strange.


Could it be some kind of indexing task and it's completed?

Jan 19, 2014 5:35 PM in response to alexfsu

I used John_Raz's method in previous page. Thanks John. You need to with sudo in terminal for each and every command.

I was worried I'd mess up so I took a Time Machine backup, made sure the kext was backed up, then created a tarball of AppleHDA.kext folder and then moved it to AppleHDA.kext.disabled folder before I copied 10.8.5 kext in place. Since I'm new to MacOS and doing something I never did, I wanted a somewhat reliable way to go back just in case. 🙂


Anyhow, this method ain't working for MBP so I'm praying for a new update from Apple.

Jan 20, 2014 6:09 PM in response to northwest291

Thank you northwest! I "dirty" reinstalled Mavericks (i didn't erase anything on my disk) and the kernel_task cpu usage is now finally staying low where it belongs!


I tried putting my MBP to sleep and waking it up while playing HTML5 in Safari, and playing Flash videos in Chrome and Firefox and they all behaved!


btw, I find Safari's HTML5 extension from http://www.verticalforest.com/youtube5-extension/ more energy efficient than when it's natively playing Youtube in regular Adobe Flash.


Now I can play some music in the background and leave Activity Monitor alone.

Jan 22, 2014 11:40 PM in response to donkim0822

Yup, my kernel task is back with full force. Not behaving at all. When I wake my MBPr from sleep, and the headphones are not plugged in, a solution is to start iTunes and start a song, then closing iTunes again.


I am not happy at all with this, and I think Apple should come forward with some kind of feedback since so many users exoeriences this problem. I have to run Activity monitor at all times so I can keep an eye on the kernel process.


The "dirty" reinstall of Mavericks did not do the trick. Disappointed long time Mac user...

Jan 23, 2014 3:43 PM in response to John_Raz

Just wondering if it could be linked to that:


This bug is barely occuring for me at home.


But when I'm at my grandparents' house, their power outlet is old and only has 2 output (hence no earth connection). There, the bug happens all the time.

At home, I have 3 outputs on my outlet (with the earth connected) and it barely happens.


Do you think it could be linked?

Jan 23, 2014 7:58 PM in response to John_Raz

it must work for MBA. For MBPr late 13 it doesn't. Thanks. I would like see if AppleHDA kext from MBP 15" works though. Maybe I should visit Apple store again to get a tarball or something.


For now, I just disabled sleep when the lid is closed with "No Sleep" app. It seems to use 1% of battery per hour for the 2 hours I had it closed.


ugh.


When I'm sure nothing's streaming/playing, I can hit the power button to put it to real sleep.

I found if anything is playing, online or local content in MPlayerX, Tuba, and Minitube and if computer is put to sleep, I'm guaranteed to get kernel_task at 100% when it's waken up.

Jan 25, 2014 5:42 PM in response to HalexPereira

Seems to be related with AppleHDA Audio Codecs (old ones from OS10.8 work), that's why when you guys unplug the headphones the CPU level cames to normal levels. This problem is still not solved.


I've been chating with some Apple amployees about it and they say it's a Maverick's problem. I've said them that so many people is having this problem in Apple's official forums and they reccommend me to say you guys to open a "Feedback Bug Report" in Apple's website: http://www.apple.com/feedback/


They told me that in the forums where you guys explain this issue, they don't read it them all, and the worst of all, apple enginyeers don't read them. So, i reccommend you to open a Bug Report in order to let them know about this problem and giving them enough information to solve it.


Thanks

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