lkml.org 
[lkml]   [2005]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: documentation? (i learned something today ;-) )
On 10/15/05, Damir Perisa <damir.perisa@solnet.ch> wrote:
> hi all,
>
> Le Saturday 15 October 2005 09:48, Anton Altaparmakov a écrit:
> | If it has sysrq compiled in as root just do:
> |
> | echo s > /proc/sysrq-trigger
> | echo u > /proc/sysre-trigger
> | echo s > /proc/sysrq-trigger
> | echo b > /proc/sysrq-trigger
> |
> | This will "sync", "umount/remount read-only", "sync", "immediate
> | hardware reboot". Should always work...
>
> i'm impressed that i see that sysrq also works from procfs.... the
> "PrintScreen/SysRq" button on my keyboard from time to time does not work
> (old keyboard) and then it's pain hitting this key if you have to.
>
> great news that you can also pass sysrq requests using proc - i've learned
> something today... is this documented somewhere? maybe i'm bad in
> reading/finding docs but i think i'm not the only one here. can somebody
> point me to the links of docs where all this magic is specified? if not,
> i will try to start my own docs on how to use the linux kernel magic.
> mainly a collection of tricks like this and similar ones.
>
> thank you in advance + greetings,
> Damir

it is mentionned in Documentation/sysrq.txt

On all - write a character to /proc/sysrq-trigger. eg:

echo t > /proc/sysrq-trigger

regards,

Benoit
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-15 15:43    [W:0.055 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site