MacOS – MacBook Air doesn’t recognize headphone anymore

audioheadphonesmacbook promacos

I have a MacBook Air, mid 2012 running the macOS 10.12.4 beta. Since recently, my headphones stopped working. If I plug them in, the computer still uses the internal speakers. And if I go to system preferences, I still doesn't recognize my headphones. I've searched the web for this problem, and I saw that some other people have the same problem. I can only fix this by restarting, but that's very annoying.

Can anybody please help me?

Best Answer

Restarting the OS X audio subsystem might fix the problem, without the need to do a full reboot. You could try running the following commands in Terminal

sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext
sudo killall coreaudiod