The Computer Oracle

What is the best way to turn off the Ubuntu beep permanently?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puddle Jumping Looping

--

Chapters
00:00 What Is The Best Way To Turn Off The Ubuntu Beep Permanently?
00:15 Answer 1 Score 4
00:26 Answer 2 Score 4
00:52 Accepted Answer Score 35
02:17 Answer 4 Score 6
02:27 Thank you

--

Full question
https://superuser.com/questions/15770/wh...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#ubuntu

#avk47



ACCEPTED ANSWER

Score 35


disable the warning beep you can do so by editing your /etc/rc.local file. Open the file in your editor of choice and go all the way to the bottom of the file. At the bottom there should be a line which reads exit 0. Add a new line directly above this one and put this on that line:

modprobe -r pcspkr 

Save the file and this will turn off the system beep. If you want to turn the system beep back on, just edit this file again and remove the line that was added.

(OR)

You can disable this by editing a file and entering two simple lines.

gedit /etc/modprobe.d/blacklist

And then add:

blacklist pcspkr

Save your file and the speaker beep will be gone when you reboot.

If you don’t want to wait until a reboot, simply type:

sudo rmmod pcspkr

(OR)

You can disable system bell if in the Terminal you go to Edit->Current Profile->General and uncheck the Terminal Bell Or in the Configuration editor go to apps->Gnome-Terminal->Profiles->default check silent Bell.

(OR)

Edit the .inputrc file in your home directory (create it if needed) and add the line

set bell-style visible

You can also add (or uncomment) this line in the general /etc/inputrc file to set the bell-style for all users (overriden in ~/.inputrc).




ANSWER 2

Score 6


Ubuntu 16, search the applications for Sound, click on "sound effects" tab, Set the alert volume under that tab to "Off"




ANSWER 3

Score 4


Disconnect the PC speaker inside the Chassis.

That is the simple answer.




ANSWER 4

Score 4


The best way is to disable the pcspkr driver, that way you don't have to undo any hardware changes in the future. Open up a terminal and enter the following:

sudo modprobe -r pcspkr

Then, if you want to avoid doing this every time after rebooting, append the following line to your /etc/modprobe.d/blacklist file. If it's not there, create it.

blacklist pcspkr