Laptop fails to resume from hibernation (suspend to disk) after update to 18.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
3
down vote
favorite
For the beginning i say, that hibernation worked perfect on 17.10 on my hardware, and it doesn't look to me as a hardware problem now. Now when i'm putting my laptop to hibernation either by systemctl hibernate
or hibernate
it does write memory content somewhere on the disk, but while i'm starting it again, it looks like the kernel or initrd can't find the proper hibernation image. What i tried:
Put RESUME=UUID=cac3c850-bc33-44ab-adb4-41dcb5403e6f
into my /etc/initramfs-tools/conf.d/resume
, and do update-initramfs -u
, this actually made things worse, because it just made the boot slower and i had to wait until it will say "giving up on resume" or something like that. The UUID is correct, i checked with blkid
, and i use this as a swap partition, checked with swapon --show
.
I tried to remove it from /etc/initramfs-tools/conf.d/resume
and add resume=UUID=cac3c850-bc33-44ab-adb4-41dcb5403e6f to /etc/default/grub
, and do update-grub
, and also checked that it has been passed to kernel by cat /proc/cmdline
, but also no luck. So how can I make ubuntu 18.04 resume after suspend? Or at least how can i debug issue more, to find out what's the problem exactly?
suspend power-management 18.04 hibernate
 |Â
show 2 more comments
up vote
3
down vote
favorite
For the beginning i say, that hibernation worked perfect on 17.10 on my hardware, and it doesn't look to me as a hardware problem now. Now when i'm putting my laptop to hibernation either by systemctl hibernate
or hibernate
it does write memory content somewhere on the disk, but while i'm starting it again, it looks like the kernel or initrd can't find the proper hibernation image. What i tried:
Put RESUME=UUID=cac3c850-bc33-44ab-adb4-41dcb5403e6f
into my /etc/initramfs-tools/conf.d/resume
, and do update-initramfs -u
, this actually made things worse, because it just made the boot slower and i had to wait until it will say "giving up on resume" or something like that. The UUID is correct, i checked with blkid
, and i use this as a swap partition, checked with swapon --show
.
I tried to remove it from /etc/initramfs-tools/conf.d/resume
and add resume=UUID=cac3c850-bc33-44ab-adb4-41dcb5403e6f to /etc/default/grub
, and do update-grub
, and also checked that it has been passed to kernel by cat /proc/cmdline
, but also no luck. So how can I make ubuntu 18.04 resume after suspend? Or at least how can i debug issue more, to find out what's the problem exactly?
suspend power-management 18.04 hibernate
It's probably a kernel bug. Have you tried booting with previous kernels? Hold shift after the startup and select a previous kernel to start with. If hibernation worked on that remove the new kernel and kernel header.
â Sadegh Ghasemi
May 13 at 6:12
Well, i will try, but what setup should i use? the/etc/initramfs-tools/conf.d/resume
, or kerel cmdline? U use 4.17.0-rc4 kernel.
â user2819650
May 13 at 7:46
@SadeghGhasemi, trying other kernels didn't help, i think the bug is somewhere in initramfs-tools, maybe it looks for hibernate image somewhere else, but i have no idea how to debug it.
â user2819650
May 13 at 13:47
1
Did you try addingresume=/dev/your/swap/path/here
toGRUB_CMDLINE_LINUX_DEFAULT
in/etc/default/grub
? (donâÂÂt forget to runupdate-grub
after) I had the same problem as you, and thatâÂÂs all I needed to do to get hibernate working in 18.04 (other than making my swap partition large enough).
â Steve
May 13 at 16:29
yes, i tried. Also, what hibernation software should i use?systemctl hibernate
?hibernate
?pm-hibernate
? Which one? Or they all doing the same?What do you mean by large enough? I have 16gb of memory, but 8gb of swap, but it wasn't the issue for resuming before, all it may do - not to suspend, if swap isn't enough, bot now it goes to suspend and never resumes.
â user2819650
May 14 at 2:08
 |Â
show 2 more comments
up vote
3
down vote
favorite
up vote
3
down vote
favorite
For the beginning i say, that hibernation worked perfect on 17.10 on my hardware, and it doesn't look to me as a hardware problem now. Now when i'm putting my laptop to hibernation either by systemctl hibernate
or hibernate
it does write memory content somewhere on the disk, but while i'm starting it again, it looks like the kernel or initrd can't find the proper hibernation image. What i tried:
Put RESUME=UUID=cac3c850-bc33-44ab-adb4-41dcb5403e6f
into my /etc/initramfs-tools/conf.d/resume
, and do update-initramfs -u
, this actually made things worse, because it just made the boot slower and i had to wait until it will say "giving up on resume" or something like that. The UUID is correct, i checked with blkid
, and i use this as a swap partition, checked with swapon --show
.
I tried to remove it from /etc/initramfs-tools/conf.d/resume
and add resume=UUID=cac3c850-bc33-44ab-adb4-41dcb5403e6f to /etc/default/grub
, and do update-grub
, and also checked that it has been passed to kernel by cat /proc/cmdline
, but also no luck. So how can I make ubuntu 18.04 resume after suspend? Or at least how can i debug issue more, to find out what's the problem exactly?
suspend power-management 18.04 hibernate
For the beginning i say, that hibernation worked perfect on 17.10 on my hardware, and it doesn't look to me as a hardware problem now. Now when i'm putting my laptop to hibernation either by systemctl hibernate
or hibernate
it does write memory content somewhere on the disk, but while i'm starting it again, it looks like the kernel or initrd can't find the proper hibernation image. What i tried:
Put RESUME=UUID=cac3c850-bc33-44ab-adb4-41dcb5403e6f
into my /etc/initramfs-tools/conf.d/resume
, and do update-initramfs -u
, this actually made things worse, because it just made the boot slower and i had to wait until it will say "giving up on resume" or something like that. The UUID is correct, i checked with blkid
, and i use this as a swap partition, checked with swapon --show
.
I tried to remove it from /etc/initramfs-tools/conf.d/resume
and add resume=UUID=cac3c850-bc33-44ab-adb4-41dcb5403e6f to /etc/default/grub
, and do update-grub
, and also checked that it has been passed to kernel by cat /proc/cmdline
, but also no luck. So how can I make ubuntu 18.04 resume after suspend? Or at least how can i debug issue more, to find out what's the problem exactly?
suspend power-management 18.04 hibernate
edited May 14 at 2:50
asked May 13 at 3:33
user2819650
14616
14616
It's probably a kernel bug. Have you tried booting with previous kernels? Hold shift after the startup and select a previous kernel to start with. If hibernation worked on that remove the new kernel and kernel header.
â Sadegh Ghasemi
May 13 at 6:12
Well, i will try, but what setup should i use? the/etc/initramfs-tools/conf.d/resume
, or kerel cmdline? U use 4.17.0-rc4 kernel.
â user2819650
May 13 at 7:46
@SadeghGhasemi, trying other kernels didn't help, i think the bug is somewhere in initramfs-tools, maybe it looks for hibernate image somewhere else, but i have no idea how to debug it.
â user2819650
May 13 at 13:47
1
Did you try addingresume=/dev/your/swap/path/here
toGRUB_CMDLINE_LINUX_DEFAULT
in/etc/default/grub
? (donâÂÂt forget to runupdate-grub
after) I had the same problem as you, and thatâÂÂs all I needed to do to get hibernate working in 18.04 (other than making my swap partition large enough).
â Steve
May 13 at 16:29
yes, i tried. Also, what hibernation software should i use?systemctl hibernate
?hibernate
?pm-hibernate
? Which one? Or they all doing the same?What do you mean by large enough? I have 16gb of memory, but 8gb of swap, but it wasn't the issue for resuming before, all it may do - not to suspend, if swap isn't enough, bot now it goes to suspend and never resumes.
â user2819650
May 14 at 2:08
 |Â
show 2 more comments
It's probably a kernel bug. Have you tried booting with previous kernels? Hold shift after the startup and select a previous kernel to start with. If hibernation worked on that remove the new kernel and kernel header.
â Sadegh Ghasemi
May 13 at 6:12
Well, i will try, but what setup should i use? the/etc/initramfs-tools/conf.d/resume
, or kerel cmdline? U use 4.17.0-rc4 kernel.
â user2819650
May 13 at 7:46
@SadeghGhasemi, trying other kernels didn't help, i think the bug is somewhere in initramfs-tools, maybe it looks for hibernate image somewhere else, but i have no idea how to debug it.
â user2819650
May 13 at 13:47
1
Did you try addingresume=/dev/your/swap/path/here
toGRUB_CMDLINE_LINUX_DEFAULT
in/etc/default/grub
? (donâÂÂt forget to runupdate-grub
after) I had the same problem as you, and thatâÂÂs all I needed to do to get hibernate working in 18.04 (other than making my swap partition large enough).
â Steve
May 13 at 16:29
yes, i tried. Also, what hibernation software should i use?systemctl hibernate
?hibernate
?pm-hibernate
? Which one? Or they all doing the same?What do you mean by large enough? I have 16gb of memory, but 8gb of swap, but it wasn't the issue for resuming before, all it may do - not to suspend, if swap isn't enough, bot now it goes to suspend and never resumes.
â user2819650
May 14 at 2:08
It's probably a kernel bug. Have you tried booting with previous kernels? Hold shift after the startup and select a previous kernel to start with. If hibernation worked on that remove the new kernel and kernel header.
â Sadegh Ghasemi
May 13 at 6:12
It's probably a kernel bug. Have you tried booting with previous kernels? Hold shift after the startup and select a previous kernel to start with. If hibernation worked on that remove the new kernel and kernel header.
â Sadegh Ghasemi
May 13 at 6:12
Well, i will try, but what setup should i use? the
/etc/initramfs-tools/conf.d/resume
, or kerel cmdline? U use 4.17.0-rc4 kernel.â user2819650
May 13 at 7:46
Well, i will try, but what setup should i use? the
/etc/initramfs-tools/conf.d/resume
, or kerel cmdline? U use 4.17.0-rc4 kernel.â user2819650
May 13 at 7:46
@SadeghGhasemi, trying other kernels didn't help, i think the bug is somewhere in initramfs-tools, maybe it looks for hibernate image somewhere else, but i have no idea how to debug it.
â user2819650
May 13 at 13:47
@SadeghGhasemi, trying other kernels didn't help, i think the bug is somewhere in initramfs-tools, maybe it looks for hibernate image somewhere else, but i have no idea how to debug it.
â user2819650
May 13 at 13:47
1
1
Did you try adding
resume=/dev/your/swap/path/here
to GRUB_CMDLINE_LINUX_DEFAULT
in /etc/default/grub
? (donâÂÂt forget to run update-grub
after) I had the same problem as you, and thatâÂÂs all I needed to do to get hibernate working in 18.04 (other than making my swap partition large enough).â Steve
May 13 at 16:29
Did you try adding
resume=/dev/your/swap/path/here
to GRUB_CMDLINE_LINUX_DEFAULT
in /etc/default/grub
? (donâÂÂt forget to run update-grub
after) I had the same problem as you, and thatâÂÂs all I needed to do to get hibernate working in 18.04 (other than making my swap partition large enough).â Steve
May 13 at 16:29
yes, i tried. Also, what hibernation software should i use?
systemctl hibernate
? hibernate
? pm-hibernate
? Which one? Or they all doing the same?What do you mean by large enough? I have 16gb of memory, but 8gb of swap, but it wasn't the issue for resuming before, all it may do - not to suspend, if swap isn't enough, bot now it goes to suspend and never resumes.â user2819650
May 14 at 2:08
yes, i tried. Also, what hibernation software should i use?
systemctl hibernate
? hibernate
? pm-hibernate
? Which one? Or they all doing the same?What do you mean by large enough? I have 16gb of memory, but 8gb of swap, but it wasn't the issue for resuming before, all it may do - not to suspend, if swap isn't enough, bot now it goes to suspend and never resumes.â user2819650
May 14 at 2:08
 |Â
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1035564%2flaptop-fails-to-resume-from-hibernation-suspend-to-disk-after-update-to-18-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
It's probably a kernel bug. Have you tried booting with previous kernels? Hold shift after the startup and select a previous kernel to start with. If hibernation worked on that remove the new kernel and kernel header.
â Sadegh Ghasemi
May 13 at 6:12
Well, i will try, but what setup should i use? the
/etc/initramfs-tools/conf.d/resume
, or kerel cmdline? U use 4.17.0-rc4 kernel.â user2819650
May 13 at 7:46
@SadeghGhasemi, trying other kernels didn't help, i think the bug is somewhere in initramfs-tools, maybe it looks for hibernate image somewhere else, but i have no idea how to debug it.
â user2819650
May 13 at 13:47
1
Did you try adding
resume=/dev/your/swap/path/here
toGRUB_CMDLINE_LINUX_DEFAULT
in/etc/default/grub
? (donâÂÂt forget to runupdate-grub
after) I had the same problem as you, and thatâÂÂs all I needed to do to get hibernate working in 18.04 (other than making my swap partition large enough).â Steve
May 13 at 16:29
yes, i tried. Also, what hibernation software should i use?
systemctl hibernate
?hibernate
?pm-hibernate
? Which one? Or they all doing the same?What do you mean by large enough? I have 16gb of memory, but 8gb of swap, but it wasn't the issue for resuming before, all it may do - not to suspend, if swap isn't enough, bot now it goes to suspend and never resumes.â user2819650
May 14 at 2:08