Preventing system sleep

This feature is available for:

  • macOS
  • Windows
  • Linux with systemd (logind)

There’s a global parameter called prevent-sleep that you can set to true, and resticprofile will prevent your system from idle sleeping.

Please note:

  • it will not prevent a sleep if the system is running on batteries
  • it will not prevent a sleep triggered by a user action: using the sleep button, closing the laptop lid, etc.