31
Operating Systems and Porting / Re: Debian / GNOME default sleep settings: guaranteed crash
« on: September 14, 2022, 01:22:39 am »If you make a fresh install of Debian with GNOME and then go and look at the default Settings panel for Power, you will see "Power Saving" default setting
The Debian wiki has some notes about systems which should never go to sleep. In particular, they show some settings in systemd so it seems this can't just be fixed by changing the settings in GNOME
Code: [Select]
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
This default is one of many ways where systemd appears to diverge from a traditional UNIX-like system.
You can check the current status of a system by checking each of those targets with the status command:
Code: [Select]
$ sudo systemctl status sleep.target
● sleep.target - Sleep
Loaded: loaded (/lib/systemd/system/sleep.target; static)
Active: inactive (dead)
Docs: man:systemd.special(7)
and on a system where the target was disabled:
Code: [Select]
$ sudo systemctl status sleep.target
● sleep.target
Loaded: masked (Reason: Unit sleep.target is masked.)
Active: inactive (dead)
[code]