This behavior usually occurs when the video driver is not able to determine the correct resolution/refresh rate for the attached monitor and sets the monitor to a resolution/refresh rate it can't handle.
This often happens when you use a monitor that does not report EDID data (rare nowadays) or when you use a KVM switch. It usually helps to set a fixed resolution in your bootmanager, for example in Ubuntu you edit the file /etc/default/grub and add the following to GRUB_CMDLINE_LINUX_DEFAULT=" ... "
This will set the monitor to a resolution of 1024x768 with a refresh rate of 60 Hz. Of course you can adapt that to your needs.
After you have changed the setting run the command
to make the bootloader aware of the changes.