Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
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 '09 at 10:27
add comment

4 Answers

up vote 5 down vote accepted

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

share|improve this answer
1  
Note: this question is also a duplicate of superuser.com/questions/15770/… , which may need a retitle or something –  jamuraa Aug 2 '09 at 8:18
    
For me (Ubuntu 9.04) this still worked with pcspkr. –  Mark van Lent Aug 2 '09 at 8:19
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.