I've had a problem with my Gateway monitor that's been going on for 5 years or something now which gets fixed by nudging it
This is called vertical foldover or collapse and usually when you have an issue like this that is fixed by hitting it, it usually means there is a cracked solder joint on the vertical deflection chip.


