Cut off HDMI signal
Cut off HDMI signal
Hi guys.
Is there a way to simply cut off/turn on a HDMI signal by AHK code? Of course, pulling out the plug does it but it would be nice to make it happen by a command.
Best regards,
SimPlayer
Is there a way to simply cut off/turn on a HDMI signal by AHK code? Of course, pulling out the plug does it but it would be nice to make it happen by a command.
Best regards,
SimPlayer
Re: Cut off HDMI signal
Yes, but I don't want to control the monitor itself, just cut off the HDMI signal from the computer to the monitor.
SimPlayer
SimPlayer
Re: Cut off HDMI signal
What do You mean by cut off?
With SetVCPFeature You can change input source of monitor.
With SetVCPFeature You can change input source of monitor.
Re: Cut off HDMI signal
Hi
Well, let me explain. I have two sources and one monitor. What I want to do is switch the HDMI between these two sources. There is ofcourse HDMI switches available, but the problem is that there´s no one pushing the switch button, It has to be a time related switch, say every 10 minute the picture will change from one source to the other.
The way to do this is a automatic HDMI switch like this; https://www.amazon.com/Fosmon-HD8061-Automatic-Switching-Switcher/dp/B01D3JE0MS.
This switch has a master/slave function that means if the master HDMI is cut off, the switch uses the slave port, and when the master HDMI is on again, the switch connects to that one. So, if I could cut off the HDMI line by AHK code, the problem would be solved.
SimPlayer
Well, let me explain. I have two sources and one monitor. What I want to do is switch the HDMI between these two sources. There is ofcourse HDMI switches available, but the problem is that there´s no one pushing the switch button, It has to be a time related switch, say every 10 minute the picture will change from one source to the other.
The way to do this is a automatic HDMI switch like this; https://www.amazon.com/Fosmon-HD8061-Automatic-Switching-Switcher/dp/B01D3JE0MS.
This switch has a master/slave function that means if the master HDMI is cut off, the switch uses the slave port, and when the master HDMI is on again, the switch connects to that one. So, if I could cut off the HDMI line by AHK code, the problem would be solved.
SimPlayer
Re: Cut off HDMI signal
Use hdmi switcher with rs232 support or connect 2 hdmi sources to monitor directly without switcher.
Re: Cut off HDMI signal
Well, the RS232 is not an option, it's expensive and I haven't got any experience of how to make it work, and the monitor is too small for PiP function. So, I'm left with two possibilities, either to cut off/pause the HDMI signal from one source, or to totally power down the source. The power down isn't good because startup takes time and stresses the computer when done every ten minute all day long. A simple Send command in AHK would be a saver here.
SimPlayer
SimPlayer
Re: Cut off HDMI signal
Expensive?
https://www.aten.com/eu/en/products/professional-audiovideo/video-switches/vs481b/
About 50$
I am not talking about pip function.
I am talking about changing input source directly in monitor with SetVCPFeature api.
PS Forget about "simple sending command" from ahk - You can cut off signal of hdmi only from bios.
https://www.aten.com/eu/en/products/professional-audiovideo/video-switches/vs481b/
About 50$
I am not talking about pip function.
I am talking about changing input source directly in monitor with SetVCPFeature api.
PS Forget about "simple sending command" from ahk - You can cut off signal of hdmi only from bios.
Re: Cut off HDMI signal
Hi
Ok, thanks, now I get it. The problem with RS-232 is that I haven't got a port on the computer, only USB. I did find some adapters at https://www.iftools.com/shop/index.en.php but it's way too complicated to assemble and get it working, I'm afraid.
But, the SetVCPFeature, is it really possible to change HDMI input to the monitor by code? I do have 2 HDMI inputs on the monitor so technically it can be done. The other HDMI source is a camera hard drive, so I can't do anything to that HDMI input, so that's why my original idea was to block the HDMI signal from the computer and by the automatic switch change HDMI input to the monitor.
SimPlayer
Ok, thanks, now I get it. The problem with RS-232 is that I haven't got a port on the computer, only USB. I did find some adapters at https://www.iftools.com/shop/index.en.php but it's way too complicated to assemble and get it working, I'm afraid.
But, the SetVCPFeature, is it really possible to change HDMI input to the monitor by code? I do have 2 HDMI inputs on the monitor so technically it can be done. The other HDMI source is a camera hard drive, so I can't do anything to that HDMI input, so that's why my original idea was to block the HDMI signal from the computer and by the automatic switch change HDMI input to the monitor.
SimPlayer
Re: Cut off HDMI signal
You need 10$ converter like this
https://www.aten.com/global/en/products/usb-solutions/converters/uc232a/
https://www.aten.com/global/en/products/usb-solutions/converters/uc232a/
Yes, search forum.But, the SetVCPFeature, is it really possible to change HDMI input to the monitor by code?
Re: Cut off HDMI signal
There are ways to turn off a monitor using powercfg.exe
windows - batch script to turn off monitor? - Stack Overflow
https://stackoverflow.com/questions/48979552/batch-script-to-turn-off-monitor
or using NirCND
turn off / on a single monitor from command line on Windows
https://www.nirsoft.net/articles/turn_off_single_monitor_command_line.html
windows - batch script to turn off monitor? - Stack Overflow
https://stackoverflow.com/questions/48979552/batch-script-to-turn-off-monitor
or using NirCND
turn off / on a single monitor from command line on Windows
https://www.nirsoft.net/articles/turn_off_single_monitor_command_line.html
Re: Cut off HDMI signal
Hi
Well, I don´t want to turn off the monitor, just the signal to the monitor...
SP
Well, I don´t want to turn off the monitor, just the signal to the monitor...
SP
Re: Cut off HDMI signal
OK, I´m thinking about buying this Aten switch but I haven´t really got the idea about how to send the commands to the com port. Is it possible to connect AHK to this, to send command to the USB-RS-232-Aten Switch from a AHK script?malcev wrote: ↑17 Feb 2023, 18:19Expensive?
https://www.aten.com/eu/en/products/professional-audiovideo/video-switches/vs481b/
About 50$
I am not talking about pip function.
I am talking about changing input source directly in monitor with SetVCPFeature api.
PS Forget about "simple sending command" from ahk - You can cut off signal of hdmi only from bios.
SP
Re: Cut off HDMI signal
Yes, I think You can do it with file object to send needed data through com.
Also aten has utility and You can automate it.
Also aten has utility and You can automate it.
Re: Cut off HDMI signal
Hi all.
Well, this seems to have been a RTFM problem
There´s instructions in the manual how to achieve this;
I made a couple of lines AHK code that activates monitor off by pressing esc and monitor on by pressing p.
This seems to work, the monitor looses input and the switch i mentioned earlier should do the rest of the job.
SimPlayer
Well, this seems to have been a RTFM problem
There´s instructions in the manual how to achieve this;
Code: Select all
; Turn Monitor Off:
SendMessage, 0x112, 0xF170, 2,, Program Manager ; 0x112 is WM_SYSCOMMAND, 0xF170 is SC_MONITORPOWER.
; Note for the above: Use -1 in place of 2 to turn the monitor on.
; Use 1 in place of 2 to activate the monitor's low-power mode.
return
This seems to work, the monitor looses input and the switch i mentioned earlier should do the rest of the job.
SimPlayer
Code: Select all
esc::
Sleep 1000
SendMessage, 0x112, 0xF170, 2,, Program Manager
p::
Sleep 1000
SendMessage, 0x112, 0xF170, -1,, Program Manager
Return