Check your power settings. You can specify the amount of idle time which must elapse before the OS turns off the monitor. You can make it “never” if you wish. If your PC is a laptop, there are different settings depending on whether it is on battery or not.