From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5AD2F138A3F for ; Sun, 5 Apr 2015 11:24:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7212E0A82; Sun, 5 Apr 2015 11:24:10 +0000 (UTC) Received: from mail-ig0-f181.google.com (mail-ig0-f181.google.com [209.85.213.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6EFCFE09A5 for ; Sun, 5 Apr 2015 11:24:09 +0000 (UTC) Received: by igblo3 with SMTP id lo3so5333649igb.1 for ; Sun, 05 Apr 2015 04:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=HUezuVhzA137VKEV49bzHE0mP5DFE2tygkJtih9rRMo=; b=qL5q5QbAlFPxgCiXj/h22DfH1/LIjcqEE0oBnAexBJ2X1Ktfzn+nb8HVyDGrYKpOKv Zm5gYIQVtVTleBOOTxFstdLATkfUSHJxxXnOXSy5KCIai1U0BA2IrUD1eBY4JOYRTsp8 onMG0Tsc/9HO5+LLJ8MW5q8n4UevguprhdHLnVXSgNOszDtTJGAD5MX37JcefqyTIw6E OE7xDXy0fqy9FJvGSxHyWgnKBSOgYgxDX8bNivIkxKyWJ+tQ89R+Y1ens5TjjBxgb2Ej xASbjox1X2KBYf2oBxkJ8FWq90ZvmlFHhLm8Pq/vtFXpSSn3F50XW4/WsCQmeM5youQ2 DE5g== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.43.66.131 with SMTP id xq3mr13827339icb.9.1428233048918; Sun, 05 Apr 2015 04:24:08 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.107.48.198 with HTTP; Sun, 5 Apr 2015 04:24:08 -0700 (PDT) In-Reply-To: <5520E3D5.8010608@gmail.com> References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <20150322155852.GA1081@ca.inter.net> <87pp7sqf0b.fsf@heimdali.yagibdah.de> <1887274.L0doMiab5F@navi> <87bnj4nk0n.fsf@heimdali.yagibdah.de> <20150404233707.5ef93454@digimed.co.uk> <5520E3D5.8010608@gmail.com> Date: Sun, 5 Apr 2015 07:24:08 -0400 X-Google-Sender-Auth: Za1HkRzUeXNLbEXl8dnsVvwhOYA Message-ID: Subject: Re: [gentoo-user] Re: How to poweroff the system from user? From: Rich Freeman To: gentoo-user@lists.gentoo.org Cc: Dale Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 3e27f0b1-c580-4225-9106-8043d2e29059 X-Archives-Hash: f836f59ac5a95a704a5cec3eac7c6c75 On Sun, Apr 5, 2015 at 3:27 AM, Dale wrote: > Neil Bothwick wrote: >> On Sat, 04 Apr 2015 14:41:12 +0200, lee wrote: >> >>>> On Linux now there's the Magic SysRq Key feature for that. >>> I always can't remember which keys to press with that, so I have it >>> disabled. >> BUSIER backwards. >> >>> And when the keyboard is unresponsive, it won't work. >> It usually does. The kernel sees the Magic key events directly, so even >> if your X server has crashed, it will still respond to Alt-SysReq. >> >> > > I used that on a few puters. I don't recall this ever not working. X > may not see the keyboard but the kernel does. It's a life saver at > times too. At least you can sync and unmount cleanly. > If you're dealing with a kernel panic of some kind (which you inevitably are when you are doing this sort of thing), all bets are off. I'll agree that usually the magic sysrq works. However, there are certainly going to be cases where it doesn't, or at least where parts of it don't work. In my case the part that usually fails for me right now is btrfs, so unmounting won't work anyway (though I guess it will take care of the ext4 backup partition that is only rarely touched anyway). -- Rich