Talk: GNOME suspends after 15 minutes of user inactivity, even on AC power

Systemd also manages sleep settings: man 5 systemd-sleep.conf or Systemd Sleep Configuration. For my server (which gets checked periodically for internet connectivity) I created a file: /etc/systemd/sleep.conf.d/<hostname>.conf by copying sleep.conf and then editing it to remove the leading # and change yes to no for the 4 “#Allow” lines. My desktop uses the default settings.
I use wake-on-lan when I need to connect to it with ssh.

1 Like