RealVNC and closed lid connection issue

Joined
Apr 10, 2022
Messages
68
Reaction score
9
Points
8
I'm on my MacBook Air 2020 running Sonoma 14.5. For RealVNC I use Lite mode.
I installed RealVNC server and it works perfectly fine when the lid is open.
With closed lid ... it either not responsive or simply failed to connect to server with error that server is not listening to cloud connections.
I checked all power setting recommended for 'closed lid' and recommended by RealVNC but still only open lid allow me to use it properly .
Eventually ... the last thing that worked for me was to run this command:
sudo pmset -a disablesleep 1
It put laptop in 'sleep' and I don't have the issue with connection.
Note: another MacBook that I re-installed Monterey and configured RealVNC same way works fine ... because I attached external Monitor to it.
My assumption is that on Sonoma I have some kind of 'sleep' driver issue or something else.

Hence, assuming that most of the time I use Sonoma MacBook with closed lid i.e. either remotely or don't use at all very rare... is it acceptable solution to prevent sleep as I described above? Maybe you have some other suggestions?


Appreciate your help ..
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
16,029
Reaction score
2,435
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Closing the lid puts the Macbook to sleep. The exception to this if you have an external monitor plugged in. That puts the Macbook into Clamshell mode and allows it to run,

Setting the Macbook not to sleep means that it will end up running and this need to be plugged in at all times. In the long run, this will hurt the battery performance..
 
OP
S
Joined
Apr 10, 2022
Messages
68
Reaction score
9
Points
8
Closing the lid puts the Macbook to sleep. The exception to this if you have an external monitor plugged in. That puts the Macbook into Clamshell mode and allows it to run,

Setting the Macbook not to sleep means that it will end up running and this need to be plugged in at all times. In the long run, this will hurt the battery performance..
Thanks for your input.
In my case I keep it plugged in all the time and use not as laptop but rather as desktop.
Right, my second MacBook likely works fine with VNC because it has external monitor ... but then I'm surprised why we have various settings in 'power managment' to handle 'closed lid' like 'Prevent automatic sleeping when ...'
Anyway ... thanks for your words
 
Joined
May 21, 2012
Messages
11,286
Reaction score
1,576
Points
113
Location
Southern New England
Your Mac's Specs
2024 M4 14" MBP, iPhone 16 Pro Max, Watch S7 & Watch S9, AirPods Pro 1
On a portable PC a closed lid is for sleeping the computer or to use with an external monitor. A desktop would be better suited for your usage. I have a winOS portable PC I use with my monitor for this purpose. When I need to a change the input on the monitor to the Win 11 PC when I need to check something.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
16,029
Reaction score
2,435
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Without an external monitor plugged in, the notebook behaves like a notebook. With an external monitor plugged in, it behaves like a desktop since you'll end up using a separate set of keyboard/mouse to control the Mac.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top