lkml.org 
[lkml]   [1999]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: patch to turn internal speaker on/off
Date
> > So I've got some kernel patches to disable beeps and blips > from the 
>internal speaker.
>What is wrong with "setterm -blength 0" and "xset -b off"?

Nothing. Both are good finer-grained alternatives, but only control the
basic bell tones (ascii 7 sent to stdout, etc...). My patch is a little more
forceful, since someone could still (regardless of xset and setterm's
actions) use ioctl() calls to /dev/console to ligitimately make sound. One
of this patch's aims to be a software equivalent of removing the internal
speaker from the machine altogether...which results in a slightly smaller
kernel, to boot. :)

Also, at bootup, if I have a pcmcia card in my machine, the card detecting
code likes to beep a few times. Which is fine if you like that sort of
thing, but this patch prevents squeaking at bootup time before your init
scripts can issue a setterm command.

That's my thinking on the matter. Again, I hope these patches can be of use
to someone.

--ryan.
(please CC me; I'm not subscribed to the mailing list. Thanks!)


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.031 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site