To add to that, the problem suspends a system even when a server is active with no currently active connections. I use plexmediaserver which runs 24x7, and obviously does not have demand that entire 24 hours. The system goes into suspension and is not reachable from a client without manually waking it up locally. Database servers run on the workstation may have the same issue though I have not tested that.
I think in this case, one should simply configure the system to not suspend. (Or, install or swap to Fedora Server?)
I don’t think we’d necessarily want inhibit-suspend generally as the default just when running certain services, though. I might want to have postgress running on my laptop for local development and still have the system suspend.
Knowing how to completely disable Suspend and Hibernation is good.
What I really want is:
Having Suspend / Hibernation and Wake up on LAN/Mouse/Keyboard/Power-button working
Assign “Servers” to no-suspend list - that is, when there are SSH daemon runing with active activities (network traffic minimum), then the system will not interrupt the tasks running
Assign “Applications” to no-suspend list - that is, when I opened a SSH client session to a remote server, with regular heart-beat to avoid time out, then my system should not suspend. (as if my SSH client suspends, the heart-beat is broken, then the server might kill my “active” session due to inactivities or even suspend as a result.)