Hibernation on linux
Hibernation on linux
Hi! Let's try to understand what's happening. You have 8 GB of RAM and a 7 GB swap partition. When you hibernate, the system freezes and doesn't respond properly. You found a way to increase swap size using a file, but after setting it up and restarting, the PC just locks into the lock screen.
This might be due to incorrect swap configuration or permissions. Make sure the swap file is properly mounted and accessible. Also, check if your bootloader or recovery tools are correctly recognizing the swap settings. If you're using a Linux distribution, verify that the swap size matches your RAM usage and that there are no conflicts with other partitions.
I might be mistaken, but what is the size of swapfile.img when you run that command? From what I see, it seems to generate a 2GB swap file (bs = 1024 bytes per count). With 2 million counts, that would be 2 billion bytes—about 2048MB.
alternatively, were you to restart before attempting hibernation? Because the extra swap file wouldn't have been activated as swap until after the initial reboot or when you ran a swapon command.
Hi @Tomaas Hibernation is a frequent issue with certain Linux distributions, including Mint. It doesn’t necessarily mean the swap is the problem, but if your system has 8GB of RAM, the swap partition should be at least that size. Here are some questions to help resolve this: Have you added RAM to your system after installing Linux? Which distro are you using? Please run "lsblk" and "free -m" in the terminal and share the results here.