I've been an Ubuntu user since version 9.04, and I'm wondering why hibernation on Ubuntu (and other Linux distributions) is so complicated.

Recently I installed 18.04. I tried several tutorials on the internet to make the system capable of hibernation, either by (a) clicking the menu and selecting the hibernate option, or (b) automatically hibernating when closing the lid of my laptop.

For the first case, I manged to get it working on my laptop after countless hours of researching, however I have yet to be able to get the get the second case working.

I tried:

1. I installed the Hibernate status button GNOME extension.
2. Edited `/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla` according to [this answer here on AU](https://askubuntu.com/questions/768136/how-can-i-hibernate-on-ubuntu-16-04).
3. Edited my GRUB configuration to resume my UIID swap partition and then updated GRUB
4. Edited `/etc/systemd/logind.conf` according to [this answer here on AU](https://askubuntu.com/questions/828400/is-it-possible-to-make-16-04-hibernate-on-lid-close).

Specs:

* Dell G3 laptop
* CPU: Intel Core i7 8550H
* GPU: Nvidia GTX 1050TI
* RAM: 16GB
* SSD: SanDisk 240GB
* HDD: 1TB (I think Seagate)