lkml.org 
[lkml]   [1998]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SYSRQ key
Hi,

> Is there some easy way to change which key makes a sysrq? I dont think i

Look at include/asm-i386/keyboard.h and change #define SYSRQ_KEY to new
key code.

> can live without the alt-printscrn switch_to_last_tty :) I have a windows
> keyboard(sadly) so i tried remapping it to the left windows key from what
> showkey -s told by changing:
> if (keycode == SYSRQ_KEY) {
> to:
> if (keycode == 0x5b) { /* left windows key */
> Now I'm rebooted and...nothing. Alt-prtscrn still goes to last tty
> though. :) Anyone see my error? Is the windows key some kind of multi
> scancode?
>
> showkey -s output:
>
> (alt-prtscreen)
> 0x38 0x54 0xd4 0xb8
>
> (left windows key)
> 0xe0 0x5b 0xe0 0xdb

You should use keycodes instead of scancodes (i.e., 'showkey' instead
of 'showkey -s').

Have a nice fortnight
--
Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"Immanuel doesn't pun, he Kant."

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

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