SysRq doesn't display any result on terminal
2
votes
1
answer
1353
views
I use Mint 19.2, and I try to see CPU backtrace by the following process.
$ sudo -s
# sysctl -w kernel.sysrq=1
# echo l > /proc/sysrq-trigger
But, nothing happened. I researched more online and I tried the following input key check, and the response for the command was this.
# dmesg | grep -i sysrq
[18494.528450] sysrq: SysRq : Show backtrace of all active CPUs
[18494.528496] sysrq_handle_showallcpus+0x17/0x20
[18494.528499] __handle_sysrq+0x9f/0x170
[18494.528502] sysrq_filter+0x98/0x3e0
Even when I tried
echo h > /proc/sysrq-trigger
, the result woundn't be displayed, either. But, dmesg | grep -i sysrq
replied:
[21964.365327] sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) force-fb(V) show-blocked-tasks(w) dump-ftrace-buffer(z)
enter code here
By these dmesg
responses, I believe the OS, at least, recognizes a letter from echo
command as a SysRq input.
How can I have the OS display a result of echo l > /proc/sysrq-trigger
on the current terminal?
Asked by buck_banzai
(65 rep)
Aug 14, 2019, 09:58 PM
Last activity: Aug 15, 2019, 09:09 AM
Last activity: Aug 15, 2019, 09:09 AM