Skip to content

Instantly share code, notes, and snippets.

@adrn
Last active January 4, 2016 15:08
Show Gist options
  • Save adrn/8638334 to your computer and use it in GitHub Desktop.
Save adrn/8638334 to your computer and use it in GitHub Desktop.
OS X Mavericks has some audio issues on sleep/wake.
#!/bin/bash
# see: https://discussions.apple.com/thread/5482053?start=45&tstart=0
#
# 1) Create a bin path in your home directory (mkdir ~/bin)
# 2) Add this bin to your path in your rc or shell profile (e.g., export PATH=$PATH:${HOME}/bin)
# 3) Copy and paste this gist into a file in ~/bin (e.g., curl -vs https://gist.github.com/adrn/8638334/raw 2>&1 > ~/bin/fixaudio)
# 4) If your audio ever stops working, just execute 'fixaudio' at the command line.
sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment