I am trying to let my XPS 13 7390 hibernate when closing the lid.
I followed this guide to set my system up to do this. But I think it is not working properly.
When I run sudo systemctl suspend-then-hibernate
I can see new "hibernation" logs, when running cat /var/log/syslog | grep hibernate
:
Dec 8 14:04:16 jonas-XPS-13-7390 systemd[1]: Starting Suspend; Idle into hibernate...
Dec 8 14:05:32 jonas-XPS-13-7390 systemd[1]: Started Suspend; Idle into hibernate.
Dec 8 14:05:32 jonas-XPS-13-7390 systemd[1]: Reached target Suspend; Idle into hibernate.
Dec 8 14:05:32 jonas-XPS-13-7390 systemd[1]: suspend-then-hibernate.target: Unit not needed anymore. Stopping.
Dec 8 14:05:32 jonas-XPS-13-7390 systemd[1]: Stopped target Suspend; Idle into hibernate.
And searching for "sleep" I get the following lines:
Dec 8 14:04:16 jonas-XPS-13-7390 systemd-sleep[11380]: Suspending system...
Dec 8 14:05:32 jonas-XPS-13-7390 systemd-sleep[11380]: System resumed.
But when i close the lid, or press the power button, NO new hibernation is logged. But when i search for the term "sleep" it shows the same logs as when i've run the hibernation command manually from terminal:
Dec 8 14:10:51 jonas-XPS-13-7390 systemd-sleep[12481]: Suspending system...
Dec 8 14:11:29 jonas-XPS-13-7390 systemd-sleep[12481]: System resumed.
Now I want to know:
- How can I find out if my system was actually hibernating (using less energy than sleeping is my main focus here)?
- How can I make my elementary installation sleep when closing the lid?