This happened at work when using a long cable for a projector, buying an expensive, good quality VGA cable seem to solve the problem in our case.