Good thing that OS X is based on BSD, and therefore very unix-y, we can simply edit the local shutdown script (/etc/rc.shutdown.local) and append the following line:
/usr/sbin/nvram SystemAudioVolume=%80This will set the volume in nvram to zero and effectively disable the startup chime, so you won't be annoyed by the startup chime when you forgot to mute the OS X audio volume before shutdown. The good thing with this method is that you don't need to install nasty third-party software, and that it still preserves the volume settings inside Mac OS X and (of course) in Linux, thanks to alsactl's restore functionality.
3 comments:
Ah, yes. thanks again for yer help ^^
Here's another one with a slightly different approach(using a service)
https://www.curby.net/filelib/DebongIntel/
even has got a macuser-proof(SCNR :) installer :D
Is this compatible with OS X 10.5? I mean launchd is Apple's attempt at getting rid of rc scripts. What would a compatible tweak be in this scenario?
Great work!
John
That did the trick. Neat and tidy, just tried it on my MacBook3,1 OS X 10.5.1
Many thanks!
John
Post a Comment