How to disable GPU's video output signal

I have two quadro P4000 cards. only one attached to the dispaly. both cards are used to computation.
there are many input video signal of the display, My question is how to disable my gpu’s video output. and when some condition occurs, I can enable the video signal output.Then the display can show my gpu’s video

thank u.