lkml.org 
[lkml]   [2003]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][2.5] keyboard.c Fix CONFIG_MAGIC_SYSRQ+PrintScreen
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.

Chris



--- a/drivers/char/keyboard.c 2003-04-19 12:52:01.000000000 -0400
+++ b/drivers/char/keyboard.c 2003-04-19 12:57:10.000000000 -0400
@@ -1047,8 +1047,8 @@
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) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.029 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site