Commit 741698b7 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] keyboard.c Fix CONFIG_MAGIC_SYSRQ+PrintScreen

From: Chris Heath <chris@heathens.co.nz>

This patch fixes the PrintScreen key when CONFIG_MAGIC_SYSRQ is enabled.  It
allows you to use that key normally when Alt is not being pressed.  Patch is
against kernel 2.5.68.
parent 6d9d6796
......@@ -1047,8 +1047,8 @@ void kbd_keycode(unsigned int keycode, int down, struct pt_regs *regs)
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 && !rep) {
sysrq_down = sysrq_alt && down;
if (keycode == KEY_SYSRQ && (sysrq_down || (down == 1 && sysrq_alt))) {
sysrq_down = down;
return;
}
if (sysrq_down && down && !rep) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment