Linux - Disable internal system speaker
Symptoms
- System beeps on tab-completion
- Certain operations in VI/VIM will activate sound beep
Resolutions
At the Linux Kernel Level
Unload and blacklist pcspkr kernel module.
modprobe -r pcspkr
To blacklist a kernel module, there are multiple methods. One of them is to pass kernel bootable parameter like:
module_blacklist=pcspkr
Another method is to add the following line to /etc/modprobe.d/unwanted.conf file.
install pcspkr /bin/true
At the Application Level
Description |
Instructions |
| Disable bell on tab completion |
Edit /etc/inputrc file. Add the following line:
|
| In Vi/ViM editor |
Edit ~/.vimrc and add the following line:
|