MacBook Pro M4 disables external monitor video when running on battery with lid closed
I am running on an external monitor with the lid closed. This works fine with the power connected. If I disconnect the power adapter, it immediately kills the video output to the external monitor. I am new to Mac, but I can't find a setting or an answer online to this specific issue.
I need to know how to do this while on battery.
thanks
[Re-Titled by Moderator]