lkml.org 
[lkml]   [1999]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: patch to turn internal speaker on/off
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/

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