Friday, October 9, 2009

Disable Your PC Speaker in Ubuntu

You know that annoying, shrill beep that comes not from your speakers, but rather inside the depths of your computer called a system beep? I hate it, but Ubuntu likes to use it when, for example, I'm searching for text in Firefox and I get to the point where the text doesn't match anything. In Windows, this invokes a fairly annoying noise. In Ubuntu, it's the system beep, which is even worse. Here's how to disable it:

Stop it for now by doing the following:

sudo modprobe -r pcspkr

Stop it forever by blacklisting the module.  Edit /etc/modprobe.d/blacklist and add this line:

blacklist pcspkr


That's it



No comments: