[wellylug] Non-console Beep for linux ?

Tony Wills ajwills at paradise.net.nz
Sun Sep 18 14:36:47 NZST 2005


At 13:45 18/09/2005, jumbophut wrote:
>On 9/18/05, Tony Wills wrote:
> > So tell me about the de-selected kernel speaker driver - is this something
> > I can easily enable it by changing a flag and recompiling the kernel?  How
> > is it used (is it a /dev type device) ?
> >
>It's only in 2.6 kernels (though there are patches floating around for 2.4).

I'm using 2.4

> >From memory, when the module is loaded, you can play sounds using 'cat
>sndfile > /dev/dsp' or any other sound-playing application (e.g.
>artsplay).
>
>I had it going on a P100 and it was absolutely poor sound, but it was
>sound (in MP3s a tune could barely be made out, with nothing at all
>for OGGs, but simple game sound effects were passable).
>
>Now, THE ONLY PROBLEM IS, in order for this to work, it has to mess
>with the timer interrupt.  It does some tricky stuff to correct for
>this, but as the timer interrupt is a very central part of the system,
>I would not recommend it for a production system (in early versions,
>people reported the xclock spinning round and round).

Sound like severe overkill, all I need is to toggle some i/o bit up and 
down a few hundred times for a fraction of a second, trivial ! ;-)
Someone must have a nice simple, small program that just goes beep!!

Tony.  




More information about the wellylug mailing list