Disable speaker Beep in Debian + PulseAudio

I hate that annoying beep, that drives me crazy! Disabling the pcspkr kernel module and blacklisting it from being loaded should help:

# echo 'blacklist pcspkr' | sudo tee -a /etc/modprobe.d/pcspkr.conf
# sudo rmmod pcspkr

That only/just turned off beeps in my console, but some Xorg applications still made them. In order to turn them off, first we need to identify our soundcard-id.

List all audio devices:

# aplay -l

That brings something like this:

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

The device i want to disable the beep from is “card 0”. Lets do it:

# amixer -c 0 set Beep 0% mute

Replace/use “Beep” or “PC Beep”, that depends on your soundcard and alsa configuration. The output should be something like this:

Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 0 [0%] [-18.00dB] [off]

To be sure i also invoke a

# sudo alsactl store

Reboot and your’e done!