Open ostasevych opened 2 months ago
Those awk syntax errors are probably the initial problem. What does your system have for awk?
Can you show the output of: awk --version
?
Typically it expects GNU Awk, but it may work with others. The same errors can be seen in #6, so you may need to install gawk on your system.
"no valid swaps found" is usually because it didn't detect any non-zram swap, but the syntax errors above could cause a detection failure.
Also, do you have a resume=
argument in your /proc/cmdline
kernel command line? You can try reporting back the results of: cat /proc/cmdline
Typically the resume=
value is configured by editing your bootloader configuration (grub, systemd-boot, etc).
Some background information:
As hibernation is "suspend to disk", the system needs to know where to read the system state from in order to resume the saved state on the next boot cycle. The resume=
kernel parameter is how the kernel knows where to read the saved system state data. This script is able to see that parameter from your kernel command line. It can use the specified device/partition to configure your system and save the system state data accordingly before triggering hibernation.
Hi! I would like to enable hibernation on my laptop with Pop_OS! 22.04 installed.
So, my pre-requisites:
I tried to run your script and got errors:
What should be fixed?