macfidelity

|

rethinking the think-different thing

Howto disable OSX boot sound

September 8th, 2007 at 22:04

…or Howto disable the startup chime

Well there is already a gui-based solution for that problem, called:

StartUpSound.prefPane

But maybe you prefer a command-line based method

I found that hint on macosxhints.com

Basic idea:

  • We create 2 files:
    • (1) Mute the sounds while shutdown. This script will save the previous volume
    • (2) Unmute the volume, if it was muted

Now lets see the scripts:

(1) /etc/rc.shutdown.local

#!/bin/sh

OSA=/usr/bin/osascript

echo OUTPUT_MUTED=`$OSA -e “output muted of (get volume settings)”`
> /etc/volume.settings

$OSA -e “set volume with output muted”

and (2) /etc/rc.local

#!/bin/sh

OSA=/usr/bin/osascript

if [ -r /etc/volume.settings ]; then
. /etc/volume.settings

# If the volume wasn’t muted before shutting down, unmute it on
# startup
if [ $OUTPUT_MUTED = "false" ]; then
$OSA -e “set volume without output muted”
fi
fi

Tags: , , , , , , ,

2 Responses to “Howto disable OSX boot sound”

  1. mac | Startsounds | macfidelity Says:

    [...] in diesem Zuge wieder einfällt dass er den Sound loswerden will findet in diesem etwas älteren Beitrag vielleicht ein paar relevante Informationen / Ideen. Share [...]

  2. mac | Apple Boot Logo abändern | macfidelity Says:

    [...] Tipps zum Thema Startsound findet hier im Blog einige Informationen oder aber greift einfach direkt auf das PrefPane StartupSound zurück wenn es einfach nur ums [...]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>