For the past few months, sometimes this happens to me and i never know how, but somehow i fix it. There definitely isn't any issue with my monitor or cable because i've tried using them to display a laptop screen and it worked with no issue. Usually reseating the graphics card seemed to be the solution. But yesterday i ran into this problem again and that solution wasn't working anymore. I thought that maybe my bios suddenly switched my main display to the onboard graphics so i tried plugging my monitor to that and it seemed to work, but my computer ran with a stellar 1024 resolution. And when i checked the device manager it didn't even recognize my graphics card? This is all really confusing and i don't know whats causing it and how it just magically fixes itself everytime. My specs are:
ryzen 5 2400g
nvidia gtx 1050ti
gigabyte b450m ds3h
ryzen 5 2400g
nvidia gtx 1050ti
gigabyte b450m ds3h