I have a sound problem on my 2010 Mac mini. I found a solution that uses a sudo command in the Terminal app. But this method only works one time, so when the computer turns off and then back on, you need to start over..
Please bear with me - I'm new in this Mac universe.
From this site, I’ve found that you can use a Launch Daemon to execute it.
I can't seem to figure out a working file.
My sudo command for the sound fix is:
sudo kextunload /System/Library/Extensions/AppleHDA.kext
After that type:
sudo kextload /System/Library/Extensions/AppleHDA.kext
Remember, sudo requires an administrator password.
My idea here is to run this at startup so I don't have to type it every time.
Can someone help me write it?
sudoallows you to run any command as another user, in this case root. Since you mention running as a launch daemon, then those commands are already run as root, sosudoisn’t necessary. There are existing posts on how to do this – Allan Mar 03 '20 at 20:13