I have installed openSUSE Leap 15.1 (KDE), and I have noticed a problem. Hibernate doesn’t work.
First of all, there is no option in shutdown menu for hibernation, only suspend, reboot, shut down and log out options are available.
When I try to hibernate via “Application menu -> Power/Session -> Hibernate”, laptop will not shut down. It I force shut down it, it will not resume, and sometimes will not boot (so couple reboots might be required).
I have 8 GB of RAM, and 16 GB swap partition. My laptop is Acer A315-41 with AMD Ryzen 5.
I’ve never succeeded in getting suspend/resume to disk (hibernate) working reliably on AMD hardware (suspend/resume to RAM works OK). I don’t know if I’m just unlucky, or “that’s the way it is”…
Hibernate appears to work, and the machine(s) shuts down cleanly; however they fail to resume, typically booting to a blank screen with the “Caps Lock” LED flashing, the only way out is to power off and boot with the “noresume” option on the kernel command line.
I’ve seen this on:
3 older Gigabyte GA-MA770-DS3e (AMD Athlon™ 64 X2 Dual-Core Processor 5600+) all running various TW snapshots, including the latest.
A newer Gigabyte GA-970A-DS3Pe (AMD FX™-6300 Six-Core Processor) running, originally Leap incarnations 42.3, 15.0, and now 15.1
And more recently on an HP 255 G7 Ryzen 3 (AMD Ryzen 3 2200U Dual-Core Processor) running Leap 15.1
A suggestion made to me was: If you’re using the “feature” and not already done so, try turning off Windows “Fast Start-up” - However I don’t have Windows installed
Hibernate appears to work, and the machine(s) shuts down cleanly; however they fail to resume, typically booting to a blank screen with the “Caps Lock” LED flashing, the only way out is to power off and boot with the “noresume” option on the kernel command line.
In my case laptop won’t even shut down.
On TW hibernation worked, but I started getting really weird issues with touchpad, and system not booting at all sometimes (ACPI errors probably causes lock ups, I don’t know to be honest), so I decided to install Leap, because it has older kernel. Which works great, boots every time, touchpad rarely requires “sudo modprobe i2c_hid”… But hibernation doesn’t work…
A suggestion made to me was: If you’re using the “feature” and not already done so, try turning off Windows “Fast Start-up” - However I don’t have Windows installed
I already tried this. I’m not sure, but this shouldn’t matter at all, since Windows has its own HDD with EFI partition, and openSUSE has its own SSD with EFI partition.
Since my posts above, I have tried hibernating my laptop.
Running 15.1, I selected “hibernate” from the menu (in Plasma/KDE). It seemed to hibernate fine.
I then powered it back on and rebooted. It appeared to successfully resume from hibernation. However, I did get a kernel message about an unexpected NMI interrupt. As best I recall, the kernel said “dazed and confused but continuing”. Apart from that, everything looked okay.
Later, I hibernated Tumbleweed on the same machine. And then I rebooted with a successful resume from hibernation. With Tumbleweed, there was no “dazed and confused” message.
I should add that both of those are using an encrypted LVM (the same encrypted LVM, but different root volumes within that LVM). And they use the same swap, so they use the same location for saving the hibernation image. I do wonder what would happen if I hibernated 15.1, and then rebooted to Tumbleweed – would it resume from the 15.1 hibernation image? But I’m not about to try that. I prefer to avoid hibernating.
This is not only on 15.1 on 15.0 with new kernel 4.12.14-lp150.12.70-default kernel on my AMD machine it does not work anymore.
Seems to go to suspend mode but fan is still running of CPU and case and consuming the same as up…
After restore display is mangeld, not usable…
This worked fine with kernel 4.12.14-lp150.12.61-default
Hibernating does not work anymore long time ago. All newer kernels does not work. At the other end on my HP intel laptop it works with new kernel.
The whole suspend/hibernate stuff is really a pain on linux. Every kernel update you have to test always on all machines…
The released kernel has some feature backported from the latest kernel. But there could be some bugs in the backporting.
If hibernate does not work on the latest kernel (from the kernels repo), then there is a kernel problem.
If it does work there, but not on the released kernel, then it’s an openSUSE kernel problem.
Hi
First of all, you get the same information that is in your above screenshot by a “parted -l” at the command line as root. To post that output here using code tags (you obviously know how to do that) - instead of posting the link to some image on some server in the “cloud” - that output would then be preserved even if you would ever decide to delete that screenshot in the “cloud”. Or you could perhaps use susepaste, and there select: Delete After > Never.
From your above screenshot it can be seen that you installed Leap 15.1 on a separate hard disk with the system files along with your user data in one single BtrFS partition (I usually prefer to have / and /home in separate partitions, which is easier to deal with when you should ever decide to make a fresh installation of any future version of openSUSE).
In /etc/fstab this results in entries of the type ‘/dev/disk/by-id/ata-WDC_WDS480G2G0B-00EPW0_19154F464706-part3’ like you have it in your output from “cat /proc/cmdline” that I quoted above.
You can quickly check what you have in fstab with (works without sudo or su)
cat /etc/fstab
If you have entries of the type “/dev/disk/by-id/…” instead of “UUID=…” or “/dev/disk/by-uuid/…” there, and if you didn’t edit /etc/fstab after installation, then you could just give it a try and in YaST > Partitioner in the “Fstab Options” of the “Mounting Options” for the partitions of openSUSE on your second hard disk change from mounting by “Device ID” to mounting by “UUID”.
After closing the partitioner (saving the changes) you would then as well be able to copy and paste the UUID of your swap from the output of another “cat /etc/fstab” to the argument of the parameter resume= in YaST > Boot Loader > Kernel Parameters.
In one of my installations of 15.1 I now have there
(with an additional space at the end).
This differs from the “syntax” given on the web page cited above (which would be resume=UUID=76cca290-a1ef-43e8-b295-a3a704857f9e ), but it as well refers to the UUID (unlike /dev/disk/by-id/…) and it works well for my installation of Leap 15.1.
A final remark with respect to this thread as such:
If swap is needed to hibernate (which can not be a swap file for BtrFS and a Kernel 4.x, see web page cited above), then it will be useful to create a swap partition of sufficient size, which should in general be the case if
and to check during a typical situation of use, that swap isn’t used heavily already, which is quickly done by a “free” on the command line (no sudo or su necessary).
And
well, I’m convinced that it very likely is a very good idea to not to try that …
Yes, it’s seems like them.
But i switched to kernel 5.3 and this worked. Today, I was try kernel from official opensuse update repo and suspend to ram works now.
uname -a
Linux 4.12.14-lp151.28.36-default #1 SMP Fri Dec 6 13:50:27 UTC 2019 (8f4a495) x86_64 x86_64 x86_64 GNU/Linux