public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tom H <tomh0665@gmail.com>
To: Gentoo User <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Re: How to poweroff the system from user?
Date: Tue, 31 Mar 2015 05:36:20 -0400	[thread overview]
Message-ID: <CAOdo=Sxo8N1ejmPKW6fZgDh4B+Uuwh5Aiypt6gVizFX2+=Lj8Q@mail.gmail.com> (raw)
In-Reply-To: <1887274.L0doMiab5F@navi>

On Tue, Mar 31, 2015 at 1:57 AM, Fernando Rodriguez
<frodriguez.developer@outlook.com> wrote:


> On Linux now there's the Magic SysRq Key feature for that. If enabled (I think
> it is by default, may be wrong) you can use ctrl-alt-sysrq plus one these keys
> even if your kernel panics or freezes in most cases (ctrl may only be needed
> from xorg):
>
> r - to get the keyboard back so you can switch to VT if xorg freezes
> e - to terminate all processes gracefully (SIGTERM) except pid 1
> i - to terminate all processes forcefully (SIGKILL) except pid 1
> s - to sync all filesystems
> u - to unmount them and remount readonly
> b - to reboot

You have to set "MAGIC_SYSRQ" to "y" for it to be enabled.

You can set the "capabilities" of sysrq either via
'MAGIC_SYSRQ_DEFAULT_ENABLE" or via sysctl. Debian uses the former (to
set it to 438) and Ubuntu and Fedora use the latter (to set it to 176
and 16 respectively). "16" is systemd upstream's default whereby you
can only sync filesystems. It's the kind of value that can be the
source of a lot of arguing...


> Easy to remember as "Reboot Even If System Utterly Broken"

I remember it as the reverse of "busier".


  parent reply	other threads:[~2015-03-31  9:36 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-21 19:26 [gentoo-user] How to poweroff the system from user? German
2015-03-21 19:34 ` Alexander Kapshuk
2015-03-21 19:35   ` Alexander Kapshuk
2015-03-21 22:38     ` Fernando Rodriguez
2015-03-21 22:52       ` Emanuele Rusconi
2015-03-21 23:03         ` Fernando Rodriguez
2015-03-21 19:39   ` German
2015-03-21 19:47     ` Rich Freeman
2015-03-21 19:58       ` Canek Peláez Valdés
2015-03-26  0:46         ` microcai
2015-03-29 11:55           ` Volker Armin Hemmann
2015-03-29 12:33             ` Jorge Almeida
2015-03-29 12:44               ` Rich Freeman
2015-03-21 20:01       ` German
2015-03-21 20:17         ` Jc García
2015-03-21 20:09 ` Fernando Rodriguez
2015-03-21 20:32 ` Philip Webb
2015-03-21 20:50   ` Rich Freeman
2015-03-21 20:58   ` German
2015-03-21 22:20     ` Jc García
2015-03-22 10:30       ` Peter Humphrey
2015-03-22 11:04         ` [gentoo-user] " Nikos Chantziaras
2015-03-22 11:27           ` Peter Humphrey
2015-03-22 15:58             ` Philip Webb
2015-03-22 19:13               ` Nikos Chantziaras
2015-03-22 20:12                 ` Philip Webb
2015-03-22 23:18                   ` Nikos Chantziaras
2015-03-22 21:13               ` Matti Nykyri
2015-03-29 10:23               ` lee
2015-03-31  5:57                 ` Fernando Rodriguez
2015-03-31  6:38                   ` Fernando Rodriguez
2015-03-31  9:36                   ` Tom H [this message]
2015-03-31  9:42                     ` Emanuele Rusconi
2015-03-31 17:13                       ` Tom H
2015-04-04 12:41                   ` lee
2015-04-04 15:16                     ` Rich Freeman
2015-04-07 20:10                       ` lee
2015-04-07 20:24                         ` lee
2015-04-04 22:36                     ` Fernando Rodriguez
2015-04-07 19:21                       ` lee
2015-04-07 20:43                         ` Fernando Rodriguez
2015-04-07 21:27                         ` Neil Bothwick
2015-04-08 21:47                           ` lee
2015-04-14 21:07                             ` Emanuele Rusconi
2015-04-14 22:06                               ` lee
2015-04-14 23:02                                 ` Neil Bothwick
2015-05-09 15:13                                   ` lee
2015-04-04 22:37                     ` Neil Bothwick
2015-04-05  7:27                       ` Dale
2015-04-05 11:24                         ` Rich Freeman
2015-04-05 15:13                           ` Dale
2015-03-22 20:36         ` [gentoo-user] " Jc García
2015-03-23  9:46           ` Peter Humphrey
2015-03-23 10:12             ` 回复:Re: " Nicol TAO
2015-03-23 11:28             ` Rich Freeman
2015-03-23 12:13             ` [gentoo-user] " Nikos Chantziaras
2015-03-23 12:16               ` Matti Nykyri
2015-03-23 13:32                 ` Nikos Chantziaras
2015-03-23 12:16             ` [gentoo-user] " Emanuele Rusconi
2015-03-29 10:43             ` lee
2015-03-29 23:20               ` Walter Dnes
2015-03-29 19:30                 ` Rich Freeman
2015-03-30  0:32                   ` Walter Dnes
2015-03-30  0:52                     ` Rich Freeman
2015-03-30  8:09                       ` Mick
2015-03-30  9:41                         ` Rich Freeman
2015-03-30  8:00                     ` Mick
2015-04-04 12:47                 ` lee
2015-03-21 22:51     ` Fernando Rodriguez
2015-03-22  6:32       ` German
2015-03-22  6:49         ` Matti Nykyri
2015-03-22  7:06           ` German
2015-03-22  7:11             ` Alexander Kapshuk
2015-03-22  7:22               ` Matti Nykyri
2015-03-22  7:19             ` Fernando Rodriguez
2015-03-22  7:30               ` German
2015-03-22  7:34                 ` Matti Nykyri
2015-03-22  7:35                 ` Fernando Rodriguez
2015-03-22  7:55                   ` German
2015-03-22  7:47                 ` Fernando Rodriguez
2015-03-22  7:57                   ` German
2015-03-23  1:39                 ` Walter Dnes
2015-03-22  7:31             ` Fernando Rodriguez
2015-03-22  7:35               ` Matti Nykyri
2015-03-22  7:55                 ` Fernando Rodriguez
2015-03-22  7:56                 ` German
2015-03-26  0:53         ` microcai
2015-03-26 15:36           ` Tom H
2015-03-22  7:41 ` [gentoo-user] " Nikos Chantziaras
2015-03-26  1:46 ` [gentoo-user] " wabenbau
2015-03-26 16:13 ` [gentoo-user] " Hans
2015-03-26 16:28   ` Francisco Ares
2015-03-26 19:02     ` Emanuele Rusconi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOdo=Sxo8N1ejmPKW6fZgDh4B+Uuwh5Aiypt6gVizFX2+=Lj8Q@mail.gmail.com' \
    --to=tomh0665@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox