GNU bug report logs - #37290
Guix System: Hibernation

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Nolan Wright <nolan.wright.other@HIDDEN>; dated Mon, 2 Sep 2019 22:54:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 37290 <at> debbugs.gnu.org:


Received: (at 37290) by debbugs.gnu.org; 3 Sep 2019 14:39:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 03 10:39:41 2019
Received: from localhost ([127.0.0.1]:60438 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i59y8-0004LK-8c
	for submit <at> debbugs.gnu.org; Tue, 03 Sep 2019 10:39:41 -0400
Received: from mail-lf1-f45.google.com ([209.85.167.45]:46754)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nolan.wright.other@HIDDEN>) id 1i583S-0000xs-SN
 for 37290 <at> debbugs.gnu.org; Tue, 03 Sep 2019 08:37:03 -0400
Received: by mail-lf1-f45.google.com with SMTP id t8so285784lfc.13
 for <37290 <at> debbugs.gnu.org>; Tue, 03 Sep 2019 05:37:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=o/P7pMH68ImgqNPyvzkfHTf1PjTkX4be0yTw7LnIKeE=;
 b=oFXNBCE8EKzd25e7nP5gxhWkREwrITU2KGXY2ih1aDlJwhK1ujy8CLh52Qxt7oEuLF
 Y2QeLkdr13gWy3cSznoSOu1u1x6lgAg2fk/c0ptQnl9M9tXZoqesOPcCEEJFr6DDNjiI
 sjNUbTMl/jTwgjmzp3jHt3Wr4fgjd9evV7LTI+VBuJFueOYM3kSNcSe8HRUBMOgJoifI
 g5I3k015BGbJJR/DGcuFVZcN8aG3rJwZ9PyC7usJqegJO0keCAeCk96ujdTLWMp014EV
 93Yak4ZX49hR2IV4hMDHt4A7EZ8q0MVClTL5Fu1ZL30c8voEYCfbNMkBDUFV1fqKXp1Y
 Q28A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=o/P7pMH68ImgqNPyvzkfHTf1PjTkX4be0yTw7LnIKeE=;
 b=mpafbNdOQLF1ZJxddVys0gvC0/1tJoRJWrWC2G5DPcE9TDIDjK7/QnGlOg/p/fISWb
 O1d7DgvIE7NmNM/w2UYUAW1j6QOqsDlHsmfpOMbgYxOekVyXvuWnZqZ8+nCmoP1FT432
 I+wESk+0xdTbKtUPK5rIPmR/ZKok7Y3ipHJslbmSYvE+pwzmV2ZTSOxx9Ro9R5MJWvnp
 f1YMn0eih8CRjVUrICbeYymawP5LQdXRzvusfJyhb/7tOauTjvF0SVLyokGEVCuhl3U1
 pIuohR7EWcXhJBQ39AHZ/n8CkW537DVhpY88Qcrzbem21GHt+SpR5PZ5jsZPtszvPBAx
 WAJA==
X-Gm-Message-State: APjAAAVdSG5NU3XDomI04LEU/5B+xtEhPP9aZGDsYboIbxldi3oUqbkb
 Jea+P6NRqv19JUtJl2aUyms4Z0dRVe+MRVaRkPQ=
X-Google-Smtp-Source: APXvYqxuVdlfNMjgT05tezcSoHEEzjel4sIc51gg8BqUntEJcWkTPSvjLJp1OiEXW356vrOL8IT5vBFvs/bKGI5iAG8=
X-Received: by 2002:ac2:53a3:: with SMTP id j3mr15446551lfh.155.1567514216796; 
 Tue, 03 Sep 2019 05:36:56 -0700 (PDT)
MIME-Version: 1.0
References: <CAEAJkaGJoYZTHjzTyLDVir-kV=HJkmh19Z8xRLuAVdyrKMWfUA@HIDDEN>
 <87tv9u83j6.fsf@HIDDEN>
In-Reply-To: <87tv9u83j6.fsf@HIDDEN>
From: Nolan Wright <nolan.wright.other@HIDDEN>
Date: Tue, 3 Sep 2019 08:36:46 -0400
Message-ID: <CAEAJkaGgb_r0pg+MT-yLtq=n6P8N=kYWcPmOF+AWyzaM+KpQQQ@HIDDEN>
Subject: Re: bug#37290: Guix System: Hibernation
To: Mark H Weaver <mhw@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000012941a0591a55869"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37290
X-Mailman-Approved-At: Tue, 03 Sep 2019 10:39:39 -0400
Cc: 37290 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--00000000000012941a0591a55869
Content-Type: text/plain; charset="UTF-8"

Hello Mark,

Thank you for that patch. I will test it out when I get a chance. I fully
support your efforts in this area and would like to see this added to the
operating-system configuration as you have described.

Best,
Nolan

On Mon, Sep 2, 2019 at 11:25 PM Mark H Weaver <mhw@HIDDEN> wrote:

> Hi Nolan,
>
> Nolan Wright <nolan.wright.other@HIDDEN> writes:
>
> > I have a desktop computer that sits in the same room where I
> > sleep. The fans produce a noise that I would prefer not to hear when
> > going to bed. For that reason, I wish to make use of the hibernation
> > feature, in which the system state is suspended to disk as described
> > here:
> >
> >
> https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate
> >
> > The IRC user nxck, who was very helpful, after some brief
> > experimentation concluded that Guix System probably does not support
> > the hibernation feature. Indeed the following comment in the source
> > code suggests as much:
> >
> >
> http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n598
> >
> > Additionally I found the following message in this mailing list from
> > three years ago which stated that the feature is not supported:
> >
> > https://lists.gnu.org/archive/html/bug-guix/2016-11/msg00067.html
>
> The message above links to an earlier message with my preliminary patch
> to support hibernation:
>
>   https://lists.gnu.org/archive/html/guix-devel/2016-08/msg00962.html
>
> I've been carrying that patch in my local branch of Guix for 3 years.
> It needs a bit more work before it's ready to include in Guix, and I'm
> sorry to say that I lost motivation to work on it because it seems that
> almost no one cares about hibernation today.
>
> Anyway, I've attached below a slightly updated version of the patch that
> applies cleanly to current Guix.  Quoting from the message above:
>
> you'll also need to add a line like this to your 'operating-system'
> definition.
>
>   (kernel-arguments '("resume=/dev/sda2"))
>
> Where the device named is a swap partition.
>
> WARNING: Since this is preliminary work, I recommend that the first time
> you test this, be prepared for the possibility that resume will fail.
> So far I've only tested it with simple partitions, without encryption or
> RAID.
>
> It may be that we should add a dedicated 'resume-device' field to the
> 'operating-system'.  Thoughts?
>
>       Mark
>
>
>

--00000000000012941a0591a55869
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div><div dir=3D"auto">Hello Mark,</div></div><div dir=3D"auto"><br></div><=
div dir=3D"auto">Thank you for that patch. I will test it out when I get a =
chance. I fully support your efforts in this area and would like to see thi=
s added to the operating-system configuration as you have described.</div><=
div dir=3D"auto"><br></div><div dir=3D"auto">Best,</div><div dir=3D"auto">N=
olan</div><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gma=
il_attr">On Mon, Sep 2, 2019 at 11:25 PM Mark H Weaver &lt;<a href=3D"mailt=
o:mhw@HIDDEN">mhw@HIDDEN</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">Hi Nolan,<br>
<br>
Nolan Wright &lt;<a href=3D"mailto:nolan.wright.other@HIDDEN" target=3D"=
_blank">nolan.wright.other@HIDDEN</a>&gt; writes:<br>
<br>
&gt; I have a desktop computer that sits in the same room where I<br>
&gt; sleep. The fans produce a noise that I would prefer not to hear when<b=
r>
&gt; going to bed. For that reason, I wish to make use of the hibernation<b=
r>
&gt; feature, in which the system state is suspended to disk as described<b=
r>
&gt; here:<br>
&gt;<br>
&gt; <a href=3D"https://wiki.archlinux.org/index.php/Power_management/Suspe=
nd_and_hibernate" rel=3D"noreferrer" target=3D"_blank">https://wiki.archlin=
ux.org/index.php/Power_management/Suspend_and_hibernate</a><br>
&gt;<br>
&gt; The IRC user nxck, who was very helpful, after some brief<br>
&gt; experimentation concluded that Guix System probably does not support<b=
r>
&gt; the hibernation feature. Indeed the following comment in the source<br=
>
&gt; code suggests as much:<br>
&gt;<br>
&gt; <a href=3D"http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services=
/desktop.scm#n598" rel=3D"noreferrer" target=3D"_blank">http://git.savannah=
.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n598</a><br>
&gt;<br>
&gt; Additionally I found the following message in this mailing list from<b=
r>
&gt; three years ago which stated that the feature is not supported:<br>
&gt;<br>
&gt; <a href=3D"https://lists.gnu.org/archive/html/bug-guix/2016-11/msg0006=
7.html" rel=3D"noreferrer" target=3D"_blank">https://lists.gnu.org/archive/=
html/bug-guix/2016-11/msg00067.html</a><br>
<br>
The message above links to an earlier message with my preliminary patch<br>
to support hibernation:<br>
<br>
=C2=A0 <a href=3D"https://lists.gnu.org/archive/html/guix-devel/2016-08/msg=
00962.html" rel=3D"noreferrer" target=3D"_blank">https://lists.gnu.org/arch=
ive/html/guix-devel/2016-08/msg00962.html</a><br>
<br>
I&#39;ve been carrying that patch in my local branch of Guix for 3 years.<b=
r>
It needs a bit more work before it&#39;s ready to include in Guix, and I&#3=
9;m<br>
sorry to say that I lost motivation to work on it because it seems that<br>
almost no one cares about hibernation today.<br>
<br>
Anyway, I&#39;ve attached below a slightly updated version of the patch tha=
t<br>
applies cleanly to current Guix.=C2=A0 Quoting from the message above:<br>
<br>
you&#39;ll also need to add a line like this to your &#39;operating-system&=
#39;<br>
definition.<br>
<br>
=C2=A0 (kernel-arguments &#39;(&quot;resume=3D/dev/sda2&quot;))<br>
<br>
Where the device named is a swap partition.<br>
<br>
WARNING: Since this is preliminary work, I recommend that the first time<br=
>
you test this, be prepared for the possibility that resume will fail.<br>
So far I&#39;ve only tested it with simple partitions, without encryption o=
r<br>
RAID.<br>
<br>
It may be that we should add a dedicated &#39;resume-device&#39; field to t=
he<br>
&#39;operating-system&#39;.=C2=A0 Thoughts?<br>
<br>
=C2=A0 =C2=A0 =C2=A0 Mark<br>
<br>
<br>
</blockquote></div></div>

--00000000000012941a0591a55869--




Information forwarded to bug-guix@HIDDEN:
bug#37290; Package guix. Full text available.

Message received at 37290 <at> debbugs.gnu.org:


Received: (at 37290) by debbugs.gnu.org; 3 Sep 2019 03:25:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 23:25:38 2019
Received: from localhost ([127.0.0.1]:59165 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4zRq-0001uO-E4
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 23:25:38 -0400
Received: from world.peace.net ([64.112.178.59]:35756)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mhw@HIDDEN>) id 1i4zRn-0001uF-HD
 for 37290 <at> debbugs.gnu.org; Mon, 02 Sep 2019 23:25:36 -0400
Received: from mhw by world.peace.net with esmtpsa
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89)
 (envelope-from <mhw@HIDDEN>)
 id 1i4zRl-0005s8-N4; Mon, 02 Sep 2019 23:25:33 -0400
From: Mark H Weaver <mhw@HIDDEN>
To: Nolan Wright <nolan.wright.other@HIDDEN>
Subject: Re: bug#37290: Guix System: Hibernation
References: <CAEAJkaGJoYZTHjzTyLDVir-kV=HJkmh19Z8xRLuAVdyrKMWfUA@HIDDEN>
Date: Mon, 02 Sep 2019 23:24:50 -0400
In-Reply-To: <CAEAJkaGJoYZTHjzTyLDVir-kV=HJkmh19Z8xRLuAVdyrKMWfUA@HIDDEN>
 (Nolan Wright's message of "Mon, 2 Sep 2019 17:06:31 -0400")
Message-ID: <87tv9u83j6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 37290
Cc: 37290 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

Hi Nolan,

Nolan Wright <nolan.wright.other@HIDDEN> writes:

> I have a desktop computer that sits in the same room where I
> sleep. The fans produce a noise that I would prefer not to hear when
> going to bed. For that reason, I wish to make use of the hibernation
> feature, in which the system state is suspended to disk as described
> here:
>
> https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate
>
> The IRC user nxck, who was very helpful, after some brief
> experimentation concluded that Guix System probably does not support
> the hibernation feature. Indeed the following comment in the source
> code suggests as much:
>
> http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n598
>
> Additionally I found the following message in this mailing list from
> three years ago which stated that the feature is not supported:
>
> https://lists.gnu.org/archive/html/bug-guix/2016-11/msg00067.html

The message above links to an earlier message with my preliminary patch
to support hibernation:

  https://lists.gnu.org/archive/html/guix-devel/2016-08/msg00962.html

I've been carrying that patch in my local branch of Guix for 3 years.
It needs a bit more work before it's ready to include in Guix, and I'm
sorry to say that I lost motivation to work on it because it seems that
almost no one cares about hibernation today.

Anyway, I've attached below a slightly updated version of the patch that
applies cleanly to current Guix.  Quoting from the message above:

you'll also need to add a line like this to your 'operating-system'
definition.

  (kernel-arguments '("resume=/dev/sda2"))

Where the device named is a swap partition.

WARNING: Since this is preliminary work, I recommend that the first time
you test this, be prepared for the possibility that resume will fail.
So far I've only tested it with simple partitions, without encryption or
RAID.

It may be that we should add a dedicated 'resume-device' field to the
'operating-system'.  Thoughts?

      Mark



--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline;
 filename=0001-PRELIMINARY-Add-support-for-hibernation.patch
Content-Description: [PATCH] PRELIMINARY: Add support for hibernation

From c0e9d9913b66649783a4fac05a0da4db1b79faec Mon Sep 17 00:00:00 2001
From: Mark H Weaver <mhw@HIDDEN>
Date: Sun, 14 Aug 2016 04:45:06 -0400
Subject: [PATCH] PRELIMINARY: Add support for hibernation.

* gnu/build/linux-boot.scm (boot-system): Look for a resume=<device-name>
argument on the linux command line, and if present, attempt to resume from
hibernation.
* gnu/services/desktop.scm (<elogind-configuration>): Change the default
value of the 'handle-hibernate-key' key to 'hibernate'.
---
 gnu/build/linux-boot.scm | 50 +++++++++++++++++++++++++++++++++++++---
 gnu/services/desktop.scm |  6 +----
 2 files changed, 48 insertions(+), 8 deletions(-)

diff --git a/gnu/build/linux-boot.scm b/gnu/build/linux-boot.scm
index f273957d78..767a424e72 100644
--- a/gnu/build/linux-boot.scm
+++ b/gnu/build/linux-boot.scm
@@ -477,9 +477,10 @@ upon error."
   (call-with-error-handling
    (lambda ()
      (mount-essential-file-systems)
-     (let* ((args    (linux-command-line))
-            (to-load (find-long-option "--load" args))
-            (root    (find-long-option "--root" args)))
+     (let* ((args          (linux-command-line))
+            (to-load       (find-long-option "--load" args))
+            (root          (find-long-option "--root" args))
+            (resume-device (find-long-option "resume" args)))
 
        (when (member "--repl" args)
          (start-repl))
@@ -512,6 +513,49 @@ upon error."
          (unless (pre-mount)
            (error "pre-mount actions failed")))
 
+       ;;
+       ;; Attempt to resume from hibernation.
+       ;;
+       ;; IMPORTANT: This *must* happen before we mount any filesystems on
+       ;; disk.  Quoting linux-libre/Documentation/swsusp.txt:
+       ;; 
+       ;; * BIG FAT WARNING **************************************************
+       ;; *
+       ;; * If you touch anything on disk between suspend and resume...
+       ;; *				...kiss your data goodbye.
+       ;; *
+       ;; * If you do resume from initrd after your filesystems are mounted...
+       ;; *				...bye bye root partition.
+       ;; *			[this is actually same case as above]
+       ;; *
+       (when (and resume-device
+                  (file-exists? resume-device)
+                  (file-exists? "/sys/power/resume"))
+         (false-if-exception
+          (let* ((device-base-name
+                  ;; The base name of the device file, after resolving
+                  ;; symlinks.
+                  (let loop ((file resume-device))
+                    (match (stat:type (lstat file))
+                      ('symlink
+                       (let ((target (readlink file)))
+                         (if (string-prefix? "/" target)
+                             (loop target)
+                             (loop (string-append (dirname file) "/" target)))))
+                      (_ (basename file)))))
+                 (major+minor
+                  ;; The major:minor string (e.g. "8:2") corresponding
+                  ;; to the resume device.
+                  (call-with-input-file (string-append "/sys/class/block/"
+                                                       device-base-name
+                                                       "/dev")
+                    read-line)))
+            ;; Write the major:minor string to /sys/power/resume
+            ;; to attempt resume from hibernation.
+            (when major+minor
+              (call-with-output-file "/sys/power/resume"
+                (cut display major+minor <>))))))
+
        (setenv "EXT2FS_NO_MTAB_OK" "1")
 
        (if root
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index a32756e040..93ad9cbc82 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -595,11 +595,7 @@ include the @command{udisksctl} command, part of UDisks, and GNOME Disks."
   (handle-suspend-key              elogind-handle-suspend-key
                                    (default 'suspend))
   (handle-hibernate-key            elogind-handle-hibernate-key
-                                   ;; (default 'hibernate)
-                                   ;; XXX Ignore it for now, since we don't
-                                   ;; yet handle resume-from-hibernation in
-                                   ;; our initrd.
-                                   (default 'ignore))
+                                   (default 'hibernate))
   (handle-lid-switch               elogind-handle-lid-switch
                                    (default 'suspend))
   (handle-lid-switch-docked        elogind-handle-lid-switch-docked
-- 
2.23.0


--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#37290; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Sep 2019 22:53:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 02 18:53:28 2019
Received: from localhost ([127.0.0.1]:59060 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i4vCR-0000An-OG
	for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 18:53:28 -0400
Received: from lists.gnu.org ([209.51.188.17]:50257)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <nolan.wright.other@HIDDEN>) id 1i4tXD-0005Ih-G4
 for submit <at> debbugs.gnu.org; Mon, 02 Sep 2019 17:06:48 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34427)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <nolan.wright.other@HIDDEN>) id 1i4tXC-0003Cd-7h
 for bug-guix@HIDDEN; Mon, 02 Sep 2019 17:06:47 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nolan.wright.other@HIDDEN>) id 1i4tXA-0006jb-Op
 for bug-guix@HIDDEN; Mon, 02 Sep 2019 17:06:46 -0400
Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:39762)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <nolan.wright.other@HIDDEN>)
 id 1i4tXA-0006i4-Hb
 for bug-guix@HIDDEN; Mon, 02 Sep 2019 17:06:44 -0400
Received: by mail-lj1-x22c.google.com with SMTP id j16so7785290ljg.6
 for <bug-guix@HIDDEN>; Mon, 02 Sep 2019 14:06:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=xzWz8aRNhYrh6MsAkuBZPggbjhzkKco3YgkQ0fXqfGg=;
 b=Yz5NQwQ8ehUfh2kbEBwPl741cjKEOhG0FTvwBGs0j5NU6yreB4uLOrEIdkSfwTzrFR
 ri0ZdYZTwKNejOwei2QR66Ha+g44jCTuaxdVkRaCpxY60bQmdUVCkSaFfTr/j+/6UYSP
 MT1bU97qe5UQU9Qq2a8oEMxrcAoO9kbBvtfrMGr4E1DdEsoeq4zliLaqsjwYWSn96LGw
 4Qg5prz1SRLv5LJPMkjI9rpQBCxqdWx6hNO4ygtlnQPQ54lsMWmQCVSEwqLPhuxAUI5Q
 bPOxfTS/dOgUMVhKIDr2jVqEmnusPMA8P+3yFyJjn8eHbzOnH8abFcm5EztvdTGfxoMX
 kKDg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=xzWz8aRNhYrh6MsAkuBZPggbjhzkKco3YgkQ0fXqfGg=;
 b=aWGQJLY7Z1q4ebBD2T99R8lTtFNHpj2oL94zbmPl6tZ09HYCVPQbj71RD6tZBGjxQK
 r+B6/oNw88kgsgtp9sgEN+ylKgSP13Xhp7GxBTNJYDJLisWA25cWz/qY+uoo9ESs0ZpE
 7USXsIqDFkI9GItT2g75Sxb9GqxrGkvNmERx1L+ZlF+a15tIBTxoeTOVVafiFETm5+xo
 uSr4zm/979SosSlu6LalSQjjnXshG8lYKuHpLwgpELZf6/OuCjfFoWh2K1rvMhb34Mhv
 AZ+ztLG2MYBtiNoWK0Ye9EMMSYD980IvjMhshhl+ghE3Gn7pG7+QIfnpX5O0rpHUItk6
 6heg==
X-Gm-Message-State: APjAAAU7qj9+2hY7AjKIO9oOJ2QHPEaURp51DjU9+g8Bg40DCDuAd59i
 ES1KkDLEJCXQSNkye0ur8bGWbD6jOlawk0rP/VP9hVQEDWM=
X-Google-Smtp-Source: APXvYqw1aNyOMGfnvumXGz5xlEB6q34uIOckaqa/E69/DPcKFvxGrjVxxtG36PMahrKd6wHcaFGCvf6vX69mzYPAXW0=
X-Received: by 2002:a05:651c:c1:: with SMTP id 1mr2216379ljr.119.1567458402305; 
 Mon, 02 Sep 2019 14:06:42 -0700 (PDT)
MIME-Version: 1.0
From: Nolan Wright <nolan.wright.other@HIDDEN>
Date: Mon, 2 Sep 2019 17:06:31 -0400
Message-ID: <CAEAJkaGJoYZTHjzTyLDVir-kV=HJkmh19Z8xRLuAVdyrKMWfUA@HIDDEN>
Subject: Guix System: Hibernation
To: bug-guix@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000450bd505919859ad"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::22c
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 02 Sep 2019 18:53:26 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--000000000000450bd505919859ad
Content-Type: text/plain; charset="UTF-8"

Hello,

I have a desktop computer that sits in the same room where I sleep. The
fans produce a noise that I would prefer not to hear when going to bed. For
that reason, I wish to make use of the hibernation feature, in which the
system state is suspended to disk as described here:

https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate

The IRC user *nxck*, who was very helpful, after some brief experimentation
concluded that Guix System probably does not support the hibernation
feature. Indeed the following comment in the source code suggests as much:

http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n598

Additionally I found the following message in this mailing list from three
years ago which stated that the feature is not supported:

https://lists.gnu.org/archive/html/bug-guix/2016-11/msg00067.html

The three requirements for the hibernation feature to my knowledge are: 1)
sufficient swap space; 2) the resume kernel parameter; and 3) the resume
hook in the initramfs.

So, in the case that this feature is currently supported, I ask for
guidance in implementing it, and in the case that it is not currently
supported, I put forth my advocacy for its support and ask for guidance in
adding support for it.

Thank you.

--000000000000450bd505919859ad
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,</div><div><br></div><div>I have a desktop comp=
uter that sits in the same room where I sleep. The fans produce a noise tha=
t I would prefer not to hear when going to bed. For that reason, I wish to =
make use of the hibernation feature, in which the system state is suspended=
 to disk as described here:</div><div><br></div><div><a href=3D"https://wik=
i.archlinux.org/index.php/Power_management/Suspend_and_hibernate">https://w=
iki.archlinux.org/index.php/Power_management/Suspend_and_hibernate</a></div=
><div><br></div><div>The IRC user <i>nxck</i>, who was very helpful, after =
some brief experimentation concluded that Guix System probably does not sup=
port the hibernation feature. Indeed the following comment in the source co=
de suggests as much:</div><div><br></div><div><a href=3D"http://git.savanna=
h.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n598">http://git.sava=
nnah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n598</a></div><div=
><br></div><div>Additionally I found the following message in this mailing =
list from three years ago which stated that the feature is not supported:</=
div><div><br></div><div><a href=3D"https://lists.gnu.org/archive/html/bug-g=
uix/2016-11/msg00067.html">https://lists.gnu.org/archive/html/bug-guix/2016=
-11/msg00067.html</a></div><div><br></div><div>The three requirements for t=
he hibernation feature to my knowledge are: 1) sufficient swap space; 2) th=
e resume kernel parameter; and 3) the resume hook in the initramfs.</div><d=
iv><br></div><div>So, in the case that this feature is currently supported,=
 I ask for guidance in implementing it, and in the case that it is not curr=
ently supported, I put forth my advocacy for its support and ask for guidan=
ce in adding support for it.<br></div><div><br></div><div>Thank you.<br></d=
iv></div>

--000000000000450bd505919859ad--




Acknowledgement sent to Nolan Wright <nolan.wright.other@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#37290; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.