I ran into an issue where my volume buttons on my mac weren't able to adjust the volume of my computer. I sought a solution and someone suggested using
sudo killall coreaudiod. Now I have no volume on my computer at all. How do I fix this?
This command will do it:
sudo launchctl stop com.apple.audio.coreaudiod && sudo launchctl start com.apple.audio.coreaudiod
Martin Strouhal's answer didn't work for me on 10.13 / High Sierra due to system integrity protection:
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist: _ Operation not permitted while System Integrity Protection is engaged
However, it was correct in that restarting the service was effective. Also, the latter command (
sudo launchctl start com.apple.audio.coreaudiod) worked to restart the service after I had killed