How to turn off screensaver for VNC desktop sessions in macOS Catalina?

Brian Pemberton
3 min readJan 23, 2021

I just purchased an M1 MacMini to dive into iOS/macOS development. I am using the MacMini as a “headless” computer with no monitor attached in my current workflow.

When I need to connect to the graphical environment, I am using TightVNC from Windows 10.

The problem:

When connecting to the MacMini via TightVNC, the screensaver will turn on after some time even tho I have it set to “never” turn on for my user account. Also, TightVNC cannot seem to wakeup or nudge the computer out of the screensaver. It just gets stuck, and all I can do is either reboot the computer via SSH, force power it down, or stare at the screensaver.

Why is this happening?

Knowing that VNC seems to be using it’s own set rules for power management and screensaver settings. Also knowing that all the global settings I made in the GUI should be stored in the Power Management plist file listed below.

/Library/Preferences/com.apple.PowerManagement.plist

I noticed a second `PowerMangament.plist` in the `/Library/Preferences/` directory. Specifically, this file, where `{UID}` is a long alphanumeric string appended to the second file.

/Library/Preferences/com.appl…

--

--

Brian Pemberton
Brian Pemberton

Written by Brian Pemberton

0 Followers

I am skilled in hardware and software repair, system administration, automation, programming, and scripting.