Question No video output and then the computer freezes ?

republicgamer01

Prominent
Jan 21, 2020
13
0
520
This occurs independent of the tasks and OS.

First the video output signal is lost, at this point my keyboard works for few seconds before becoming unresponsive.After this whatever app that was running stops(p1),and keyboard doesn't work anymore(p2). Everything seems to run just fine within the chassis. I know p1 and p2 happens because sometimes it happens when i watch videos or games. Except for cpu, mobo and ram i tried switching or removing every other components(psu,hardrives,gpu, heck even the monitor,i also know this is not due to Windows10 since i dualboot with windows and Ubuntu) and this thing still happens.Any idea what exactly is causing this? Restarting the PC is the only way to come out of this.
My pc is only 4-5 years old.

Asus Z170P Pro Gaming
i5-6600,,
8 gb crucial(2400Mhz i think).

With GPU connected, the freezing seems to happen more often.