Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 63466 Details for
Bug 97388
setkeycodes b725 84 doesn't work (KDSETKEYCODE: No such device) changing the magic sysrq key on usb kbd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
This is the latest versione of my patch
sysrq_keycode_r5.patch (text/plain), 1.50 KB, created by
Federico Ferri (RETIRED)
on 2005-07-15 06:18:20 UTC
(
hide
)
Description:
This is the latest versione of my patch
Filename:
MIME Type:
Creator:
Federico Ferri (RETIRED)
Created:
2005-07-15 06:18:20 UTC
Size:
1.50 KB
patch
obsolete
>diff -uprN linux.orig/drivers/char/keyboard.c linux/drivers/char/keyboard.c >--- linux.orig/drivers/char/keyboard.c 2005-07-09 21:47:50.000000000 +0200 >+++ linux/drivers/char/keyboard.c 2005-07-10 14:42:34.000000000 +0200 >@@ -1081,7 +1087,7 @@ static void kbd_keycode(unsigned int key > 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 == CONFIG_MAGIC_SYSRQ_KEYCODE && (sysrq_down || (down == 1 && sysrq_alt))) { > sysrq_down = down; > return; > } >diff -uprN linux.orig/lib/Kconfig.debug linux/lib/Kconfig.debug >--- linux.orig/lib/Kconfig.debug 2005-07-09 21:47:22.000000000 +0200 >+++ linux/lib/Kconfig.debug 2005-07-09 21:50:44.000000000 +0200 >@@ -28,6 +28,16 @@ config MAGIC_SYSRQ > send a BREAK and then within 5 seconds a command keypress. The > keys are documented in <file:Documentation/sysrq.txt>. Don't say Y > unless you really know what this hack does. >+ >+config MAGIC_SYSRQ_KEYCODE >+ int >+ prompt "Change SysRq key-code" if MAGIC_SYSRQ >+ default 99 >+ depends on MAGIC_SYSRQ >+ help >+ If your keyboard doesn't have a SysRq key (also labeled PrintScr), >+ you can specify another keycode which should act as SysRq. >+ Default is 99 (KEY_SYSRQ). >+ You can find this number using programs like evtest, or (maybe) >+ showkey. > > config LOG_BUF_SHIFT > int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" if DEBUG_KERNEL
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 97388
:
62231
|
63042
| 63466