How should I disable beep permanently? I know xset b off can do this, but what's the corresponding option in xorg.conf? Or any other way to do this?
Asked
Active
Viewed 1.4k times
9
Gilles 'SO- stop being evil'
- 807,993
- 194
- 1,674
- 2,175
daisy
- 53,527
- 78
- 236
- 383
3 Answers
15
There are a few ways that you could achieve this permanently:
- You could add
xset b offto your launch programs (if you are usingstartxor similar, this will be~/.xinitrc, otherwise for GNOME/KDE/etc, use your "startup programs" application) - You could blacklist the module responsible for controlling the PC speaker (and thus also the PC beep), by adding
blacklist pcspkrto a file called/etc/modprobe.d/99-nobeep.conf(or similar if your system is not Linux) - If your system supports it, you could use your audio system to mute the PC beep (ALSA, PulseAudio, OSS, etc)
I do not believe that there is an option for this in xorg.conf.
Chris Down
- 122,090
- 24
- 265
- 262
2
Another solution, copied from http://ubuntuforums.org/archive/index.php/t-126746.html.
If you want it to not beep in console without going to the extreme of blacklisting the module for the speaker add this to /etc/rc.local
for i in 1 2 3 4 5 6
do
setterm -blength 0 > /dev/tty$i
done
The other solution I've seen around is to add this to /etc/profile:
setterm -bfreq 0
Nope
- 461
- 4
- 5