Friday, 14 September 2012

PC speaker beep is so annoying

When working on a linux machine and tabbing out your commands, it often happens that you hear the speaker beep. This can be very annoying. So let's turn it off. Remove the pc speaker modules "pcspkr" and "snd_pcsp". You might have only one of these modules in use, but they both enable beeps.

Open a terminal and issue this command as root:

# modprobe -r pcspkr snd_pcsp

To prevent the "pcspkr" and "snd_pcsp" modules from loading again at startup add them to modprobe's blacklist in /etc/modprobe.d/blacklist. You can do this with the following command:

# vi /etc/modprobe.d/blacklist
blacklist pcspkr
blacklist snd_pcsp


See: http://www.thinkwiki.org/wiki/How_to_disable_the_pc_speaker_(beep!)