Re: making my Wheezy beep. How?
On 31/01/14 18:39, Clive Standbridge wrote:
>> Why don't I get a beep with:
>>
>> echo -e \a
>
> Because the shell absorbs the \ and the echo command sees only the
> letter a. Try this:
>
> echo -e '\a'
>
Good point.
Getting the (system) beep is tricky, traditionally it used the ^G. From
foggy memory there are 3 ways to get the beep, all require a physical PC
speaker and the pcspkr module loaded. beep (the debian package) will try
all 3 ways.
So as well as requiring the physical PC-speaker (on-board, not the ones
attached to the soundcard) the OP should check for the appropriate
module (which Debian installs by default if dmi finds the device present):-
$ lsmod | grep pcspkr
pcspkr 12515 0
(from foggy memory) you can unload pcspkr and load snd-pcsp for more
control.
It is possible to re-route the system beep to external speakers, (check
with a search engine for a more reliable guide).
NOTE: if the OP is using ssh the process is different:-
echo -en "\a" > /dev/$unusedTTY
Kind regards
Reply to: