https://ubuntuhandbook.org/index.php/2021/06/automatic-shutdown-hibernate-on-idle-ubuntu/
Enable Automatic Shutdown / Hibernate when idle on Ubuntu