<div dir="ltr">Roy<div>I've probably fallen behind with updates, as my usual</div><div>apt-get upgrade</div><div>&</div><div>apt-get dist-upgrade</div><div>weren't doing anything, so resorted to</div><div>update-manager -d<br></div><div>It's still running after 4 hours, so hopefully I'll have a fully working system when I  get up  Monday.</div><div>It actually completed in 5 hours, and successfully rebooted into kernel 5.15.0-47-generic</div><div>I have'nt tried hibernate  yet. I'll check  kernel release notes for any references to hibernate, then maybe upgrade to a newer kernel, if relevant.</div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr">Andrew</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 17 Sept 2022 at 18:48, Roy <<a href="mailto:roy@crossford.net" target="_blank">roy@crossford.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Isn't the hibernate image compressed these days?</p>
    <p>That means that it might fit with some swap in use. It might not
      too.<br>
    </p>
    <p>Regards,</p>
    <p>Roy Bamford<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div>On 17/09/2022 16:50, Geetam wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>I only know the theory of hibernating, so please fill in a
          bit of hibernating knowledge that I do not have. (I am so
          old-fashioned that I shut down and boot up 😬 )<br>
        </div>
        <div><br>
        </div>
        <div>When hibernating, the state of internal memory is stored on
          disk. Linux uses the swap partition on disk for this. So your
          swap partition needs to be large enough, i.e. at least as
          large as your internal memory - in your case 32Gb<br>
        </div>
        <div><br>
        </div>
        <div>BUT WHAT HAPPENS when you have so much open on your desktop
          that your internal memory wasn't big enough and some of the
          less active processes have been swapped to swap space? (I am
          sure most of us avoid that, but that is what swap space is
          for, isn't it?)</div>
        <div><br>
        </div>
        <div>Say you have 40GB in use (32Gb in internal memory, 8Gb
          swapped to swap space). Is hibernating going to try to save
          40GB into swap space? That won't fit into the 32Gb swap
          partition... Or is it only writing the 32Gb in internal memory
          to the swap partition clobbering the 8Gb that was there? Then
          the full state of your desktop cannot be restored.</div>
        <div><br>
        </div>
        <div>Is this maybe why Andrew is not able to hibernate?<br>
        </div>
        <div><br>
        </div>
        <div>I am sure someone in the Linux world has thought about
          this, but I think we have forgotten because we try to have so
          much internal memory that swaps space is not used and the
          issue hardly ever arises these days. Still, I am curious 🤔<br>
        </div>
        <div><br>
        </div>
        <div>Regards</div>
        <div>Geetam</div>
        <div><br>
        </div>
        <div>
          <div>
            <div dir="ltr">
              <div dir="ltr">
                <div>-- <br>
                </div>
                <div>I don't know<br>
                  ...<br>
                </div>
                <div>I don't know what it is<br>
                  ...<br>
                </div>
                <div>I don't know what it is that I don't know<br>
                  <br>
                </div>
                <div>Isn't it beautiful<br>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, 16 Sept 2022 at 08:04,
          Colin Shorts <<a href="mailto:colin.shorts@gmail.com" target="_blank">colin.shorts@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="auto">
            <div>Hi Andrew, I'd be inclined to add a smidgen more swap
              to be on the safe side.</div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">I take it `sudo pm-hibernate` doesn't work
              (correctly) either? Are the kernel parameters getting set
              at boot (I think dmesg should say which device will be
              used)? Is your swap partition on lvm, are you mounting it
              using the uuid?</div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">I'm in the middle of redecorating my home
              office or I'd give it a bash myself 😃</div>
            <div dir="auto"><br>
            </div>
            <div dir="auto">Cheers,</div>
            <div dir="auto">Colin</div>
            <div dir="auto"><br>
              <div class="gmail_quote" dir="auto">
                <div dir="ltr" class="gmail_attr">On Fri, 16 Sept 2022,
                  01:16 Andrew Smith, <<a href="mailto:asmith9983@gmail.com" target="_blank">asmith9983@gmail.com</a>>
                  wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                  <div dir="ltr">Hi Colin
                    <div>I have 32Gb of swap, with <i>htop</i> reporting 
                      none used in normal operation.</div>
                    <div>Suspend works OK. Given the minimal energy
                      consumed overnight on suspend, I may just continue
                      using that until I can investigate further  how  <i>suspend-then-hibernate</i> is
                      meant to operate by reading the sourcecode of <i>systemctl. </i></div>
                    <div>
                      <div>
                        <div dir="ltr">
                          <div dir="ltr">Andrew</div>
                        </div>
                      </div>
                      <br>
                    </div>
                  </div>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">On Wed, 14 Sept
                      2022 at 20:07, Colin Shorts <<a href="mailto:colin.shorts@gmail.com" rel="noreferrer" target="_blank">colin.shorts@gmail.com</a>>
                      wrote:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                      <div dir="auto">I'm no expert on hibernate (I use
                        suspend myself), but iirc you'll need at least
                        as much free swap as system ram +used swap. 64GB
                        doesn't sound unreasonable as a starting point
                        assuming you've got enough space and considering
                        how much Chrome can chew up.
                        <div dir="auto"><br>
                        </div>
                        <div dir="auto">-Colin</div>
                      </div>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr" class="gmail_attr">On Wed, 14
                          Sept 2022, 18:03 Andrew Smith, <<a href="mailto:asmith9983@gmail.com" rel="noreferrer" target="_blank">asmith9983@gmail.com</a>>
                          wrote:<br>
                        </div>
                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                          <div dir="ltr">Guys
                            <div>For quite a while, I've been putting my
                              system into suspend mode, which was
                              successful , apart from an odd occassion. 
                              I now want to try saving more energy</div>
                            <div>I've tried powering down, but would
                              like it to restart in the same state
                              rather than with a new login, as I had
                              with suspend.</div>
                            <div>I've tried "systemctl
                              suspend-then-hibernate" from root CLI,
                              but  I get essentially  a fresh boot. </div>
                            <div><br>
                            </div>
                            <div>Any suggestions ?</div>
                            <div>I'm running kernel 5.4.0-125-generic
                              from Ubuntu, in 32Gb RAM, and typically
                              have a around hundred tabs open on Chrome.<br>
                            </div>
                            <div>
                              <div>
                                <div dir="ltr">
                                  <div dir="ltr">Andrew</div>
                                </div>
                              </div>
                            </div>
                          </div>
                          -- <br>
                          EdLUG mailing list<br>
                          <a href="mailto:EdLUG@mailman.lug.org.uk" rel="noreferrer noreferrer" target="_blank">EdLUG@mailman.lug.org.uk</a><br>
                          <a href="https://lists.edlug.org.uk/mailman/listinfo/edlug" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.edlug.org.uk/mailman/listinfo/edlug</a><br>
                        </blockquote>
                      </div>
                      -- <br>
                      EdLUG mailing list<br>
                      <a href="mailto:EdLUG@mailman.lug.org.uk" rel="noreferrer" target="_blank">EdLUG@mailman.lug.org.uk</a><br>
                      <a href="https://lists.edlug.org.uk/mailman/listinfo/edlug" rel="noreferrer noreferrer" target="_blank">https://lists.edlug.org.uk/mailman/listinfo/edlug</a><br>
                    </blockquote>
                  </div>
                  -- <br>
                  EdLUG mailing list<br>
                  <a href="mailto:EdLUG@mailman.lug.org.uk" rel="noreferrer" target="_blank">EdLUG@mailman.lug.org.uk</a><br>
                  <a href="https://lists.edlug.org.uk/mailman/listinfo/edlug" rel="noreferrer noreferrer" target="_blank">https://lists.edlug.org.uk/mailman/listinfo/edlug</a><br>
                </blockquote>
              </div>
            </div>
          </div>
          -- <br>
          EdLUG mailing list<br>
          <a href="mailto:EdLUG@mailman.lug.org.uk" target="_blank">EdLUG@mailman.lug.org.uk</a><br>
          <a href="https://lists.edlug.org.uk/mailman/listinfo/edlug" rel="noreferrer" target="_blank">https://lists.edlug.org.uk/mailman/listinfo/edlug</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
    </blockquote>
  </div>

-- <br>
EdLUG mailing list<br>
<a href="mailto:EdLUG@mailman.lug.org.uk" target="_blank">EdLUG@mailman.lug.org.uk</a><br>
<a href="https://lists.edlug.org.uk/mailman/listinfo/edlug" rel="noreferrer" target="_blank">https://lists.edlug.org.uk/mailman/listinfo/edlug</a><br>
</blockquote></div>