Wednesday, 5 November 2008

How to Disable The PC (internal/system) Speaker in Ubuntu 8.04/8.10

This may also be referred to as the system beep. Ubuntu utilizes this function found on the majority of computers.


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:

sudo gedit /etc/modprobe.d/blacklist

Enter your password when prompted, it will not display any input.

At the very bottom of the file that is now open in Gedit append the following:

blacklist pcspkr

Save and close. Next boot, the module will not be loaded and your annoyance ceases.

4 comments:

JMC said...

also, you can disable it without having to reboot by doing:

sudo rmmod pcspkr

JMC said...

You can also put this into a separate file, so that it does not conflict with any updates to that file.

echo "blacklist pcspkr" >/etc/modprobe.d/blacklist-pcspkr

WindPower said...

Alternatively, go to the sound preferences, and you can uncheck a box to disable it.

Jeancarlo Silva said...

You can also run command modprobe -r pcspkr for temporary disable bip.