mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Closes: #2503 - FreedomBox is a server that is typically always running. If applications such as GNOME desktop environment are installed, they could, by default, cause system to sleep or hibernate after a period of idleness (based on peripheral activity). To ensure that services are always available over the network, prevent all such applications from sending the system to sleep/hibernate. - Other types of sleep such as hybrid sleep and suspend and hibernate are also automatically disabled by systemd if either suspend or hibernate are disabled. Tests: - Without the changes, install GNOME. In gdm login screen or in desktop environment, after 20 minutes (default) the system goes to sleep. - Create the file in the patch with the appropriate directory in a production FreedomBox machine. Run 'systemctl daemon-reload'. After this, running 'systemctl suspend' or 'systemctl hibernate' will return an error that the operation is not supported. In GDM, the suspend button does not appear. In GNOME desktop environment after login, the suspend button does not appear. Even after the 15-20 minute period, the system does not go to sleep. Reviewed-by: James Valleroy <jvalleroy@mailbox.org>