Zorin OS shuts down on it's own

I also had this situation. I completely forbade the computer from sleeping.

  1. sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

  2. sudo nano /etc/systemd/logind.conf

find the lines there (or add them to the end) so that they look like this (without the # sign in front):

HandleSuspendKey=ignore
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore

Ctrl+O,Enter,Ctrl+X

restart the service:
sudo systemctl restart systemd-logind

1 Like