The following patch is a reworked patch which originated from Amazon. It makes the sysrq key stateful, giving it the following behaviours: A) If the magic key is pressed and held, every other key pressed will be handled by the sysrq system. (This is the current behaviour). B) If the magic key is pressed and released, the next key pressed will be handled by the sysrq system. C) If the magic key is pressed twice in series, it is passed through. In addition, the patch allows registraiton of the the keycode which the magic key lives on, through a proc entry. This patch was developed to handle crappy KVM-alikes, which did one key at a time, and had no SysRq key. However, it gives a good solution to a common problem. Many keyboards are made cheaply, and do not support having large numbers of keys pressed simultaneously, making the current SysRq code almost useless on them. There are two versions of the patch attached. One is for linux-2.4.11-pre2, the other is for linux-2.4.10-ac3 -- Crutcher GCS d--- s+:>+:- a-- C++++$ UL++++$ L+++$>++++ !E PS+++ PE Y+ PGP+>++++ R-(+++) !tv(+++) b+(++++) G+ e>++++ h+>++ r* y+>*$