Home » Questions » Computers [ Ask a new question ]

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

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

I've seen different ways to turn off the annoying Ubuntu beep but what is the best way to turn it off permanently through software?

Asked by: Guest | Views: 468
Total answers/comments: 3
Guest [Entry]

"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.


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


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.


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)."
Guest [Entry]

For me (ubuntu 18.04) going to "terminal menu" > "preferences" > (Active profile, it's under profiles with a check mark) > "text" (tab) > "sound" > "terminal bell" and unchecking it fixed the issue.
Guest [Entry]

"Check out this answer over on serverfault

Disconnecting the speaker works too ;)"