Apple iogctl tool lets one simulate clamshell events. This makes it possible to disable the built-in display when there's an external display connected without closing the lid.
https://github.com/07151129/iogctl explains how to build and use the tool. Note that you need to set the boot-args from recovery OS if you have SIP enabled.
Note there's also https://github.com/Eun/DisableMonitor, but it attempts to do much more than iogctl, essentially replicating Apple logic for clamshell.
https://github.com/07151129/iogctl explains how to build and use the tool. Note that you need to set the boot-args from recovery OS if you have SIP enabled.
Note there's also https://github.com/Eun/DisableMonitor, but it attempts to do much more than iogctl, essentially replicating Apple logic for clamshell.
Last edited: