Tech Tip: Muting loud Hardware Beep under Ubuntu Linux

| No Comments

Posting this one for the masses of humanity out there that are just slobbering for a quick fix to this problem.

There's a twitchy problem in GTK under Linux regarding sound that sometimes lets the 'bell' sound get handled by the motherboard beep - a sound that is INSANELY LOUD, and no amount of muting, volume adjustment, or sound board fiddling will silence it.

The beep can happen during 'vi' sessions, in Eclipse when 'search' fails to find something, in X-chat when backspacing to the beginning of the line, or in Pidgin during the same situation.

The fix is remarkably simple. Tell the X-server to mute the hardware beep:

xset -b b 0

To check to see if it's set, use the 'xset -q' command:

dbs@clipper:~$ xset -q
 Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  auto repeat delay:  660    repeat rate:  25
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  0    bell pitch:  400    bell duration:  100

That's it! If you put this in your ~/.bashrc or whatever you use for a startup, this will mute the hardware beeping sound, but leave normal soundsystem stuff working.


Leave a comment

Pages

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.23-en

Twitter

Sponsors!

About this Entry

This page contains a single entry by dbs published on June 20, 2009 12:01 PM.

"Free Memory" iPhone app Saves The Day was the previous entry in this blog.

Heavy Metal DVD - Awesome Documentary is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.