[wellylug] Non-console Beep for linux ?

Tony Wills ajwills at paradise.net.nz
Tue Sep 20 14:49:22 NZST 2005


At 13:52 20/09/2005, Mark Robinson wrote:
>>>...
>>>Tony Wills wrote:
>>>>Does anyone know of a small linux program to beep the built in PC 
>>>>speaker that doesn't need the console device?  (ie not echo -e "\a")
>>...
>It beeps the PC speaker for me, and it seems to work for processes that 
>are attached to neither console nor tty.

When you recompile the kernel, removing the need for a video card, and 
redirect console output to a serial port (so you can use a serial terminal 
as a console if necessary) then such beeps are also sent to the serial 
console (which does indeed beep if a attached at the time).
So a routine like ioctl that pokes at tty devices is of no use to me, 
because the only device left for it to poke at is the serial tty (unless I 
recompile the kernel to include all the console support just to get a wee 
beep).

So I want a wee routine that replaces the bit of the kernel that normally 
beeps - maybe I just need to take a hatchet to the console/tty routines and 
cut out everything else and compile what's left as a module (or back into 
the kernel) ... (surely someone's got a better way ;-)

Tony. 




More information about the wellylug mailing list