I thought that I had this problem, until I realised that I hadn't tried the systemctl stuff mentioned above. FYI The following command resolved the issue for me:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid- sleep.target -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1874639 Title: desktop pcs start to suspend by default To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1874639/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs