I am having trouble with the suspend option. I have a laptop and I want whenever I close the lid to suspend. I changed it from the Power of the System Settings both for Plugged In and On Battery, but to no avail. I close the lid and it still is on. I tried to suspend it manually from the power button in the top right corner and it shows the same behavior as the Lock option. What can I do? Nothing I found on the web works. It's of importance to me to have the suspend option because of overheating. I should probably say that I am new in the elementary OS. Thank you in advance.
It is probably because you are missing the swap space. Trying adding a swap partition manually.
You can check if you have a swap space using
free -m If total swap is 0, you need to allocate some space for swap. Usually taken 1.5x Your RAM size.
Create a 4 Gigabyte or more (according to your RAM size) swap file by typing:
sudo fallocate -l 4G /swapfile
Change permissions for your swap file
sudo chmod 600 /swapfile
Now make swap using
sudo mkswap /swapfile and then enable the swap partion by typing
sudo swapon /swapfile