F5F Stay Refreshed Software Operating Systems Hibernation on linux

Hibernation on linux

Hibernation on linux

R
RG48
Posting Freak
778
08-15-2019, 10:31 PM
#1
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.
R
RG48
08-15-2019, 10:31 PM #1

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.

C
Corndogcraft95
Junior Member
20
09-02-2019, 10:27 PM
#2
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.
C
Corndogcraft95
09-02-2019, 10:27 PM #2

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.

S
saukeuchiuchi
Senior Member
621
09-03-2019, 04:30 AM
#3
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.
S
saukeuchiuchi
09-03-2019, 04:30 AM #3

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.

L
LuLi1004
Junior Member
42
09-03-2019, 07:10 AM
#4
Sure, your setup adds up to 9 gigabytes. It seems the swap partition and file size work together. After rebooting, it should function properly.
L
LuLi1004
09-03-2019, 07:10 AM #4

Sure, your setup adds up to 9 gigabytes. It seems the swap partition and file size work together. After rebooting, it should function properly.

P
PimOla_PvP
Member
166
09-10-2019, 02:32 PM
#5
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.
P
PimOla_PvP
09-10-2019, 02:32 PM #5

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.