From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nolan Wright Subject: bug#37290: Guix System: Hibernation Date: Tue, 3 Sep 2019 08:36:46 -0400 Message-ID: References: <87tv9u83j6.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000012941a0591a55869" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45370) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i59yY-00047I-E1 for bug-guix@gnu.org; Tue, 03 Sep 2019 10:40:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i59yW-0005In-Vs for bug-guix@gnu.org; Tue, 03 Sep 2019 10:40:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51625) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i59yW-0005IS-Qz for bug-guix@gnu.org; Tue, 03 Sep 2019 10:40:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i59yW-0004Mq-Mn for bug-guix@gnu.org; Tue, 03 Sep 2019 10:40:04 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87tv9u83j6.fsf@netris.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Mark H Weaver Cc: 37290@debbugs.gnu.org --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--