* [PATCH] doc update/fixes for sysrq.txt
@ 2001-01-28 11:11 Jeremy M. Dolan
2001-01-28 11:35 ` David Ford
0 siblings, 1 reply; 7+ messages in thread
From: Jeremy M. Dolan @ 2001-01-28 11:11 UTC (permalink / raw)
To: linux-kernel
Updates Documentation/sysrq.txt for 2.4's behavior and cleans up a bit.
/jmd
--- linux-2.4.0-ac12/Documentation/sysrq.txt Fri Jul 28 14:50:52 2000
+++ linux-2.4.0-ac12-jmd/Documentation/sysrq.txt Sun Jan 28 04:15:59 2001
@@ -1,26 +1,27 @@
+Linux Magic System Request Key Hacks
+Documentation for sysrq.c version 1.15
+Last update: $Date: 2001/01/28 10:15:59 $
- MAGIC SYSRQ KEY DOCUMENTATION v1.32
- ------------------------------------
- [Sat Apr 8 22:15:03 CEST 2000]
-
-* What is the magic SysRQ key?
+* What is the magic SysRq key?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-It is a 'magical' key combo you can hit which kernel will respond to
+It is a 'magical' key combo you can hit which the kernel will respond to
regardless of whatever else it is doing, unless it is completely locked up.
-* How do I enable the magic SysRQ key?
+* How do I enable the magic SysRq key?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You need to say "yes" to 'Magic SysRq key (CONFIG_MAGIC_SYSRQ)' when
-configuring the kernel. This option is only available in 2.1.x or later
-kernels. Once you boot the new kernel, you need to enable it manually
-using following command:
+configuring the kernel. When running on a kernel with SysRq compiled in, it
+may be DISABLED at run-time using following command:
+
+ echo "0" > /proc/sys/kernel/sysrq
- echo "1" > /proc/sys/kernel/sysrq
+Note that previous versions disabled sysrq by default, and you were required
+to specifically enable it at run-time. That is not the case any longer.
-* How do I use the magic SysRQ key?
+* How do I use the magic SysRq key?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-On x86 - You press the key combo 'ALT-SysRQ-<command key>'. Note - Some
- (older?) may not have a key labeled 'SysRQ'. The 'SysRQ' key is
+On x86 - You press the key combo 'ALT-SysRq-<command key>'. Note - Some
+ keyboards may not have a key labeled 'SysRq'. The 'SysRq' key is
also known as the 'Print Screen' key.
On SPARC - You press 'ALT-STOP-<command key>', I believe.
@@ -30,14 +31,14 @@
BREAK twice is interpreted as a normal BREAK.
On other - If you know of the key combos for other architectures, please
- let me know so I can add them to this section.
+ let me know so I can add them to this section.
* What are the 'command' keys?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'r' - Turns off keyboard raw mode and sets it to XLATE.
-'k' - Secure Access Key (SAK) Kills all programs on the current virtual
- console. NOTE: See important comments below in SAK section.
+'k' - Secure Access Key (SAK) Kills all programs on the current virtual
+ console. NOTE: See important comments below in SAK section.
'b' - Will immediately reboot the system without syncing or unmounting
your disks.
@@ -67,8 +68,8 @@
'l' - Send a SIGKILL to all processes, INCLUDING init. (Your system
will be non-functional after this.)
-'h' - Will display help ( actually any other key than those listed
- above will display help. but 'h' is easy to remember :-)
+'h' - Will display help ( actually any other key than those listed
+ above will display help. but 'h' is easy to remember :-)
* Okay, so what can I use them for?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -80,8 +81,8 @@
and thus letting you make sure that the login prompt you see is actually
the one from init, not some trojan program.
IMPORTANT:In its true form it is not a true SAK like the one in :IMPORTANT
-IMPORTATN:c2 compliant systems, and it should be mistook as such. :IMPORTANT
- It seems other find it useful as (System Attention Key) which is
+IMPORTANT:c2 compliant systems, and it should be mistook as such. :IMPORTANT
+ It seems other find it useful as (System Attention Key) which is
useful when you want to exit a program that will not let you switch consoles.
(For example, X or a svgalib program.)
@@ -90,7 +91,7 @@
'S'ync is great when your system is locked up, it allows you to sync your
disks and will certainly lessen the chance of data loss and fscking. Note
-that the sync hasn't taken place until you see the "OK" and "Done" appear
+that the sync hasn't taken place until you see the "OK" and "Done" appear
on the screen. (If the kernel is really in strife, you may not ever get the
OK or Done message...)
@@ -108,30 +109,31 @@
are unable to kill any other way, especially if it's spawning other
processes.
-* Sometimes SysRQ seems to get 'stuck' after using it, what can I do?
+* Sometimes SysRq seems to get 'stuck' after using it, what can I do?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
That happens to me, also. I've found that tapping shift, alt, and control
on both sides of the keyboard, and hitting an invalid sysrq sequence again
will fix the problem. (ie, something like alt-sysrq-z). Switching to another
virtual console (ALT+Fn) and then back again should also help.
-* I hit SysRQ, but nothing seems to happen, what's wrong?
+* I hit SysRq, but nothing seems to happen, what's wrong?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-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
+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
+boot script. Oh, and by the way, you exit 'showkey' by not typing anything
for ten seconds.
* I have more questions, who can I ask?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You may feel free to send email to myrdraal@deathsdoor.com, and I will
-respond as soon as possible.
+respond as soon as possible.
-Myrdraal
* Credits
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Written by Mydraal <myrdraal@deathsdoor.com>
Updated by Adam Sulmicki <adam@cfar.umd.edu>
+Updated by Jeremy M. Dolan <jmd@turbogeek.org> 2001/01/28 10:15:59
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] doc update/fixes for sysrq.txt
2001-01-28 11:11 [PATCH] doc update/fixes for sysrq.txt Jeremy M. Dolan
@ 2001-01-28 11:35 ` David Ford
2001-01-28 21:21 ` Jeremy M. Dolan
0 siblings, 1 reply; 7+ messages in thread
From: David Ford @ 2001-01-28 11:35 UTC (permalink / raw)
To: Jeremy M. Dolan; +Cc: linux-kernel
"Jeremy M. Dolan" wrote:
> +Note that previous versions disabled sysrq by default, and you were required
> +to specifically enable it at run-time. That is not the case any longer.
AFAIK, this hasn't ever been true. I have never had to specifically enable it at
run time. There are certain distributions which disabled it by default but this is
distribution specific, not by way of the kernel.
-d
--
There is a natural aristocracy among men. The grounds of this are virtue and talents. Thomas Jefferson
The good thing about standards is that there are so many to choose from. Andrew S. Tanenbaum
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] doc update/fixes for sysrq.txt
2001-01-28 11:35 ` David Ford
@ 2001-01-28 21:21 ` Jeremy M. Dolan
2001-01-31 18:06 ` Alan Cox
0 siblings, 1 reply; 7+ messages in thread
From: Jeremy M. Dolan @ 2001-01-28 21:21 UTC (permalink / raw)
To: David Ford; +Cc: linux-kernel
On Sun, 28 Jan 2001 11:35:50 +0000, David Ford wrote:
> AFAIK, this hasn't ever been true. I have never had to specifically
> enable it at run time.
I was suspicious of that in the old doc but thought I'd leave it in...
Should have asked for feedback on it, but you caught it anyway, thanks!
Here's a patch against the first that simply removes the lines.
/jmd
--- Documentation/sysrq.txt~ Sun Jan 28 14:41:44 2001
+++ Documentation/sysrq.txt Sun Jan 28 14:41:52 2001
@@ -15,9 +15,6 @@
echo "0" > /proc/sys/kernel/sysrq
-Note that previous versions disabled sysrq by default, and you were required
-to specifically enable it at run-time. That is not the case any longer.
-
* How do I use the magic SysRq key?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On x86 - You press the key combo 'ALT-SysRq-<command key>'. Note - Some
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] doc update/fixes for sysrq.txt
@ 2001-01-29 15:49 Jonathan Earle
2001-01-29 21:42 ` David Ford
0 siblings, 1 reply; 7+ messages in thread
From: Jonathan Earle @ 2001-01-29 15:49 UTC (permalink / raw)
To: 'Jeremy M. Dolan', David Ford; +Cc: linux-kernel
> On Sun, 28 Jan 2001 11:35:50 +0000, David Ford wrote:
> > AFAIK, this hasn't ever been true. I have never had to specifically
> > enable it at run time.
>
> I was suspicious of that in the old doc but thought I'd leave it in...
> Should have asked for feedback on it, but you caught it
> anyway, thanks!
>
> Here's a patch against the first that simply removes the lines.
I'd suggest leaving those lines in; I've never had it enabled by default.
I've run Debian and Redhat systems, and both had to have the option
specifically turned ON via startup script - simply compiling it into a
kernel did not enable it.
Jon
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] doc update/fixes for sysrq.txt
2001-01-29 15:49 Jonathan Earle
@ 2001-01-29 21:42 ` David Ford
0 siblings, 0 replies; 7+ messages in thread
From: David Ford @ 2001-01-29 21:42 UTC (permalink / raw)
To: Jonathan Earle; +Cc: 'Jeremy M. Dolan', linux-kernel
Jonathan Earle wrote:
> > On Sun, 28 Jan 2001 11:35:50 +0000, David Ford wrote:
> > > AFAIK, this hasn't ever been true. I have never had to specifically
> > > enable it at run time.
> >
> > I was suspicious of that in the old doc but thought I'd leave it in...
> > Should have asked for feedback on it, but you caught it
> > anyway, thanks!
> >
> > Here's a patch against the first that simply removes the lines.
>
> I'd suggest leaving those lines in; I've never had it enabled by default.
> I've run Debian and Redhat systems, and both had to have the option
> specifically turned ON via startup script - simply compiling it into a
> kernel did not enable it.
>
> Jon
I suggest compiling it in and booting with init=/bin/bash, mounting /proc
and checking the value. It is enabled by default. A few distributions have
a boot script that enables or disables it based on the sysconfig.
-d
--
There is a natural aristocracy among men. The grounds of this are virtue and talents. Thomas Jefferson
The good thing about standards is that there are so many to choose from. Andrew S. Tanenbaum
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] doc update/fixes for sysrq.txt
2001-01-28 21:21 ` Jeremy M. Dolan
@ 2001-01-31 18:06 ` Alan Cox
2001-01-31 23:14 ` David Ford
0 siblings, 1 reply; 7+ messages in thread
From: Alan Cox @ 2001-01-31 18:06 UTC (permalink / raw)
To: Jeremy M. Dolan; +Cc: David Ford, linux-kernel
> > AFAIK, this hasn't ever been true. I have never had to specifically
> > enable it at run time.
>
> I was suspicious of that in the old doc but thought I'd leave it in...
> Should have asked for feedback on it, but you caught it anyway, thanks!
>
> Here's a patch against the first that simply removes the lines.
Its true in 2.2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] doc update/fixes for sysrq.txt
2001-01-31 18:06 ` Alan Cox
@ 2001-01-31 23:14 ` David Ford
0 siblings, 0 replies; 7+ messages in thread
From: David Ford @ 2001-01-31 23:14 UTC (permalink / raw)
Cc: Jeremy M. Dolan, linux-kernel
Alan Cox wrote:
> > > AFAIK, this hasn't ever been true. I have never had to specifically
> > > enable it at run time.
> >
> > I was suspicious of that in the old doc but thought I'd leave it in...
> > Should have asked for feedback on it, but you caught it anyway, thanks!
> >
> > Here's a patch against the first that simply removes the lines.
>
> Its true in 2.2
At what point in 2.2 did it become true? I rarely used 2.2, I went from 2.1
to 2.3 and I don't recall having to ever enable it. Once it was compiled in
it was on.
-d
--
There is a natural aristocracy among men. The grounds of this are virtue and talents. Thomas Jefferson
The good thing about standards is that there are so many to choose from. Andrew S. Tanenbaum
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-01-31 23:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-28 11:11 [PATCH] doc update/fixes for sysrq.txt Jeremy M. Dolan
2001-01-28 11:35 ` David Ford
2001-01-28 21:21 ` Jeremy M. Dolan
2001-01-31 18:06 ` Alan Cox
2001-01-31 23:14 ` David Ford
-- strict thread matches above, loose matches on Subject: below --
2001-01-29 15:49 Jonathan Earle
2001-01-29 21:42 ` David Ford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox