How to turn off screen saver for remote desktop sessions in macOS Catalina? Purchased an M1 Mac Mini. Running it headless. In the OS for my user, I have the screen saver set to &quot;never.&quot; However, when I connect via remote desktop, the screen saver comes on after some period of time.
Where is the plist or setting to completely disable the screen saver for remote desktop sessions?
I think I found the solution. I noticed an energy saver plist with a UID appended to it.
 /Library/Preferences/com.apple.PowerManagement.{UID}.plist 

In addition to the default
/Library/Preferences/com.apple.PowerManagement.plist

Reading the default plist with my correct system settings gave me
{
&quot;AC Power&quot; =     {
    &quot;Automatic Restart On Power Loss&quot; = 1;
    DarkWakeBackgroundTasks = 1;
    &quot;Disk Sleep Timer&quot; = 10;
    &quot;Display Sleep Timer&quot; = 0;
    &quot;System Sleep Timer&quot; = 0;
    &quot;Wake On LAN&quot; = 1;
};
SystemPowerSettings =     {
    &quot;Update DarkWakeBG Setting&quot; = 1;
};
}

Reading the plist with the UID gave me
{
&quot;AC Power&quot; =     {
    PrioritizeNetworkReachabilityOverSleep = 0;
    &quot;Sleep On Power Button&quot; = 1;
    &quot;Standby Enabled&quot; = 0;
    TCPKeepAlivePref = 1;
    TTYSPreventSleep = 1;
};
}

So I added the &quot;System Sleep Timer&quot; = 0 and &quot;Display Sleep Timer&quot; 0 by the following linesp.
sudo defaults write /Library/Preferences/com.apple.PowerManagement.{UID}.plist &quot;AC Power&quot; -dict-add &quot;System Sleep Timer&quot; 0

sudo defaults write /Library/Preferences/com.apple.PowerManagement.{UID}.plist &quot;AC Power&quot; -dict-add &quot;Display Sleep Timer&quot; 0