Re: SYSRQ key

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Mon, 23 Mar 1998 12:33:59 +0100


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