I've currently been trying to dabble in some batch coding to disable a monitor every so often. I currently have 2 monitors and a tv. The tv is what my significant other and I use to watch Netflix/Movies. Obviously, I do not want it enabled all the time. I tried using DevCon tool to find my TV's ID and to disable it, but it does not seem to be working. I also noticed that disabling the TV through device manager does not do anything.
I believe the reason for this is because I have NVIDIA control panel installed and the only way to disable the monitor is through the control panel. Is there a way to create a batch file to disable a monitor through the NVIDIA control panel? I just want to create two batch files, one to enable and one to disable this TV. I believe this to be a somewhat specific case and can understand if it is not feasible.
This is what I currently had in my Batch file, but it was not working:
devcon.exe disable "DISPLAY\HWP3289\5&1DEDD19&0&UID8449"
The long string is just the device name I got from running
devcon.exe findall * > output.txt
Any assistance would be greatly appreciate.