Automatic hibernate and on lid close on manjaro gnome

Hello @ahmed-derbala and welcome :wink:

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

:notebook: This works not everywhere and depends on firmware support.

:notebook: Gnome3 has no GUI support for handling this. It has only “suspend after a period of time”.

2 Likes