1

I have an old laptop, a 2014 MacBook Pro, which I use with an external display connected by an HDMI-to-DVI cable. The trouble comes when I leave the machine connected for a long time and it goes to sleep. (Full sleep, not display sleep.)

Sometimes, waking the machine while it's connected to the external display causes the computer to hang; it shows a black screen on the external and laptop displays and I can't use it. I have to force-restart the machine to be able to use the computer again.

I don't really want to have to keep restarting my computer because of this, so I'd like to prevent all sleep (including display sleep) while the computer is connected to an external display. However, I also use the computer on power adapter without the external display, and on battery. I'd like it to go to sleep normally in those cases.

Is there an automated way to make this happen?

Note: The machine is running macOS Sierra (10.12), so any solution must run on that OS.

9
  • If your external monitor supports DisplayPort, use that instead. If it’s HDMI only, get an active HDMI adapter so the video signal is stable.
    – Allan
    Commented Jan 7, 2023 at 20:46
  • The monitor's DisplayPort is occupied by another computer that is also connected to it (a windows PC) and it has no HDMI port of its own. That's why I'm using its DVI port.
    – SoItBegins
    Commented Jan 7, 2023 at 21:19
  • The HDMI signal lacks a clock signal and what happens is that when the screen goes into power save, everything goes out of sync. The Mac is alive, but not in sync with the monitor. An active adapter fixes that. The Thunderbolt port is also your DisplayPort. If you have. a TB device, you can daisy chain the monitor off of it. Either way, it’s an HDMI issue not a Mac issue
    – Allan
    Commented Jan 7, 2023 at 22:23
  • I'm not connecting the monitor to the Thunderbolt port. It's connected to the mac's HDMI port via a straight HDMI cable, then through a 3-way HDMI switcher box (not powered), then through the HDMI-to-DVI cable to the monitor.
    – SoItBegins
    Commented Jan 7, 2023 at 23:13
  • It’s not a Mac problem, it a problem that’s inherent to HDMI. Then you convert from HDMI with no clock signal to DVI with a clock signal. Adding a switch box to the mix only adds to your issues. Try removing the switch box and see what happens. Ikm even more cinvinced you need an active HDMI to DVI adapter.
    – Allan
    Commented Jan 7, 2023 at 23:20

0

Browse other questions tagged .