From unknown Thu Aug 14 17:30:02 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37290 <37290@debbugs.gnu.org> To: bug#37290 <37290@debbugs.gnu.org> Subject: Status: Guix System: Hibernation Reply-To: bug#37290 <37290@debbugs.gnu.org> Date: Fri, 15 Aug 2025 00:30:02 +0000 retitle 37290 Guix System: Hibernation reassign 37290 guix submitter 37290 Nolan Wright severity 37290 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 02 18:53:28 2019 Received: (at submit) by debbugs.gnu.org; 2 Sep 2019 22:53:28 +0000 Received: from localhost ([127.0.0.1]:59060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4vCR-0000An-OG for submit@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 ) id 1i4tXD-0005Ih-G4 for submit@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 ) id 1i4tXC-0003Cd-7h for bug-guix@gnu.org; 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 ) id 1i4tXA-0006jb-Op for bug-guix@gnu.org; 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 ) id 1i4tXA-0006i4-Hb for bug-guix@gnu.org; Mon, 02 Sep 2019 17:06:44 -0400 Received: by mail-lj1-x22c.google.com with SMTP id j16so7785290ljg.6 for ; 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 Date: Mon, 2 Sep 2019 17:06:31 -0400 Message-ID: Subject: Guix System: Hibernation To: bug-guix@gnu.org 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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
Hello,

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:

https://w= iki.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 sup= port the hibernation feature. Indeed the following comment in the source co= de suggests as much:


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


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.

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.

Thank you.
--000000000000450bd505919859ad-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 02 23:25:38 2019 Received: (at 37290) by debbugs.gnu.org; 3 Sep 2019 03:25:38 +0000 Received: from localhost ([127.0.0.1]:59165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4zRq-0001uO-E4 for submit@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 ) id 1i4zRn-0001uF-HD for 37290@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 ) id 1i4zRl-0005s8-N4; Mon, 02 Sep 2019 23:25:33 -0400 From: Mark H Weaver To: Nolan Wright Subject: Re: bug#37290: Guix System: Hibernation References: Date: Mon, 02 Sep 2019 23:24:50 -0400 In-Reply-To: (Nolan Wright's message of "Mon, 2 Sep 2019 17:06:31 -0400") Message-ID: <87tv9u83j6.fsf@netris.org> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi Nolan, Nolan Wright 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 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= argument on the linux command line, and if present, attempt to resume from hibernation. * gnu/services/desktop.scm (): 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 03 10:39:41 2019 Received: (at 37290) by debbugs.gnu.org; 3 Sep 2019 14:39:41 +0000 Received: from localhost ([127.0.0.1]:60438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i59y8-0004LK-8c for submit@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 ) id 1i583S-0000xs-SN for 37290@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@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: <87tv9u83j6.fsf@netris.org> In-Reply-To: <87tv9u83j6.fsf@netris.org> From: Nolan Wright Date: Tue, 3 Sep 2019 08:36:46 -0400 Message-ID: Subject: Re: bug#37290: Guix System: Hibernation To: Mark H Weaver 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 wrote: > Hi Nolan, > > Nolan Wright 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
Hello Mark,

<= 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 dir=3D"auto">
Best,
N= olan

On Mon, Sep 2, 2019 at 11:25 PM Mark H Weaver <mhw@netris.org> wrote:
Hi Nolan,

Nolan Wright <nolan.wright.other@gmail.com> 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.archlin= ux.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:

=C2=A0 https://lists.gnu.org/arch= ive/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= 9;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 tha= t
applies cleanly to current Guix.=C2=A0 Quoting from the message above:

you'll also need to add a line like this to your 'operating-system&= #39;
definition.

=C2=A0 (kernel-arguments '("resume=3D/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 o= r
RAID.

It may be that we should add a dedicated 'resume-device' field to t= he
'operating-system'.=C2=A0 Thoughts?

=C2=A0 =C2=A0 =C2=A0 Mark


--00000000000012941a0591a55869-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 15:34:56 2021 Received: (at 37290-done) by debbugs.gnu.org; 9 May 2021 19:34:56 +0000 Received: from localhost ([127.0.0.1]:56633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfpCa-0000sa-6N for submit@debbugs.gnu.org; Sun, 09 May 2021 15:34:56 -0400 Received: from tobias.gr ([80.241.217.52]:35978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfpCY-0000sM-DL; Sun, 09 May 2021 15:34:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=ilqLFflMU6emAIagwYwARiYoSKIz8Rod4juTtMhJb88=; h=date:subject:to: from; b=VaB+50cqkVp6BwvuILPBYPedcTVzR2LKbaAxdhDGH5wD/Y7hT62UrYVer/ou0o TiuXpKIzBwM5dH+q8fThPwHYYC9e5xCxGKO6Hiw0NOSEtAKiqHOoURO7HapdS9mattCf7B 2IAf1y0UrbBDWzGAMfjB6qU0ek2/nRdkQvfeBVlN/1ky0yzRxZC4stP3kE93I2O0mSFB0h qD6CGcx+6NQBTajcII/nYZTy+vtsgxyWxAdD5Q0ZammPSbLP7iKnIEWzS9tZkHfhjhDrEl RgT7tKihxoTYBLNMuqqT80v+cDddIVSqEy+jJVuRLYu2+lMHXYq3iDpEadw7gvQraYR5fw == Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id caaa75fa (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Sun, 9 May 2021 19:35:05 +0000 (UTC) From: Tobias Geerinckx-Rice To: 37290-done@debbugs.gnu.org, 40927-done@debbugs.gnu.org Subject: Close hibernation bugs BIMI-Selector: v=BIMI1; s=default; Date: Sun, 09 May 2021 21:34:51 +0200 Message-ID: <878s4n66qs.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37290-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; format=flowed Hibernation has been supported on Guix Systems for a very long time now. I'm not aware of any, but any failures to hibernate are probably configuration or hardware-specific and should be reported as new bugs. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYJg5Ww0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15dlMA/jBmkNM5arayRiPDSQwa9LCL57WUZwxneWgWTD5e rl6rAQC55QAK30qLaO99EamcXHWq4G8Lp58hvOwJpbd7gZktBQ== =6OBF -----END PGP SIGNATURE----- --=-=-=-- From unknown Thu Aug 14 17:30:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 07 Jun 2021 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator