Re: PC-speaker control

From: Robert Read (rread@datarithm.net)
Date: Tue Jan 02 2001 - 01:16:35 EST


On Tue, Jan 02, 2001 at 01:40:43AM +0100, Daniel Phillips wrote:
> Daniel Phillips wrote:
> >
> > Robert Read wrote:
> > > Try this on the console:
> > >
> > > setterm -blength 0
> > >
> > > no assembly required. :)
> >
> > Yes, and my xterm still beeps - if I make that go away then something
> > else will beep.
> >
> > Somebody posted a patch to do a global disable of the speaker some time
> > back, and I wish that the patch were generally available. The result of
> > not having the global disable is an office full of beeping
> > computers.

Right, I see what you mean. Disabling the beep is one thing I always
do, and it requires a few differnt steps, like "xset b off" for xterms
and so on. It would be nice to switch it off in one place and be done
with it.

> >
> > How does this look:
> >
> echo 0 >/proc/sys/dev/speaker/beep
>

This looks good to me. As far as I can tell, it looks like the beep
is generated by kd_mksound, which is a function pointer that usually
points to drivers/char/vt.c:_kd_mksound(). Can anyone verify this?

It doesn't look to hard to write a sysctl driver that would change the
function pointer to something quieter. Is this what patch did?

robert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 07 2001 - 21:00:12 EST