Problem with vga monitor

hey, i have a problem about vga monitor. yesterday i installed lakka on my raspberry pi 2 b, and every goes well(using a hdmi monitor). but today when i use a vga monitor(by a hdmi to vga adaptor), nothing display on the screen. lakka is just running because i can visit it by ssh. so i switch to the hdmi monitor(without shutting down lakka), at the time i plugged in, content is displayed on the hdmi monitor. then i switch back to the vga monitor(without shutting down lakka), this time content can be displayed on the vga monitor. so i guess maybe there is something wrong with the vga monitor(by hdmi to vga adaptor). so i use another vga monitor and do the same things above, and then the result is the same: when i start lakka with a vga monitor, lakka is running but nothing displayed on the screen, after switch to a hdmi monitor and switch back(no need to shut down lakka), everything goes normally. i tryed editing the config.txt or reinstall lakka but they dont work. so do you have ever met this situation?any advice?

one more thing: by starting with a hdmi monitor and switch back to vga monitor, i can normally play game on lakka using vga monitor. if i reboot on the vga monitor, it still work well, reboot wont enfluence it. but if i choose shut down and then start lakka, the situation goes back to what i said above.

thanks for any advice. i will also keep trying

Did you try to boot with hdmi_drive=2 ? Please check this documentation.

yes i have tried this but it didn’t work. i will try it again later. thanks

thanks to everyone, i have solved this problem. the solution is to set hdmi_force_hotplug=1 in the config.txt file of the pi.

by the way i tried to set hdmi_drive=2 but it didn’t work. then i thought out the way i said above but forgot to type ‘#’ before this line, so im not sure whether this line also works a little or not. maybe i will try later so the reason that course this problem is when i first use the vga monitor, pi can not detect a hdmi device so it didn’t give out signal, after switched to the hdmi monitor, it detected a hdmi monitor and then give out signal continuously