How to enable SysRq key?
I want my SysRq key to be fully functional.
When I look in sudo sysctl -a I see kernel.sysrq = 1 in the output. This tells me it should be working.
To test, I run echo h > /proc/sysrq-trigger but nothing happens. I've tried this in a terminal emulator as well as a TTY. I was expecting to see some help text.
Pressing Alt+PrintScreen+h or PrintScreen+h also does not work.
What am I missing? How can I make the SysRq key work?
1 answer
Thanks to the comments, I was able to determine that it is in fact working, I just wasn't looking in the right place for output.
For anyone else with the same/similar issue, start watching the correct log with: sudo dmesg -w
After that, Alt+PrintScreen+h will print a brief help message.
Of course, you could always use b which should produce a reboot as the "output", but that is a bit destructive for a test.

1 comment thread