So that would be just a script in Linux. Bash, the shell for the command line, allows for scripting. Its like a simple program that you can set to run at times. Might take a few tries to get it right, but a little reading and a few tries anyone could get something like that working.
When Linux boots, it does not always use the first port on the video card. Sometimes the bios will display on the onboard video, then when the kernel boots, it will change to a different video port. I find with multiple video ports, its best to plug in all of them till you figure out which ones work. Nvidia is not well supported, and most video cards have problems in Linux. Generally, if you have to use a proprietary driver, it will have specific issues. The free drivers will just be buggy. Best is to see what cards are known to work well. There are maintained, well there used to be, lists of hardware that works well. If you installed proprietary drivers, they are often difficult to remove. There is not always instructions on how to uninstall. So part of your problems might be the drivers.