Hello @ahmed-derbala and welcome ![]()
File: /etc/systemd/logind.conf
HandleLidSwitch=hibernate
File: /etc/systemd/logind.conf
HandleLidSwitch=suspend-then-hibernate
File: /etc/systemd/sleep.conf
HibernateDelaySec=180min
Test it: sudo systemctl suspend-then-hibernate
This works not everywhere and depends on firmware support.
Gnome3 has no GUI support for handling this. It has only “suspend after a period of time”.