There are several ways to disable usually noisy PC speaker in Ubuntu Linux (this is what beeps every time you wish to keep silent). The fastest one is just to unload its kernel module/driver:
sudo modprobe -r pcspkr
Add the the line “blacklist pcspkr” to /etc/modprobe.d/blacklist to turn off the speaker forever









this is one of the best tips I have read anywhere
I see your
sudo modprobe -r pcspkrand raise yousudo rmmod pcspkrThis module REALLY needs to be blacklisted by default!
This is awesome, thanks.
What, in case where hardware problem occurs? To diagnose a problem we using beep sequence depending on BIOS. Those disabled speaker not supporting such a diagnose?
@awerxx
The beeps that you would use to diagnose a problem ussually occur at startup which is independent of the os.
Cool tip!
Very useful tip. I have always hated how the PC speaker beeps when I do something simple, like hitting backspace one too many times in the terminal. This helps out a lot.
Thanks so much, I hate the guts of the PC speaker, wakes up the neighbourhood.
Awesome tip, this is one of the first things I do now on a new install.
Newbies might get thrown off by the missing .conf. Here’s the command line method of opening the blacklist.conf file:
gksudo gedit /etc/modprobe.d/blacklist.conf
Really cool tip. Thanks a bunch!