Disable startup/shutdown sounds
-
the music is a nice notifications but i have a laptop with a very loud internal speaker. startup/shutdown can be heard throughout my house, especially at my preferred maintenance time of late at night.
any easy way to turn this off?
-
Edit /usr/local/bin/beep.sh and customize however you like. :-)
-
can I just delete the file if I want to kill all sound effects? if not, what changes to the file are required to kill all sound effects?
Roy…
-
If you edit the file, it's rather obvious…
-
I looked at the file before I posted my question. I'm not a coder so I'm going to need a little hand-holding here. :)
Roy…
-
Doesn't take a coder to see all the lines that call a command called "beep" and deduce that's what makes a beep.
:-) -
Thanks for all the help jimp,
I think I'll just put a switch in series with the speaker as I am a hardware guy.
Roy…
-
I found this solution in another place:
You can just rm beep.sh, and if you add that to an <earlyshellcmd>tag so it's done on every boot, upgrades won't matter.
The hidden config.xml option <earlyshellcmd>will run the command specified at the beginning of the boot process. Normally you should use <shellcmd>rather than this, though this may be necessary in some circumstances. Similarly to <shellcmd>, to add a <earlyshellcmd>option, backup the configuration, open it in a text editor, and add a line such as the following above :
<earlyshellcmd>rm /usr/local/bin/beep.sh</earlyshellcmd>
Where "rm /usr/local/bin/beep.sh" is the command to run. You can add multiple <earlyshellcmd>lines to execute multiple commands. Save your changes and restore the modified configuration.</earlyshellcmd></earlyshellcmd></shellcmd></shellcmd></earlyshellcmd></earlyshellcmd>
-
Or just install the shellcmd package and manage the commands that way.
Though I still wouldn't recommend just removing the file, as it will cause the process that calls it to error off (though probably without many/any side effects).
-
or a GUI option could be added to disable this "feature".
Roy…
-
rpsmith;
ill help you.
delete all the old text, and copy and paste this in its place.
# Check for different HZ if [ -f /boot/loader.conf ]; then HZ=`/usr/bin/grep -c kern.hz /boot/loader.conf` if [ "$HZ" = "1" ]; then NOTELENGTH="10" fi fi if [ -c "/dev/speaker" ]; then if [ "$1" = "start" ]; then # /usr/local/bin/beep -p 500 $NOTELENGTH # /usr/local/bin/beep -p 400 $NOTELENGTH # /usr/local/bin/beep -p 600 $NOTELENGTH # /usr/local/bin/beep -p 800 $NOTELENGTH # /usr/local/bin/beep -p 800 $NOTELENGTH fi if [ "$1" = "stop" ]; then # /usr/local/bin/beep -p 600 $NOTELENGTH # /usr/local/bin/beep -p 800 $NOTELENGTH # /usr/local/bin/beep -p 500 $NOTELENGTH # /usr/local/bin/beep -p 400 $NOTELENGTH # /usr/local/bin/beep -p 400 $NOTELENGTH fi fi