Difference between revisions of "Beep"

From ArchWiki
Jump to: navigation, search
(please add more, add categories)
m (the last edit is a little too scary)
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 +
[[Category:Audio/Video]]
 
{{stub}}
 
{{stub}}
  
Sometimes, when no sound card and/or speakers are available, it can be handy to use PC internal speaker for notifications. Command-line interface to this feature can be installed with Pacman.
+
Beep is an advanced PC speaker beeping program. It is useful for situations where no sound card and/or speakers are available, and simple audio notification is desired.
  
 +
==Installation==
 +
Command-line interface to this feature can be installed with Pacman.
 
  # pacman -S beep
 
  # pacman -S beep
  
By default, beep command can be run only root, but other users can be allowed to run it also, by changing permissions of the beep command.
+
==Configuration==
 +
By default, only root can run the beep command, but other users can be allowed to run it by changing the permissions of the beep command.
  
  # chmod u+s /usr/bin/beep
+
  # chmod 4755 /usr/bin/beep
  
 +
You should also unmute the Beep channel using {{Ic|alsamixer}}.
 +
 +
$ alsamixer
 +
 +
you may need to press {{keypress|F6}} and select your card. scroll to the Beep channel using the arrow keys and press {{keypress|M}} to unmute the channel. notice that the "MM" label below the channel will change to "00". you can also use {{keypress|↑}} to increase the volume of the channel.
 +
 +
press {{Keypress|Esc}} to close alsamixer.
 +
 +
you can also save your settings to ALSA Mixer to make it permanent:
 +
 +
# alsactl -f /var/lib/alsa/asound.state store
 +
 +
==Tips and Tricks==
 
While many people are happy with the traditional beep sound, some may like to change its properties a bit. The following example plays slighly higher and shorter sound and repeats it two times.
 
While many people are happy with the traditional beep sound, some may like to change its properties a bit. The following example plays slighly higher and shorter sound and repeats it two times.
  
 
  # beep -f 5000 -l 50 -r 2
 
  # beep -f 5000 -l 50 -r 2
 +
 +
==See also==
 +
*[[Advanced Linux Sound Architecture]]

Revision as of 22:26, 13 November 2012

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Beep#)

Beep is an advanced PC speaker beeping program. It is useful for situations where no sound card and/or speakers are available, and simple audio notification is desired.

Installation

Command-line interface to this feature can be installed with Pacman.

# pacman -S beep

Configuration

By default, only root can run the beep command, but other users can be allowed to run it by changing the permissions of the beep command.

# chmod 4755 /usr/bin/beep

You should also unmute the Beep channel using alsamixer.

$ alsamixer

you may need to press Template:Keypress and select your card. scroll to the Beep channel using the arrow keys and press Template:Keypress to unmute the channel. notice that the "MM" label below the channel will change to "00". you can also use Template:Keypress to increase the volume of the channel.

press Template:Keypress to close alsamixer.

you can also save your settings to ALSA Mixer to make it permanent:

# alsactl -f /var/lib/alsa/asound.state store

Tips and Tricks

While many people are happy with the traditional beep sound, some may like to change its properties a bit. The following example plays slighly higher and shorter sound and repeats it two times.

# beep -f 5000 -l 50 -r 2

See also