i think u already know what the problem is!!
it solves when u plug in the powersupply and then it is resolved.
it is unlikely to be a software problem,
but u might have a faulty product.
is the monitor new?
is anything in your pc new?
how long have u been having this problem?