zhaoJian's Tech Notes

Disable the Annoying System Beep Sound in Linux (Debian)

Technology ~834 words · 3 min read - views

Recently while using Easystroke mouse gestures, an undefined mouse gesture operation would trigger a uniquely annoying beep sound in Linux. After searching online, it seems everyone calls it the beep sound.

This annoying beep system sound also frequently appears when working in the terminal.

How to disable it:

sudo rmmod pcspkr

The above method will only work until the next reboot. For a permanent solution, use the following method:

Create a pcspkr-blacklist.conf file in the /etc/modprobe.d/ directory

sudo nano /etc/modprobe.d/pcspkr-blacklist.conf

Add the following content:

blacklist pcspkr

Then press Ctrl+X, Y to save.

This will take permanent effect. If someday you miss the beep sound, simply delete pcspkr-blacklist.conf to restore it:

sudo rm /etc/modprobe.d/pcspkr-blacklist.conf
Share:

Comments