Thursday, January 15, 2009

Tip: Disable beep in Fedora

The first thing I realized I just had to change on Fedora 10 was the bloody beep. Fedora ships with a kernel module for the PC speaker named pcspkr.ko that if left loaded will drive you mad.

With this module loaded you get to hear a lovely beep while using a terminal. To turn off the beep, simply remove the kernel module and blacklist it to have it gone for good.

Here's how:
  1. $ su
  2. # rmmod -v pcspkr
  3. # echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist
On step 1 become superuser, on step 2 we've removed the module for the running session and on step 3 we've prevented it from loading at boot.

These steps can be performed similarly in other distros.

3 comments:

Anonymous said...

Thanks a lot!

Anonymous said...

Or just uncheck "terminal bell" in the Terminal preferences.

tangram said...

The post mentions a method that goes beyond the GUI. You're refering to gnome-terminal while I'm refering to all terminals.

Thanks for the feedback anyways.