From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: Implement power management (suspend, hibernate, resume) in Shepherd? Date: Tue, 04 Jul 2017 15:31:11 -0400 Message-ID: <874lusgfsw.fsf@netris.org> References: <20150328205904.GB8346@venom> <87a84l3u88.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSTXk-0000kC-JY for help-guix@gnu.org; Tue, 04 Jul 2017 15:31:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSTXh-0003XH-FK for help-guix@gnu.org; Tue, 04 Jul 2017 15:31:28 -0400 Received: from world.peace.net ([50.252.239.5]:40223) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSTXh-0003Wx-BZ for help-guix@gnu.org; Tue, 04 Jul 2017 15:31:25 -0400 In-Reply-To: <87a84l3u88.fsf@gmail.com> (Mekeor Melire's message of "Tue, 04 Jul 2017 02:45:43 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Mekeor Melire Cc: help-guix Mekeor Melire writes: > As far as I understand, currently GuixSD uses elogind (=E2=80=9Csystemd > project's =E2=80=98logind=E2=80=99, extracted to a standalone package=E2= =80=9D) to suspend, > hibernate and resume when some events happen, like pressing the > suspend-key etc. > > Is there any nice way to suspend GuixSD by command? (I didn't yet try > out =E2=80=98echo mem > /sys/power/state=E2=80=99.) "loginctl suspend" will do it, optionally with "-i" added to ignore inhibitors. See "loginctl --help" for more. Mark