no SysRq key
Bruce Marshall
bmarsh
Sat Aug 12 08:20:49 PDT 2006
On Saturday 12 August 2006 02:42, Jorge Almeida wrote:
> I've been trying to enable the use of the SysRq key. My keyboard is
> Logitech Access. It has a key labeled PrtScr/SysRq right next F12.
> I recompiled the kernel with support for SysRq. The file
> /proc/sys/kernel/sysrq exists and contains "1". Still it doesn't work.
> It seems that the key is not recognized. The output of showkey -s, when
> pressing SysRq, is
> 0xe0 0x2a 0xe0 0x37 0xe0 0xaa 0xe0 0xb7
> I read sysrq.txt in the kernel source Doc directory:
> There are some keyboards that send different scancodes for SysRq
> than the pre-defined 0x54. So if SysRq doesn't work out of the box for a
> certain keyboard, run 'showkey -s' to find out the proper scancode
> sequence. Then use 'setkeycodes <sequence> 84' to define this sequence to
> the usual SysRq code (84 is decimal for 0x54). It's probably best to put
> this command in a boot script. Oh, and by the way, you exit 'showkey' by
> not typing anything for ten seconds.
> It's not clear (to me) what to do. Does <sequence> equal "0xe0 0x2a 0xe0
> 0x37 0xe0 0xaa 0xe0 0xb7"? And if so, is this a stable thing, i.e. a
> keyboard characteristic, not bound to change unless the keyboard is
> replaced?
Can I ask what you are trying to use it for? I use the sysrq key quite a bit
(magic key reboot sequence) and have never had any problem with it... and
recompiling isn't necessary. (with SuSE anyway)
More information about the Linux-users
mailing list