how to fix hibernate on lubuntu 18.04












1














upgraded lubuntu 16.04 to 18.04 and hibernation stopped working. I used to hibernate by doing



systemctl hibernate



on 18.04 it seems like it does the hibernation, but when I load the os it gives me a new workspace and the old image is not loaded. This seems to be a bug.
Please, advise if anybody knows how to fix. I tried to report a bug on launchpad, but could not pass the paperwork requirements. the ubuntu bug report tool expects the bug to come from an app after os is loaded and cannot catch any bugs that happen during the load. see launchpad question #676281. anyway seems like



cat: /tmp/initrd/main/conf/conf.d/zz-auto-resume: No such file or directory



is the problem
Thanks










share|improve this question



























    1














    upgraded lubuntu 16.04 to 18.04 and hibernation stopped working. I used to hibernate by doing



    systemctl hibernate



    on 18.04 it seems like it does the hibernation, but when I load the os it gives me a new workspace and the old image is not loaded. This seems to be a bug.
    Please, advise if anybody knows how to fix. I tried to report a bug on launchpad, but could not pass the paperwork requirements. the ubuntu bug report tool expects the bug to come from an app after os is loaded and cannot catch any bugs that happen during the load. see launchpad question #676281. anyway seems like



    cat: /tmp/initrd/main/conf/conf.d/zz-auto-resume: No such file or directory



    is the problem
    Thanks










    share|improve this question

























      1












      1








      1







      upgraded lubuntu 16.04 to 18.04 and hibernation stopped working. I used to hibernate by doing



      systemctl hibernate



      on 18.04 it seems like it does the hibernation, but when I load the os it gives me a new workspace and the old image is not loaded. This seems to be a bug.
      Please, advise if anybody knows how to fix. I tried to report a bug on launchpad, but could not pass the paperwork requirements. the ubuntu bug report tool expects the bug to come from an app after os is loaded and cannot catch any bugs that happen during the load. see launchpad question #676281. anyway seems like



      cat: /tmp/initrd/main/conf/conf.d/zz-auto-resume: No such file or directory



      is the problem
      Thanks










      share|improve this question













      upgraded lubuntu 16.04 to 18.04 and hibernation stopped working. I used to hibernate by doing



      systemctl hibernate



      on 18.04 it seems like it does the hibernation, but when I load the os it gives me a new workspace and the old image is not loaded. This seems to be a bug.
      Please, advise if anybody knows how to fix. I tried to report a bug on launchpad, but could not pass the paperwork requirements. the ubuntu bug report tool expects the bug to come from an app after os is loaded and cannot catch any bugs that happen during the load. see launchpad question #676281. anyway seems like



      cat: /tmp/initrd/main/conf/conf.d/zz-auto-resume: No such file or directory



      is the problem
      Thanks







      ubuntu hibernate ubuntu-18.04






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 13 '18 at 3:18









      user1680980

      62




      62






















          1 Answer
          1






          active

          oldest

          votes


















          0














          to fix hibernate not working on lubuntu 18.04 you need to add a kernel parameter to the bootloader



          you would first edit grub:



          sudo nano /etc/default/grub


          and change GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sdXY"



          where /dev/sdXY is the swap partition



          save the file then update grub:



          sudo update-grub


          then update the initramfs:



          sudo update-initramfs -u


          now it should work when you use sudo systemctl hibernate



          edit: instead of using GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sdXY" you could use GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/disk/by-uuid/X"



          replace X with the uuid of the swap partition which you could find using ls -l /dev/disk/by-uuid






          share|improve this answer























          • is there a way to test if the new grub works? also, is there a way to tell it that if the specified resume does not load then use the usual load from the hd? finally, if I do it and it gives me a black screen with failure, what is the way to revert? do I load the os from a usb? Really appreciate your help.
            – user1680980
            Dec 18 '18 at 16:56












          • also, I think that using /dev/sdb is considered risky and UUID is encouraged. can you provide an example how to use the UUID?
            – user1680980
            Dec 18 '18 at 17:04










          • Yee-haw. It works. I tried to vote up the solution, but it does not allow me because of low reputation.
            – user1680980
            Dec 29 '18 at 21:59











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1383173%2fhow-to-fix-hibernate-on-lubuntu-18-04%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          to fix hibernate not working on lubuntu 18.04 you need to add a kernel parameter to the bootloader



          you would first edit grub:



          sudo nano /etc/default/grub


          and change GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sdXY"



          where /dev/sdXY is the swap partition



          save the file then update grub:



          sudo update-grub


          then update the initramfs:



          sudo update-initramfs -u


          now it should work when you use sudo systemctl hibernate



          edit: instead of using GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sdXY" you could use GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/disk/by-uuid/X"



          replace X with the uuid of the swap partition which you could find using ls -l /dev/disk/by-uuid






          share|improve this answer























          • is there a way to test if the new grub works? also, is there a way to tell it that if the specified resume does not load then use the usual load from the hd? finally, if I do it and it gives me a black screen with failure, what is the way to revert? do I load the os from a usb? Really appreciate your help.
            – user1680980
            Dec 18 '18 at 16:56












          • also, I think that using /dev/sdb is considered risky and UUID is encouraged. can you provide an example how to use the UUID?
            – user1680980
            Dec 18 '18 at 17:04










          • Yee-haw. It works. I tried to vote up the solution, but it does not allow me because of low reputation.
            – user1680980
            Dec 29 '18 at 21:59
















          0














          to fix hibernate not working on lubuntu 18.04 you need to add a kernel parameter to the bootloader



          you would first edit grub:



          sudo nano /etc/default/grub


          and change GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sdXY"



          where /dev/sdXY is the swap partition



          save the file then update grub:



          sudo update-grub


          then update the initramfs:



          sudo update-initramfs -u


          now it should work when you use sudo systemctl hibernate



          edit: instead of using GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sdXY" you could use GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/disk/by-uuid/X"



          replace X with the uuid of the swap partition which you could find using ls -l /dev/disk/by-uuid






          share|improve this answer























          • is there a way to test if the new grub works? also, is there a way to tell it that if the specified resume does not load then use the usual load from the hd? finally, if I do it and it gives me a black screen with failure, what is the way to revert? do I load the os from a usb? Really appreciate your help.
            – user1680980
            Dec 18 '18 at 16:56












          • also, I think that using /dev/sdb is considered risky and UUID is encouraged. can you provide an example how to use the UUID?
            – user1680980
            Dec 18 '18 at 17:04










          • Yee-haw. It works. I tried to vote up the solution, but it does not allow me because of low reputation.
            – user1680980
            Dec 29 '18 at 21:59














          0












          0








          0






          to fix hibernate not working on lubuntu 18.04 you need to add a kernel parameter to the bootloader



          you would first edit grub:



          sudo nano /etc/default/grub


          and change GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sdXY"



          where /dev/sdXY is the swap partition



          save the file then update grub:



          sudo update-grub


          then update the initramfs:



          sudo update-initramfs -u


          now it should work when you use sudo systemctl hibernate



          edit: instead of using GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sdXY" you could use GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/disk/by-uuid/X"



          replace X with the uuid of the swap partition which you could find using ls -l /dev/disk/by-uuid






          share|improve this answer














          to fix hibernate not working on lubuntu 18.04 you need to add a kernel parameter to the bootloader



          you would first edit grub:



          sudo nano /etc/default/grub


          and change GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sdXY"



          where /dev/sdXY is the swap partition



          save the file then update grub:



          sudo update-grub


          then update the initramfs:



          sudo update-initramfs -u


          now it should work when you use sudo systemctl hibernate



          edit: instead of using GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/sdXY" you could use GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=/dev/disk/by-uuid/X"



          replace X with the uuid of the swap partition which you could find using ls -l /dev/disk/by-uuid







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 18 '18 at 17:26

























          answered Dec 18 '18 at 7:46









          ptetteh227

          1013




          1013












          • is there a way to test if the new grub works? also, is there a way to tell it that if the specified resume does not load then use the usual load from the hd? finally, if I do it and it gives me a black screen with failure, what is the way to revert? do I load the os from a usb? Really appreciate your help.
            – user1680980
            Dec 18 '18 at 16:56












          • also, I think that using /dev/sdb is considered risky and UUID is encouraged. can you provide an example how to use the UUID?
            – user1680980
            Dec 18 '18 at 17:04










          • Yee-haw. It works. I tried to vote up the solution, but it does not allow me because of low reputation.
            – user1680980
            Dec 29 '18 at 21:59


















          • is there a way to test if the new grub works? also, is there a way to tell it that if the specified resume does not load then use the usual load from the hd? finally, if I do it and it gives me a black screen with failure, what is the way to revert? do I load the os from a usb? Really appreciate your help.
            – user1680980
            Dec 18 '18 at 16:56












          • also, I think that using /dev/sdb is considered risky and UUID is encouraged. can you provide an example how to use the UUID?
            – user1680980
            Dec 18 '18 at 17:04










          • Yee-haw. It works. I tried to vote up the solution, but it does not allow me because of low reputation.
            – user1680980
            Dec 29 '18 at 21:59
















          is there a way to test if the new grub works? also, is there a way to tell it that if the specified resume does not load then use the usual load from the hd? finally, if I do it and it gives me a black screen with failure, what is the way to revert? do I load the os from a usb? Really appreciate your help.
          – user1680980
          Dec 18 '18 at 16:56






          is there a way to test if the new grub works? also, is there a way to tell it that if the specified resume does not load then use the usual load from the hd? finally, if I do it and it gives me a black screen with failure, what is the way to revert? do I load the os from a usb? Really appreciate your help.
          – user1680980
          Dec 18 '18 at 16:56














          also, I think that using /dev/sdb is considered risky and UUID is encouraged. can you provide an example how to use the UUID?
          – user1680980
          Dec 18 '18 at 17:04




          also, I think that using /dev/sdb is considered risky and UUID is encouraged. can you provide an example how to use the UUID?
          – user1680980
          Dec 18 '18 at 17:04












          Yee-haw. It works. I tried to vote up the solution, but it does not allow me because of low reputation.
          – user1680980
          Dec 29 '18 at 21:59




          Yee-haw. It works. I tried to vote up the solution, but it does not allow me because of low reputation.
          – user1680980
          Dec 29 '18 at 21:59


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1383173%2fhow-to-fix-hibernate-on-lubuntu-18-04%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          If I really need a card on my start hand, how many mulligans make sense? [duplicate]

          Alcedinidae