You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Screen sharing disconnect puts display to sleep

When using screen sharing to connect to a Mac Mini running El Capitan, the display is put to sleep when I disconnect.


I've adjusted the energy setting "Turn display off after:" to "Never". However, when I disconnect from screen sharing, the display still turns off. I want the display to remain on.

Posted on Nov 19, 2015 2:22 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 6, 2017 3:05 PM

Found this on another Apple forum:


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

I have El Capitan, Mac Mini. Turning off VNC used to turn off the local display, but no longer. Typing the above command into Terminal did the trick.

23 replies

Mar 19, 2016 6:32 AM in response to TopDancer

Had a bit of time talking to Apple support about this one - first they suggested a PRAM reset and SMC reset. That fixed things temporarily, so then they've cleared out Caches, LaunchAgents and StartupItems from /Library and ~/Library.


Hopefully that's fixed it, but if it's only temporary, will report back with what is suggested next!

Jul 28, 2016 1:39 PM in response to jms703

I've read through all replies in this thread. I have the same problem.


setup:

Macbook air, Yosemite 10.10.2 connecting to a Mac Mini with El Capitan.


Problems started to occur after upgrading the Mac Mini to El Capitan. Today I adjusted the energy save settings, computer sleep, on the macbook air to never. Then problem stopped. I could even close the connection without the Mac Mini being affected. Not sure it will stick. Time will tell.

Jul 30, 2016 5:51 PM in response to jms703

I just ran into this issue, and in fact do have a keyboard and mouse connected. I was able to stop the behavior by disabling and re-enabling Screen Sharing in System Preferences. I don't think I had a mouse plugged in at system startup, so my guess is that it just checks for keyboard/mouse presence at launch, and behaves according to that initial state.


So, for those having the issue where a kb/mouse aren't present, it may be worth it to try plugging a kb/mouse in at startup then disconnecting them, and seeing if it persists, just to pin down if that's the determining factor.


A little annoying to say the least -- this should really be a checkbox in the Security or Screen Sharing preference pane.

Aug 9, 2016 10:30 AM in response to malkowski

Thanks. I have no mouse and keyboard so can't try it out. I urge someone else in this thread to try though. My changes to the energy savings settings didn't work.


My "effect" changed all of a sudden. Same settings on both the Macbook Air and the Mini, but now the Mini doesn't go to sleep, but the screen saver turns on when I close the Macbook Air or logout from Screen Share.


This issue is extremely annoying as I use Screen Share almost all the time. Any update from Apple or other users?

Screen sharing disconnect puts display to sleep

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.