On Monday, May 26, 2003 3:05 pm, David Shochat wrote:
> I have been investigating why echo -e "\a" does not produce any
> alert/beep/bell sound on my system.
>
> As far as I can tell, my PC does not have an internal speaker. I opened
> up the case and could not find one. It does however have a fully functional
> sound card and /usr/bin/play, for example, works (I of course have speakers
> connected to the sound card).
>
> This is a Gateway Performance 733 PC.

Is your sound card integrated or not?  Some sound cards (e.g. my SB16) have 
onboard connectors for your PC buzzer.  Connect the SPK (or whatever the name 
is) pins from your motherboard to this.

Then again, if your motherboard has speaker pins, you can just wire them to a 
real PC speaker...

Before you do anything, consult technical documentation for your motherboard 
and sound card.

I'm not sure if XFree86 has code built into it already for "redirecting" the 
beep, that is, setting up an alternate handler than ringing the terminal 
bell.  I guess you could hack it in if you really want, but probably it would 
be better to use an xterm that already supports this than to modify (and 
possibly break) your X server (you do not want your X server to hang if it 
tries to "beep" and /dev/dsp is already in use, and that's just one thing 
that can go wrong...).

That's not perfect either, since programs like StarOffice and Tcl/Tk apps will 
still do a system beep no matter what your GNOME or KDE or FrobozzWare 
"system" notification preferences state.

-- 
Andy Goth  |  [EMAIL PROTECTED]  |  http://ioioio.net/
End communication.

_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to