From: Nolan Wright <nolan.wright.other@gmail.com>
To: Mark H Weaver <mhw@netris.org>
Cc: 37290@debbugs.gnu.org
Subject: bug#37290: Guix System: Hibernation
Date: Tue, 3 Sep 2019 08:36:46 -0400 [thread overview]
Message-ID: <CAEAJkaGgb_r0pg+MT-yLtq=n6P8N=kYWcPmOF+AWyzaM+KpQQQ@mail.gmail.com> (raw)
In-Reply-To: <87tv9u83j6.fsf@netris.org>
[-- Attachment #1: Type: text/plain, Size: 2424 bytes --]
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@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.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
>
>
>
[-- Attachment #2: Type: text/html, Size: 3661 bytes --]
prev parent reply other threads:[~2019-09-03 14:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-02 21:06 bug#37290: Guix System: Hibernation Nolan Wright
2019-09-03 3:24 ` Mark H Weaver
2019-09-03 12:36 ` Nolan Wright [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAEAJkaGgb_r0pg+MT-yLtq=n6P8N=kYWcPmOF+AWyzaM+KpQQQ@mail.gmail.com' \
--to=nolan.wright.other@gmail.com \
--cc=37290@debbugs.gnu.org \
--cc=mhw@netris.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).