mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ameer armaly <ameer@charter.net>
To: linux-kernel@vger.kernel.org
Cc: linus@osdl.org
Subject: [patch] config option to make at keyboards beep when too many keys are pressed
Date: Sun, 18 Apr 2004 21:49:53 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0404182147160.828@debian> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 310 bytes --]

Hi all.
Here are two patches, that should be applied in
/usr/src/linux/drivers/input.  These make a config option, that if
selected, allows atd keyboards to beep rather than cluttering the screen
with  messages about too many keys pressed.   This has been patched
against the latest kernel tree from bitkeeper.

[-- Attachment #2: Type: TEXT/PLAIN, Size: 460 bytes --]

--- atkbd.orig	2004-04-18 21:31:22.000000000 -0400
+++ atkbd.c	2004-04-18 21:40:59.000000000 -0400
@@ -284,8 +284,12 @@
 			atkbd_report_key(&atkbd->dev, regs, KEY_HANJA, 3);
 			goto out;
 		case ATKBD_RET_ERR:
+#ifndef CONFIG_BEEP_TOMANY_KEYS
 			printk(KERN_WARNING "atkbd.c: Keyboard on %s reports too many keys pressed.\n", serio->phys);
-			goto out;
+
+#else
+printk(KERN_ALERT, "\007");
+#endif			goto out;
 	}
 
 	if (atkbd->set != 3)

[-- Attachment #3: Type: TEXT/PLAIN, Size: 446 bytes --]

--- Kconfig	2004-04-18 21:34:52.000000000 -0400
+++ kconfig	2004-04-18 21:37:44.000000000 -0400
@@ -29,6 +29,9 @@
 	  To compile this driver as a module, choose M here: the
 	  module will be called atkbd.
 
+config BEEP_TOMANEY_KEYS
+bool "Beep when too many keys are pressed on at keyboards"
+depends on KEYBOARD_ATKBD
 config KEYBOARD_SUNKBD
 	tristate "Sun Type 4 and Type 5 keyboard support"
 	depends on INPUT && INPUT_KEYBOARD

             reply	other threads:[~2004-04-19  2:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-19  1:49 ameer armaly [this message]
2004-04-19  4:42 ` Willy Tarreau

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=Pine.LNX.4.58.0404182147160.828@debian \
    --to=ameer@charter.net \
    --cc=linus@osdl.org \
    --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

all inboxes | Powered by JetHome®