CentOS 6.2, 2.6.32-220.el6.x86_64 laptop. SysRQ is enabled for keyboard input, as is witnessed by:
$ cat /proc/sys/kernel/sysrq
1
Common Magic SysRQ Keys are working such as alt-sysrq-h. However, other keystrokes do not appear to be working. Most notably, alt-sysrq-b for rebooting. However, I can get the reboot SysRQ option to work via echo "b" > /proc/sysrq-trigger
I realize that /proc/sys/kernel/sysrq
does not need to be enabled in order for echoing options to sysrq-trigger
to work, so I'm assuming that there's some problem with the Magic SysRQ key combination actually being signaled.
What would be causing the inability for some SysRQ keystrokes to work, but others not? And yet manually sending the option to sysrq-triggers
will work?
EDIT 1
Shamefully, I left out some information in the above question. Yes, I'm using a laptop, but I'm also using an external keyboard. I don't think I've used the built-in keyboard on my Dell XPS 1530 for years so it didn't even register in my mind that the keyboard situation could be part of the issue.
On the Dell XPS 1530's built-in keyboard, the SysRQ key is technically a function key. "SysRQ" is printed in blue to signal that a person, theoretically, should press the Fn
key to access it. However, when using the built-in keyboard, you merely have to press the standard alt-sysrq-b combination to cause a reboot! No function key required.
My external keyboard is a Logitech Illuminated Keyboard, and it has its own FN
key on it. However, SysRQ is not apparently mapped as an alternate key. I say "apparently" because SysRQ
isn't actually printed on any of the keys. Instead, I assumed that Print Screen
was the SysRQ key because that's what SysRQ has shared a key with in recent years. That seems to have been a fair assumption because, as I tested things out, most Magic SysRQ key combinations work using that key as SysRQ.
Nevertheless, I've tried a plethora of combinations using the external keyboard, and none of them seem to work with the re[B]oot Magic SysRQ key. I know alt works and I know print screen works as the SysRQ key without need for the function key on the external keyboard. It just appears, at this moment anyway, that the b key is not being sent as be. Is there any way that I can see what key code is being sent to my terminal as I type on a keyboard?
showkey
as root in a text mode console. What you type as part of anAlt+SysRq
sequence might not register, so do some experiments with magic SysRq turned off. – Gilles 'SO- stop being evil' Jun 02 '12 at 13:34