Hibernate (pm-hibernate using uswsusp) only works ONCE. Second time hangs, requires hard-reset











up vote
0
down vote

favorite












hopefully someone in this forum can enlighten me about what is causing my problem.



First off, I use Ubuntu 18.04 LTS with Kernel 4.19.8 (generic I guess?).



I installed pm-utils and uswsusp since sudo systemctl hibernate only causes the laptop screen to flicker and hang. Suspend (meaning closing the lid) works flawlessly though.



Now the problem:



Using ~15GB swap partition (8GB RAM) the first sudo pm-hibernate succeeds, it writes the image and restores the session. When I repeat this after that, it does not seem to write the image again and hangs, forcing me to shut down using the power button. When hibernating and rebooting afterwards, it does not seem to work a second time as well, meaning only when I shut down completely, it works.



I added my UUID in /etc/default/grub at grub_cmdline_linux_default=... resume=... and updated grub sudo update-grub



When trying out as root echo platform > /sys/power/disk and echo disk /sys/power/state everything freezes, similarly to using sudo systemctl hibernate. Similarly for echo shutdown and echo reboot



I tried out clearing the cache, using https://askubuntu.com/a/420152/902558 approach, meaning sync && sudo /sbin/sysctl vm.drop_caches=3which returns vm.drop_caches=3in the terminal. After rebooting and trying out sudo pm-hibernate , everything freezes.



I use a Lenovo Yoga 700 14isk which has a Nvidia GPU as secondary gpu, although I don't have any nouveau drivers etc. installed. Perhaps this information can be useful.



If you need more information, please feel free to ask, although bare in mind that my Ubuntu knowledge is exhausted pretty quickly.










share|improve this question







New contributor




mxOx2kL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • I'm not sure, but maybe try checking initramfs's resume .conf has the UUID of your swap partition? askubuntu.com/questions/1033104/…
    – Hee Jin
    Dec 12 at 19:00










  • Yes it does, it is entirely identical. also I already updated the initramfs as in the link, but I didn't dare to experiment as the initial post in your link (making additions to "/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla")
    – mxOx2kL
    Dec 12 at 19:13

















up vote
0
down vote

favorite












hopefully someone in this forum can enlighten me about what is causing my problem.



First off, I use Ubuntu 18.04 LTS with Kernel 4.19.8 (generic I guess?).



I installed pm-utils and uswsusp since sudo systemctl hibernate only causes the laptop screen to flicker and hang. Suspend (meaning closing the lid) works flawlessly though.



Now the problem:



Using ~15GB swap partition (8GB RAM) the first sudo pm-hibernate succeeds, it writes the image and restores the session. When I repeat this after that, it does not seem to write the image again and hangs, forcing me to shut down using the power button. When hibernating and rebooting afterwards, it does not seem to work a second time as well, meaning only when I shut down completely, it works.



I added my UUID in /etc/default/grub at grub_cmdline_linux_default=... resume=... and updated grub sudo update-grub



When trying out as root echo platform > /sys/power/disk and echo disk /sys/power/state everything freezes, similarly to using sudo systemctl hibernate. Similarly for echo shutdown and echo reboot



I tried out clearing the cache, using https://askubuntu.com/a/420152/902558 approach, meaning sync && sudo /sbin/sysctl vm.drop_caches=3which returns vm.drop_caches=3in the terminal. After rebooting and trying out sudo pm-hibernate , everything freezes.



I use a Lenovo Yoga 700 14isk which has a Nvidia GPU as secondary gpu, although I don't have any nouveau drivers etc. installed. Perhaps this information can be useful.



If you need more information, please feel free to ask, although bare in mind that my Ubuntu knowledge is exhausted pretty quickly.










share|improve this question







New contributor




mxOx2kL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • I'm not sure, but maybe try checking initramfs's resume .conf has the UUID of your swap partition? askubuntu.com/questions/1033104/…
    – Hee Jin
    Dec 12 at 19:00










  • Yes it does, it is entirely identical. also I already updated the initramfs as in the link, but I didn't dare to experiment as the initial post in your link (making additions to "/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla")
    – mxOx2kL
    Dec 12 at 19:13















up vote
0
down vote

favorite









up vote
0
down vote

favorite











hopefully someone in this forum can enlighten me about what is causing my problem.



First off, I use Ubuntu 18.04 LTS with Kernel 4.19.8 (generic I guess?).



I installed pm-utils and uswsusp since sudo systemctl hibernate only causes the laptop screen to flicker and hang. Suspend (meaning closing the lid) works flawlessly though.



Now the problem:



Using ~15GB swap partition (8GB RAM) the first sudo pm-hibernate succeeds, it writes the image and restores the session. When I repeat this after that, it does not seem to write the image again and hangs, forcing me to shut down using the power button. When hibernating and rebooting afterwards, it does not seem to work a second time as well, meaning only when I shut down completely, it works.



I added my UUID in /etc/default/grub at grub_cmdline_linux_default=... resume=... and updated grub sudo update-grub



When trying out as root echo platform > /sys/power/disk and echo disk /sys/power/state everything freezes, similarly to using sudo systemctl hibernate. Similarly for echo shutdown and echo reboot



I tried out clearing the cache, using https://askubuntu.com/a/420152/902558 approach, meaning sync && sudo /sbin/sysctl vm.drop_caches=3which returns vm.drop_caches=3in the terminal. After rebooting and trying out sudo pm-hibernate , everything freezes.



I use a Lenovo Yoga 700 14isk which has a Nvidia GPU as secondary gpu, although I don't have any nouveau drivers etc. installed. Perhaps this information can be useful.



If you need more information, please feel free to ask, although bare in mind that my Ubuntu knowledge is exhausted pretty quickly.










share|improve this question







New contributor




mxOx2kL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











hopefully someone in this forum can enlighten me about what is causing my problem.



First off, I use Ubuntu 18.04 LTS with Kernel 4.19.8 (generic I guess?).



I installed pm-utils and uswsusp since sudo systemctl hibernate only causes the laptop screen to flicker and hang. Suspend (meaning closing the lid) works flawlessly though.



Now the problem:



Using ~15GB swap partition (8GB RAM) the first sudo pm-hibernate succeeds, it writes the image and restores the session. When I repeat this after that, it does not seem to write the image again and hangs, forcing me to shut down using the power button. When hibernating and rebooting afterwards, it does not seem to work a second time as well, meaning only when I shut down completely, it works.



I added my UUID in /etc/default/grub at grub_cmdline_linux_default=... resume=... and updated grub sudo update-grub



When trying out as root echo platform > /sys/power/disk and echo disk /sys/power/state everything freezes, similarly to using sudo systemctl hibernate. Similarly for echo shutdown and echo reboot



I tried out clearing the cache, using https://askubuntu.com/a/420152/902558 approach, meaning sync && sudo /sbin/sysctl vm.drop_caches=3which returns vm.drop_caches=3in the terminal. After rebooting and trying out sudo pm-hibernate , everything freezes.



I use a Lenovo Yoga 700 14isk which has a Nvidia GPU as secondary gpu, although I don't have any nouveau drivers etc. installed. Perhaps this information can be useful.



If you need more information, please feel free to ask, although bare in mind that my Ubuntu knowledge is exhausted pretty quickly.







boot grub2 18.04 hibernate pm-utils






share|improve this question







New contributor




mxOx2kL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




mxOx2kL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




mxOx2kL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Dec 12 at 18:06









mxOx2kL

1




1




New contributor




mxOx2kL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





mxOx2kL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






mxOx2kL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • I'm not sure, but maybe try checking initramfs's resume .conf has the UUID of your swap partition? askubuntu.com/questions/1033104/…
    – Hee Jin
    Dec 12 at 19:00










  • Yes it does, it is entirely identical. also I already updated the initramfs as in the link, but I didn't dare to experiment as the initial post in your link (making additions to "/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla")
    – mxOx2kL
    Dec 12 at 19:13




















  • I'm not sure, but maybe try checking initramfs's resume .conf has the UUID of your swap partition? askubuntu.com/questions/1033104/…
    – Hee Jin
    Dec 12 at 19:00










  • Yes it does, it is entirely identical. also I already updated the initramfs as in the link, but I didn't dare to experiment as the initial post in your link (making additions to "/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla")
    – mxOx2kL
    Dec 12 at 19:13


















I'm not sure, but maybe try checking initramfs's resume .conf has the UUID of your swap partition? askubuntu.com/questions/1033104/…
– Hee Jin
Dec 12 at 19:00




I'm not sure, but maybe try checking initramfs's resume .conf has the UUID of your swap partition? askubuntu.com/questions/1033104/…
– Hee Jin
Dec 12 at 19:00












Yes it does, it is entirely identical. also I already updated the initramfs as in the link, but I didn't dare to experiment as the initial post in your link (making additions to "/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla")
– mxOx2kL
Dec 12 at 19:13






Yes it does, it is entirely identical. also I already updated the initramfs as in the link, but I didn't dare to experiment as the initial post in your link (making additions to "/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla")
– mxOx2kL
Dec 12 at 19:13

















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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
});


}
});






mxOx2kL is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1100410%2fhibernate-pm-hibernate-using-uswsusp-only-works-once-second-time-hangs-requi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








mxOx2kL is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















mxOx2kL is a new contributor. Be nice, and check out our Code of Conduct.













mxOx2kL is a new contributor. Be nice, and check out our Code of Conduct.












mxOx2kL is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f1100410%2fhibernate-pm-hibernate-using-uswsusp-only-works-once-second-time-hangs-requi%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

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局