Quote:
Originally Posted by Fredlottrup
Hi all
When my pc is hibernating there seems to be no way for me to wake my pc.
Nothing happens when i press any key or clicks using the touchpad. The only solutions seems to be pressing the power button which boots the pc and nothing of my work have been saved.
I'm running Pop!_os on my Lenovo Yoga Slim 7 AMD Ryzen 7 4700u
|
There is good/interesting information on resuming-from-disk after hibernating in the file:
Code:
/usr/src/linux/Documentation/power/swsusp-and-swap-files.txt
The gist of this article/file is setting up a swap
file for use in hibernate/resume. (Note: you'll need to install the kernel sources package in order to read it.)
Note, though, that the procedure documented in the article would not be something I'd want to deal with on a regular basis. Step two of the process is:
Code:
Use an application that will bmap the swap file with the help of the
FIBMAP ioctl and determine the location of the file's swap header, as the
offset, in <PAGE_SIZE> units, from the beginning of the partition which
holds the swap file.
Oh, yeah... no possibility of getting
that wrong.
IMHO, using a swap partition is tons easier. You'll need to make sure that there's a "resume=/dev/sdXn" in the grub configuration and in the kernel boot command line to inform the kernel the disk ("sdX") and partition number ("n") where the swap partition is located. I'd be sure and make any swap partition the same size or larger than your physical RAM. Making it smaller would, I'm sure, result in cases where resume from hibernation wouldn't work. (This is a guess on my part as I always make more swap than my installed RAM.)
HTH...