Re: patch to turn internal speaker on/off

Matthew Wilcox (willy@thepuffingroup.com)
Mon, 27 Dec 1999 17:43:13 -0500


On Mon, Dec 27, 1999 at 05:03:16PM -0500, Ryan C. Gordon wrote:
> > Wouldn't it be better to adjust the behavior from /proc than via an
> > ioctl?
>
> I originally had code to do this, but I saw two problems to this method:
>
> 1) It touches a lot more source files and adds a bunch of code in the kernel
> for what should be a relatively minor patch, and
> 2) (Obviously) adds another entry in /proc ...which I wasn't sure was wise
> to throw "just anything" in there. Maybe I'm wrong on that point, though.
>
> Anyhow, if people have a want for that, I'll put a /proc/intspeaker (or
> whatever) entry into the kernel, but I'd like to see if the ability to turn
> off the speaker is deemed worth having in the first place.

Surely this fits most neatly as a sysctl, which would give both a proc
entry and a programmatic interface?

hmmm.. /proc/sys/console? /proc/sys/dev/console? Anyone have an opinion?

-
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/