../
Sleep then Hibernate
This is useful for linux users.
With these changes when you close the laptop lid the system goes into suspend-then-hibernate. It then after 1800 seconds switches to hibernate to save battery.
Ensure hibernation works first. For this you need a swap partition atleast the size of your RAM.
# /etc/systemd/logind.conf
[Login]
HandleLidSwitch=suspend-then-hibernate
# /etc/systemd/sleep.conf
[Sleep]
HibernateDelaySec=1800