LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to Disable the Terminal Beep when running the Shutdown command? (https://www.linuxquestions.org/questions/linux-general-1/how-to-disable-the-terminal-beep-when-running-the-shutdown-command-752320/)

Zoot 09-03-2009 03:11 AM

How to Disable the Terminal Beep when running the Shutdown command?
 
I've used the following script here:
http://ubuntuforums.org/showthread.php?t=1046137
to upgrade Alsa to 1.0.21 in Ubuntu 8.04.

Now whenever I run:
Code:

sudo shutdown -h <time> or sudo reboot
from the terminal I get a rather annoying beep sound. What's even more annoying is if I use the shutdown command to specify a time I get a beep every 10 minutes or so.
I've tried disabling the terminal beep in the terminal profile, disabling the beep in System/Preferences/Sound, adding "blacklist pcspkr" to /etc/modprobe.d/blacklist, and running gconf-editor from the terminal and setting /desktop/gnome/peripherals/keyboard/bell_mode to 'off' rather than 'on'.

This is rather annoying considering I use the shutdown command a lot when watching movies/TV series.
Anyone got any ideas on how to turn this thing off?

mdg 09-03-2009 04:58 AM

If the beep is coming from the pc-speaker, you could physically disable it on the motherboard.

Zoot 09-03-2009 10:16 AM

Thanks but it's a Laptop (Dell XPS M1530), and the beep comes from the PC speakers.

Anyway I've done a bit of digging, and it seems there's a mixer option for the PC Speaker in Alsa 1.0.21. I've also learned of a little app called GShutdown which I guess is just a GUI for the shutdown command. I'll try it later and post back the results.

repo 09-03-2009 10:19 AM

To disable the beep
Code:

sudo modprobe -r pcspkr
To make it permanent
Code:

echo "blacklist pcspkr" | sudo tee -a /etc/modprobe.d/blacklist

Zoot 09-03-2009 12:04 PM

Quote:

Originally Posted by repo (Post 3668402)
To disable the beep
Code:

sudo modprobe -r pcspkr
To make it permanent
Code:

echo "blacklist pcspkr" | sudo tee -a /etc/modprobe.d/blacklist

Already tried that, no joy... Thanks anyway. :)

However what did work was muting the "PC Beep" in the Gnome ALSA Mixer. I think the Mixer option for that was only added with Alsa 1.0.21.

Either way, problem solved.

repo 09-03-2009 01:16 PM

Quote:

Either way, problem solved.
If you want you can mark the thread solved.

Zoot 09-03-2009 02:06 PM

Quote:

Originally Posted by repo (Post 3668594)
If you want you can mark the thread solved.

Done. Thanks :)


All times are GMT -5. The time now is 12:48 AM.