--- linux-vanilla/drivers/char/keyboard.c 2010-04-30 14:01:41.000000000 +0300 +++ linux-2.6.33.2/drivers/char/keyboard.c 2010-04-26 01:15:34.000000000 +0300 @@ -163,6 +163,10 @@ #endif static int sysrq_alt; +static int sysrq_key = KEY_SYSRQ; +module_param_named(sysrq_key, sysrq_key, uint, 0644); +MODULE_PARM_DESC(sysrq_key, "The keycode to be used for sysrq"); + /* * Notifier list for console keyboard events */ @@ -1196,7 +1200,7 @@ printk(KERN_WARNING "keyboard.c: can't emulate rawmode for keycode %d\n", keycode); #ifdef CONFIG_MAGIC_SYSRQ /* Handle the SysRq Hack */ - if (keycode == KEY_SYSRQ && (sysrq_down || (down == 1 && sysrq_alt))) { + if (keycode == sysrq_key && (sysrq_down || (down == 1 && sysrq_alt))) { if (!sysrq_down) { sysrq_down = down; sysrq_alt_use = sysrq_alt;