how to fix hibernate on lubuntu 18.04
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
add a comment |
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
add a comment |
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
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
ubuntu hibernate ubuntu-18.04
asked Dec 13 '18 at 3:18
StephenStephen
62
62
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
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.
– Stephen
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?
– Stephen
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.
– Stephen
Dec 29 '18 at 21:59
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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.
– Stephen
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?
– Stephen
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.
– Stephen
Dec 29 '18 at 21:59
add a comment |
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
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.
– Stephen
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?
– Stephen
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.
– Stephen
Dec 29 '18 at 21:59
add a comment |
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
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
edited Dec 18 '18 at 17:26
answered Dec 18 '18 at 7:46
ptetteh227ptetteh227
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.
– Stephen
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?
– Stephen
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.
– Stephen
Dec 29 '18 at 21:59
add a comment |
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.
– Stephen
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?
– Stephen
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.
– Stephen
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.
– Stephen
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.
– Stephen
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?
– Stephen
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?
– Stephen
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.
– Stephen
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.
– Stephen
Dec 29 '18 at 21:59
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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