From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Implement power management (suspend, hibernate, resume) in Shepherd? Date: Sun, 09 Jul 2017 00:09:50 +0200 Message-ID: <878tjywpg1.fsf@gnu.org> References: <20150328205904.GB8346@venom> <87a84l3u88.fsf@gmail.com> <874lusgfsw.fsf@netris.org> 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]:41090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTxvK-0004J7-40 for help-guix@gnu.org; Sat, 08 Jul 2017 18:09:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTxvF-0005e4-5l for help-guix@gnu.org; Sat, 08 Jul 2017 18:09:58 -0400 In-Reply-To: <874lusgfsw.fsf@netris.org> (Mark H. Weaver's message of "Tue, 04 Jul 2017 15:31:11 -0400") 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: Mark H Weaver Cc: help-guix Mark H Weaver skribis: > 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. Even simpler: closing my laptop=E2=80=99s lid puts it into suspend-to-memory mode. Ludo=E2=80=99.