Wednesday, July 1, 2009

Beep Beep!!

The PC speaker is a relic from the medieval times when people were awed by the sound effects of Dangerous Dave... But strangely enough, it is used heavily by most linux distros. This is most noticeable if you do text editing in the terminal, or inside gnome(sometimes kde) default apps like gedit...

If you are one of those people who does not appreciate the fact that their machine can do a very good Road Runner impression, here is how you can fix things:

Firstly, if you are facing this problem only in gnome-terminal, you can turn off system beep from the terminal options (Edit->Profile Preferences, uncheck "Terminal Bell")

If you want a slightly geekier (and more effective) solution, you can disable the PC speaker in this way:

sudo modprobe -r pcspkr

This will disable the PC Speaker for the current session. If you want a more permanent solution, you can blacklist the PC Speaker by editing the "/etc/modprobe.d/blacklist" file.

sudo gedit /etc/modprobe.d/blacklist

Then add this line at the end of the file:

blacklist pcspkr

Save the file, and next time you start your machine, and there should be no more of that infernal beeping.

modprobe is a utility that can load and unload linux modules. To learn more about it visit the Wiki page

No comments:

Post a Comment