Difference between revisions of "Disable PC speaker beep"

From ArchWiki
Jump to: navigation, search
(removed forum links at the end - the information is all in the article already, so it is unneeded)
Line 7: Line 7:
 
{{i18n_entry|Українська|Вимкнути PC Speaker}}
 
{{i18n_entry|Українська|Вимкнути PC Speaker}}
 
{{i18n_entry|简体中文|禁用喇叭 (简体中文)}}
 
{{i18n_entry|简体中文|禁用喇叭 (简体中文)}}
 +
{{i18n_entry|Български|Disable PC Speaker Beep (Български)}}
 
{{i18n_links_end}}
 
{{i18n_links_end}}
  

Revision as of 09:36, 4 March 2010

Template:I18n links start Template:I18n entry 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

In X

$ xset -b

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

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

Using ALSA

  • 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

In order for this method to work, you must add alsa to the list of daemons in /etc/rc.conf

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