[Jinzan] [Login]
421

how to stop mac os startup sound permanently

how to stop mac os startup sound permanently

Full Link //n.sfs.tw/13018

Copy Link how to stop mac os startup sound permanently@der amateur
(Welcome to reprint and indicate the source when reproducing.)
2021-03-30 21:30:29 Last edition
2019-01-09 23:31:02 By
 

every time when mac os boots or startups from shutdown situation,

the mac os will play a loud "pong" sound as reminder,

you can temperally mute this sound by pressing the F10 function button,

however, in order to terminate it for good,

I tried several ways, finally this one did the work,

here it is,

first of all, start a terminal window when you login to mac os,

try press "command+space", to use spotlight search,

in your terminal window, make two bash files,

$ sudo nano /Library/Scripts/sound-off.sh

inside the sound-off.sh, save these contents:

#!/bin/bash

osascript -e 'set volume output muted 1'

###

and save those to sound-on.sh in the same directory, which is "/Library/Scripts/"

#!/bin/bash

osascript -e 'set volume 4'

###

then make these two scripts have the privilege to execute by using "chmod"

$ sudo chmod u+x /Library/Scripts/sound-on.sh

$ sudo chmod u+x /Library/Scripts/sound-off.sh

at last, make these actions to active in mac os by using:

$ sudo defaults write com.apple.loginwindow LogoutHook /Library/Scripts/sound-off.sh

$ sudo defaults write com.apple.loginwindow LoginHook /Library/Scripts/sound-on.sh

these steps did work on mac os mojave 10.14.2

or you can just download a free app from App store called "Silent Start"

if you decided to use Silent Start, you can still undo the write defaults above by execute these commands:

$ sudo defaults delete com.apple.loginwindow LogoutHook

$ sudo defaults delete com.apple.loginwindow LoginHook

 

END

You may be interested

how to stop mac os startup sound permanently how to stop mac os startup sound permanently

how to deal with ubuntu 18.04 network issues bring up different ethernet interfaces on installed ubuntu18.04, then fix yaml indentation problem

steps to pass-through usb smart card reader for virtualbox how to pass through usb-smart-card-reader from ubuntu host to virtualbox vm

how to install teamviewer on ubuntu linux 18.04 LTS install teamviewer by using deb file

win11 keep restart automatically after shutdown how to prevent win11 OS keep restart after manual or remote shutdown

dealing with virtualbox installation on ubuntu 22.04LTS trouble shooting on virtualbox installation

random articles

how to stop mac os startup sound permanently how to stop mac os startup sound permanently

to implement a difference function, which subtracts one list from another and returns the result. Description: Your goal in this kata is to implement a differ