How do I disable/enable an external monitor from terminal
This sounds like an issue that was addressed by one of our clever members who wrote a free tool to easily disable or enable a monitor on your Mac