How to permanently disable the Xorg Beep in Linux

The annoying Xorg beep can be disabled permanently. You only need to remove pcspkr from the kernel and add it in the blacklist:

Remove pcspkr from kernel:

$ sudo modprobe -r pcspkr

Blacklist the pcspkr:

Adding the pcspkr to blacklist will not load it anymore in the kernel.

Just append (as root) “blacklist pcspkr” in modprobe’s blacklist configuration file, like this:

$ sudo echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist.conf

Add the Xorg beep back to your system:

Insert it back in the kernel modules:
$ sudo modprobe pcspkr

Remove (or comment) in /etc/modprobe.d/blacklist.conf, this line: blacklist pcspkr

Related reading: How to disable the Hardware Beep in FreeBSD.

Liked it? Take a second to support Geekster on Patreon!
Tagged with: , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Support LinuxG via Patreon
Support LinuxG.net on Patreon!
Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!