2

Under Linux - Is there a simple way of disabling all beeps for all applications?

A coworker near me has a Linux computer that beeps a lot. It's running a scheduled task that runs for several hours, and beeps constantly - it can beep dozens of times per minute. Somehow she and other workers can live with the constant beeping, but frankly, this drives me nut crazy. The program causing the beeps isn't a shell script, it's a homemade gui program.

I assume it is an old production server, and the job it does is important, so I'd prefer a minimal impart solution, preferably without restarting.

1
  • Thanks everyone! The server starts at weekends and runs until Sunday (work day here), so I can only check this next week. I'll be back.
    – Kobi
    Aug 3, 2009 at 10:27

4 Answers 4

5

I'm assuming that you mean the PC Speaker beep, because the beep in a connected speaker would be easy to remove by just turning off the speakers.

See this answer on server fault, but the jist of it is:

modprobe -r pcspkr

on the command line, and add

blacklist pcspkr 

to the /etc/modprobe.d/blacklist.conf file.

Newer kernels use the snd_pcsp module instead, so if it doesn't work, try the same two things as above except with snd_pcsp in the place of pcspkr

2
2

Given that it's a GUI program, you can just type "xset b off" in a terminal.

1

Not exactly Linux-specific, but I've been known to unplug the speaker wires from the motherboard. Unfortunately, not all computers like to be opened up while running.

1

Most motherboards have a beeper somewhere on them, this sounds if you haven't connected the one on the case. (this is an extra beeper, nothing to do with soundcards or 'real' speakers in some more expensive cases) Removing the pcspkr module will only work if it is compiled as module and not built into the kernel.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .