After fully updating my laptop after a few weeks downtime and now the suspend function isn't working anymore. It does suspend my laptop but on the wake-up it only starts the HDD agian but the screen(black screen) and keyboard aren't working or at least I can't see it and trying to increase the brightness won't work.
Does some one have a solution or knows a thread where this question was answered already?
I'm using debian jessie with gnome. Suspend also won't work on any other environment.
Best Answer
I struggled with a similar issue in Debian 9, installed on a Lenovo G40-30 Laptop. I went into Hibernate/Sleep and trying to initiate again the screen didn't show up although everything seemed working.
The solution is actually quite simple. It seems Linux OSs, in particular Debian and Ubuntu need at least a 4+GB swap partition for Hibernate/Sleep to work properly. If you installed with "default" configuration it will create a Swap the same size of your actual RAM (in practice a little less). So if you have a laptop with less or equal to 4 Gb RAM and installed "default" configuration, you are probably trying to solve this issue.
Swap allocation in Linux work in two ways:
in the form of a SWAP PARTITION in your hardrive.
in the form of a SWAP FILE.
YOU CAN CREATE THE
SWAP
FILE AS FOLLOWS:shows if you have enabled the swap option. If not look up how to do this.
sets the size of the swap you add to 1Gb, change to the value you need.
Add the line
/swapfile swap swap defaults 0 0
to the file/etc/fstab
:IF YOU WANT TO UNDO CHANGES JUST:
remove the line from
/etc/fstab
file:/swapfile swap swap defaults 0 0
SWAP SIZES ACCORDING TO RAM:
I can indicate the following table with some recommended
SWAP
sizes according to your RAM. Last 3 columns areSWAP
spaces:MORE INFORMATION:
you can find thorough information on recommended SWAP sizes according to your RAM in the following link:
How much swap should I take for 1GB to 8TB of RAM on 14.04 or higher?
Credit is due for the table I added here.