Disable/Enable hdmi port from dedicated graphics card

Anthony Lonigro 6 Reputation points
2022-06-13T17:49:28.51+00:00

Is there a way to Disable/Enable an HDMI port on a dedicated graphics card from the command line? I have an Nvidia 2080.

My computer has 3 monitors connected to it. One of those monitors is a TV. When the TV is turned on, my monitors turn on and off because a new monitor is detected. This can be a real issue for me while playing games. My wife will turn on the TV while I am playing a game, and I have to wait 5-10 seconds for everything to come back. My hope is that I can disable the HDMI port that the TV is connected to so when it turns on, my computer won't see a new input. Then when I want to use the TV as a 3rd monitor, I can re-enable the HDMI port.

Thanks!

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Dimple Rane 921 Reputation points MVP
    2023-01-22T20:41:46.5466667+00:00

    Yes, it is possible to disable and enable an HDMI port on an Nvidia 2080. You can use the nvidia-settings command-line tool to configure your graphics card settings, including disabling and enabling HDMI ports.

    To disable the HDMI port, use the following command:

    nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
    

    To enable the HDMI port, use the following command:

    nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = Off }"
    
    1 person found this answer helpful.

  2. Leonardo Duarte 5 Reputation points
    2023-03-22T00:02:29.28+00:00

    Today i was thinking about it and came to your post and i tried to figure how to do it, and i found 2 easy way to do it
    First of all go to

    1. NVIDIA Control Panel > Configure Multiple Displays (or videos) (or something like that, i will upload a screenshot to help) > Uncheck the display and apply the configuration
    2. Right click on desktop > Display settings > Choose the display and go below in multiple screens > Turn off this display and apply it

    PS: i can upload only 1 image, so i put the both ways on the same picture

    1 person found this answer helpful.

  3. Gökalp Gönen 0 Reputation points
    2023-01-22T20:34:52.6533333+00:00

    I am curious about this too. When I connect my TV via HDMI, two monitors connected with DP starts flickering and none of them works. When I am using my TV with HDMI, I actually don't need monitors so I am curious is there a short way to disaple certaion ports depending on what you need. For me : 2 DP=off 1hdmi=on or vice versa.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.