vim, git, aws and other three-letter words

Software Development Notes

MacBook: keep it on with lid closed

I am testing the remote desktop to access MacBook and it is inconvenient that MacBook needs to stay with the lid open. Otherwise, if the lid is closed, the laptop goes to sleep and makes it impossible to connect to it.

The solution is to have MacBook in a “clamshell mode” which is enabled when there is an external display, mouse and keyboard connected to the laptop.

To emulate the display (which I don't have), it is possible to use the “hdmi dummy plug” or “hdmi headless adapters” like this Fueran 4K HDR HDMI Dummy Plug:

fueran_hdmi_dummy_adapter_600.jpg
Figure 1: fueran hdmi dummy adapter

The Fueran HDMI adapter works for me and in my tests it is enough to have it and the external keyboard and mouse are not necessary.

Settings that may also be needed to support the clamshell mode:

Maybe related:

Resources:

Tags: mac