Jump to content

Hi guys. Please help me with the problem, I am new user to linux :D

 

So I've 8 GB or ram and my swap partition is 7GB. So when I tried to hibernate the PC it wouldn't work (black screen on wake up)

 

Google some info, found out that you can increase swap size with file.

 

dd if=/dev/zero of=/media/fasthdd/swapfile.img bs=1024 count=2M
mkswap /media/fasthdd/swapfile.img
# Add this line to /etc/fstab
/media/fasthdd/swapfile.img swap swap sw 0 0

Did these commands and after rebooted the pc.

Now when I try to hibernate, the PC just goes to lock screen and nothing happens... What is the problem??

Link to comment
https://linustechtips.com/topic/902764-hibernation-on-linux/
Share on other sites

Link to post
Share on other sites

i could be wrong, but whats the size of swapfile.img from reading that command (without googling it that looks like it would only create a 2gb swapfile (

 

bs = 1024 (i believe thats the bytes to write each count)

count = 2M (this is 2million count)

 

1024 x 2000000 = 2048000000 = 2048MB

Link to comment
https://linustechtips.com/topic/902764-hibernation-on-linux/#findComment-11108329
Share on other sites

Link to post
Share on other sites

HI @Tomaas

 

Hibernation is a common problem with some linux distros including mint. So it might not be the swap to blame although if you really got 8GB of ram in your system then the swap partition should be atleast 8GB. Some questions to get this sorted out.

 

Did you add ram to the system after you first installed linux at your PC?

 

Which distro are you using?

 

Please run (without quotes) " lsblk " and " free -m " in a terminal and post both outputs in this thread.

 

Link to comment
https://linustechtips.com/topic/902764-hibernation-on-linux/#findComment-11125291
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×