Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 97388 | Differences between
and this patch

Collapse All | Expand All

(-)linux.orig/drivers/char/keyboard.c (-1 / +1 lines)
Lines 1081-1087 static void kbd_keycode(unsigned int key Link Here
1081
				printk(KERN_WARNING "keyboard.c: can't emulate rawmode for keycode %d\n", keycode);
1087
				printk(KERN_WARNING "keyboard.c: can't emulate rawmode for keycode %d\n", keycode);
1082
1088
1083
#ifdef CONFIG_MAGIC_SYSRQ	       /* Handle the SysRq Hack */
1089
#ifdef CONFIG_MAGIC_SYSRQ	       /* Handle the SysRq Hack */
1084
	if (keycode == KEY_SYSRQ && (sysrq_down || (down == 1 && sysrq_alt))) {
1090
	if (keycode == CONFIG_MAGIC_SYSRQ_KEYCODE && (sysrq_down || (down == 1 && sysrq_alt))) {
1085
		sysrq_down = down;
1091
		sysrq_down = down;
1086
		return;
1092
		return;
1087
	}
1093
	}
(-)linux.orig/lib/Kconfig.debug (+12 lines)
Lines 28-33 config MAGIC_SYSRQ Link Here
28
	  send a BREAK and then within 5 seconds a command keypress. The
28
	  send a BREAK and then within 5 seconds a command keypress. The
29
	  keys are documented in <file:Documentation/sysrq.txt>. Don't say Y
29
	  keys are documented in <file:Documentation/sysrq.txt>. Don't say Y
30
	  unless you really know what this hack does.
30
	  unless you really know what this hack does.
31
	  
32
config MAGIC_SYSRQ_KEYCODE
33
	int
34
	prompt "Change SysRq key-code" if MAGIC_SYSRQ
35
	default 99
36
	depends on MAGIC_SYSRQ
37
	help
38
	  If your keyboard doesn't have a SysRq key (also labeled PrintScr),
39
	  you can specify another keycode which should act as SysRq.
40
	  Default is 99 (KEY_SYSRQ).
41
	  You can find this number using programs like evtest, or (maybe)
42
	  showkey.
31
43
32
config LOG_BUF_SHIFT
44
config LOG_BUF_SHIFT
33
	int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" if DEBUG_KERNEL
45
	int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" if DEBUG_KERNEL

Return to bug 97388