The Mac acting as a display turns off or sleeps

  1. On the Mac acting as the display, open the gear of the “Extended display” section. In “Screen Extension”, turn on “Stay awake while acting as a display”.
  2. Make sure the Mac has power, and check when its display turns off in System Settings → Lock Screen.