From: Andrew Morton <akpm@linux-foundation.org>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: linux-kernel@vger.kernel.org, adaplas@gmail.com
Subject: Re: [PATCH] vc bell config
Date: Fri, 5 Oct 2007 17:00:11 -0700 [thread overview]
Message-ID: <20071005170011.b4d280bf.akpm@linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0710051347000.13406@fbirervta.pbzchgretzou.qr>
On Fri, 5 Oct 2007 13:55:52 +0200 (CEST)
Jan Engelhardt <jengelh@computergmbh.de> wrote:
>
> It is already possible to deactivate the vc bell on a per-tty basis,
> by using echo -en "\e[11;0]", but this is reset on reset(1).
>
> This adds a sysfs parameter to globally control the vc bell, as well
> as sysfs parameters for default pitch and duration.
>
Why do we need this? To fix the stupid-app-makes-my-box-beep problem, I
guess. Is there no other way of suppressing the beep? (no jokes about wire
cutters or earplugs, please).
> ---
> drivers/char/vt.c | 18 +++++++++++-------
> 1 file changed, 11 insertions(+), 7 deletions(-)
>
> Index: linux-2.6.23/drivers/char/vt.c
> ===================================================================
> --- linux-2.6.23.orig/drivers/char/vt.c
> +++ linux-2.6.23/drivers/char/vt.c
> @@ -134,8 +134,12 @@ const struct consw *conswitchp;
> /*
> * Here is the default bell parameters: 750HZ, 1/8th of a second
> */
> -#define DEFAULT_BELL_PITCH 750
> -#define DEFAULT_BELL_DURATION (HZ/8)
> +static unsigned int default_bell_pitch = 750;
> +static unsigned int default_bell_duration = HZ / 8;
It is inapt to call these default_X. Because once they have been altered
by the user, they aren't defaults any more.
They should be just bell_pitch and bell_duration.
next prev parent reply other threads:[~2007-10-06 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-05 11:55 [PATCH] vc bell config Jan Engelhardt
2007-10-06 0:00 ` Andrew Morton [this message]
2007-10-06 9:55 ` Alan Cox
2007-10-06 10:02 ` Jan Engelhardt
2007-10-06 10:10 ` Jan Engelhardt
2007-10-11 18:11 ` Pavel Machek
2007-10-17 16:35 ` Jan Engelhardt
2007-10-17 22:21 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071005170011.b4d280bf.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=adaplas@gmail.com \
--cc=jengelh@computergmbh.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox