Difference between revisions of "Disable PC speaker beep"

From ArchWiki
Jump to: navigation, search
m (Saving alsa PC Beep mute settings)
m (Add both drivers to /etc/rc.conf)
Line 12: Line 12:
 
* You can completely disable the PC speaker module at startup by adding <code>!pcspkr</code> to the <code>MODULES</code> array in <code>/etc/rc.conf</code>:
 
* You can completely disable the PC speaker module at startup by adding <code>!pcspkr</code> to the <code>MODULES</code> array in <code>/etc/rc.conf</code>:
 
  MODULES=( ... !pcspkr ... )
 
  MODULES=( ... !pcspkr ... )
 
  
 
* If <code>lsmod | grep snd-pcsp</code> returns something, add <code>!snd-pcsp</code>:
 
* If <code>lsmod | grep snd-pcsp</code> returns something, add <code>!snd-pcsp</code>:
 
  MODULES=( ... !snd-pcsp ... )
 
  MODULES=( ... !snd-pcsp ... )
 +
 +
In [http://bbs.archlinux.org/viewtopic.php?pid=557665#p557665 this] forum thread, it's recommended to add both to your <code>/etc/rc.conf</code>.
  
 
= Locally =
 
= Locally =

Revision as of 05:26, 24 August 2009

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end

Globally

  • You can completely disable the PC speaker module at startup by adding !pcspkr to the MODULES array in /etc/rc.conf:
MODULES=( ... !pcspkr ... )
  • If lsmod | grep snd-pcsp returns something, add !snd-pcsp:
MODULES=( ... !snd-pcsp ... )

In this forum thread, it's recommended to add both to your /etc/rc.conf.

Locally

  • To disable the annoying PC speaker beep in X:
$ xset -b

You can add this command to a startup file, such as ~/.xinitrc, to disable it every time X starts.

  • To disable it in console:
$ setterm -blength 0

Similarly you can add it to ~/.bashrc.

  • Another way is to add this line to ~/.inputrc:
set bell-style none
  • ALSA users can also try muting the PC Speaker:
$ amixer set 'PC Speaker' 0% mute

For certain sound cards, it is the PC Beep:

$ amixer set 'PC Beep' 0% mute

You can also use alsamixer for a console GUI

$ alsamixer

Scroll to PC beep and press 'M' to mute. Save your alsa settings:

# alsactl store

Have a look at these man pages for further information: xset(1), setterm(1), readline(3)