10

I have a Mac which I connect to using Screen Sharing to log in and start a video playing. Since upgrading to El Capitan, when I quit the screen sharing client, the screen on the remote machine turns off. How do I stop this from happening, while still having the screen turn off normally after a few minutes of inactivity?

14

Run this command in the terminal to fix the external screen going blank on VNC disconnect. Works with Sierra OS.

sudo defaults write /Library/Preferences/com.apple.RemoteManagement RestoreMachineState -bool NO

More context from jabenninghoff on GitHub:

In newer versions of macOS, screen sharing will automatically re-lock the screen when you disconnect if it was locked when you first connected.

  • tested and works on el cap (v 10.11.6) – B Rad C Sep 13 '17 at 18:20
  • 1
    Also works on High Sierra (tested on 10.13.1). Thanks. – blvz Dec 8 '17 at 13:04
  • Still works on High Sierra as of July 2018. Thank you! Perfect for headless or home theater Mac. – Matt. Jul 24 '18 at 0:32
  • Still works on Catalina (beta 8). Thanks!!! – fumoboy007 Sep 11 at 6:05
4

Under System Preferences > Sharing, use “Remote Management” instead of “Screen Sharing”, as shown here:

Screenshot of Sharing Preference Pane

As far as I can tell, everything else works the same but the screen no longer turns off when you disconnect a Screen Sharing connection.

edited to add: this is under 10.11.3

  • Sadly, even that does not seem a 100% solution. I wish there was a better way. sigh – TJ Luoma May 7 '16 at 1:25
  • Yeah, it appeared to work, but turns out it only works sometimes. Can't figure out what the pattern is for when it works and when it doesn't. – DrHyde May 9 '16 at 22:23
0

I also have this issue (2012 Mac running El Capitan 10.11.5). I did not have this issue on my 2007 Mac Mini running 10.6.8 with a similar configuration (except using DVI instead of HDMI). When I close Mac screensharing or TouchPad on iOS, or switch iOS apps or lock the phone, the Mac Mini turns off external video.

The workaround I've found is: Hit pause / play on the Apple Remote (the physical infrared remote — not an app) after starting the video, before closing screensharing. Then you should be able to close screensharing and the screen will stay on. I've also done this with the Apple bluetooth mouse and it works as well.

You can also accomplish this by waking the Mac Mini with the remote before initiating screensharing, if you remember. Annoying though since it will often open and start playing iTunes.

The Mac just seems to need some input from a physical device (mouse or remote) after waking to prevent it putting the screen back to sleep.

Going to try the Remote Management checkbox also to see if that helps.

0

I solved this by restarting the Mac with the display (the TV) already ON.

If starting the Mac with the display off, either using Remote Management or Screen Sharing will result in the display turning off after disconnecting the VNC client.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .