Preamble
This may also be referred to as the system beep. Ubuntu utilizes this function found on the majority of computers rather a lot, and it can, for some become an irritation.
A guide does already exist, but on reading seems tailored to laptop users: http://ubuntuforums.org/showthread.php?t=126746
You may find suggestions else where that instruct you on how to remove the module, or indeed disable the terminal bell. For the purposes of this guide though we will be blacklisting the module as it is the more elegant means of disabling the internal speaker. The module will not even be loaded at boot time.
This has been tested and verified under the following, if you have success in other releases, please let me know and I can add to the list:
- Karmic (9.10)
- Intrepid (Beta, RC and 8.10)
- Hardy (8.04 and also 8.04.1)
Blacklisting the module
This method requires basic knowledge of the terminal, but is still very simple.
Fire up a terminal session (Applications > Accessories > Terminal) and proceed with the following command:
Enter your password when prompted, it will not display any input.Code:sudo gedit /etc/modprobe.d/blacklist
At the very bottom of the file that is now open in Gedit append the following:
Save and close. Next boot, the module will not be loaded and your annoyance ceases.Code:blacklist pcspkr
If you do not want to reboot to initiate the effects of the file, you can manually disable the module using:
Bare in mind that this piece of code will only disable the module until next boot, if you do not use the above blacklisting method.Code:sudo modprobe -r pcspkr
To reverse the process follow the same steps as above, but remove the line you added to the blacklist file.
Bookmarks