From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mekeor Melire Subject: Implement power management (suspend, hibernate, resume) in Shepherd? Date: Tue, 04 Jul 2017 02:45:43 +0200 Message-ID: <87a84l3u88.fsf@gmail.com> References: <20150328205904.GB8346@venom> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSByY-0002sl-8B for help-guix@gnu.org; Mon, 03 Jul 2017 20:45:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSByX-0003uz-BY for help-guix@gnu.org; Mon, 03 Jul 2017 20:45:58 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:36229) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSByX-0003oA-4j for help-guix@gnu.org; Mon, 03 Jul 2017 20:45:57 -0400 Received: by mail-wm0-x235.google.com with SMTP id 62so181941740wmw.1 for ; Mon, 03 Jul 2017 17:45:55 -0700 (PDT) Received: from melibre. ([2001:a61:2271:3a01:ed5a:f4d1:54c7:16e9]) by smtp.gmail.com with ESMTPSA id 15sm15543900wmx.18.2017.07.03.17.45.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jul 2017 17:45:53 -0700 (PDT) In-Reply-To: <20150328205904.GB8346@venom> 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: help-guix I'm bumping this old thread: https://lists.gnu.org/archive/html/guix-devel/2015-03/msg00757.html because I'd like to discuss if it still makes sense to implement power management, i.e. suspend (to memory=RAM), hibernate (to (hard) disk) and resume in GNU Shepherd. As far as I can see, Shepherd currently only provides ‘halt’ and ‘reboot’. As far as I understand, currently GuixSD uses elogind (“systemd project's ‘logind’, extracted to a standalone package”) 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 ‘echo mem > /sys/power/state’.) Is it still desirable that Shepherd itself could get this job done?