Getting control of a mac OS target after the screen is locked

If you encounter the following issue:
  1. Open a remote session to a mac OS target by using a Controller or a VNC Client, or be in front of the mac OS target.
  2. Lock the screen and ensure that the user name and password prompt is displayed.
  3. Close the controller/VNC client if opened on the other computer.
  4. Wait for 5-10 minutes and avoid pressing both the physical mouse and the keyboard. Also avoid opening VNC sessions to the mac OS target.
  5. Open the Remote Control Controller and connect to the mac OS target.
  6. The screen is black and you cannot take control of the mac OS target.
To prevent this issue, perform these steps:
  1. On the mac OS target, open the Energy Saver panel.
  2. Select the check box named Prevent computer from sleeping automatically when the display is off.