3

I got annoyed with the system beep of Linux Mint Debian Edition when I login or logout. I have found some solutions like:

echo "blacklist pcspkr" | sudo tee -a /etc/modprobe.d/blacklist

but it didn't work for me. How can I turn off the beep?

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
Kesco
  • 31
  • 1
  • 3
  • You may need to blacklist `snd_pcsp` as well... – jasonwryan Nov 16 '12 at 06:14
  • I tried to add blacklist `snd_pcsp`, but it still doesn't work. – Kesco Nov 16 '12 at 15:26
  • For that to work, your speaker driver has to be built as a module; here I disable it with `modprobe.blacklist=pcspkr` in the kernel boot parameters. First, do `lsmod | grep pcspkr` and check if it returns anything. If it doesn't, then it's not built as a module; if it does and blacklisting does remove it from the list, then maybe the beep is not made through the system speaker? – njsg Nov 16 '12 at 15:59
  • And I think `snd_pcsp` is a completely different thing, you want to blacklist `pcspkr`, which is what provides you the usual beep speaker; I think `snd_pcsp` is a driver to use that speaker as you would use external speakers (play mp3s, etc); if I am correct, disabling it won't disable the usual beep at all, because it's a separate driver. – njsg Nov 16 '12 at 16:12
  • Yes, I don't find any driver about `snd_pcsp`.By the way, how to disable `modprobe.blacklist=pcspkr` in the kernel boot? – Kesco Nov 19 '12 at 04:36
  • 1
    From all the tutorials I've found, this is the only one that worked for me: http://community.linuxmint.com/tutorial/view/1116 – tsusanka Apr 26 '13 at 08:53

1 Answers1

5

Well, the easiest is to set setterm -blength, It'll set the beep length to 0.

when it's about X, then I'd advice xset b off, it'll disable the beep in X.

polemon
  • 11,133
  • 11
  • 69
  • 111