# HG changeset patch # User Oleksandr Gavenko # Date 1267994134 -7200 # Node ID dd61a6e88b6320df45958dab0e135b14dd2ed9e2 # Parent 46777be3b34bc67240494473142a76fae64c76c8# Parent 32fc18cfdf8be544234ce05f968e966769df303c merged diff -r 32fc18cfdf8b -r dd61a6e88b63 linux.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux.rst Sun Mar 07 22:35:34 2010 +0200 @@ -0,0 +1,27 @@ +-*- mode: outline; coding: utf-8 -*- + +* SysRq. + + x86: ALT-SysRq- + SPARC: ALT-STOP- + PPC: ALT - Print Screen (or F13) - + + 'b' - reboot + 'p' - dump the current registers and flags to your console + 'r' - take control of keyboard back from X + 'e' - send SIGTERM to all processes, except for init + 'i' - send SIGKILL to all processes, except for init + 's' - attempt to sync all mounted filesystems + 'u' - remount all filesystems read-only + +You can put one of such line: + + $ echo 0 > /proc/sys/kernel/sysrq # disable + $ echo 1 > /proc/sys/kernel/sysrq # enable + +to your /etc/rc.local or alternativaly place under /etc/sysctl: + + kernel.sysrq = 1 + + http://www.kernel.org/doc/Documentation/sysrq.txt + Linux Magic System Request Key Hacks