[patch] config option to make at keyboards beep when too many keysare pressed

From: ameer armaly
Date: Sun Apr 18 2004 - 21:13:28 EST


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.--- 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)
--- 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