For the last few weeks, my computer has been acting up by slowly turning white randomly. I soon found that when it started to turn white, I could move the hinge or shake the computer gently, and it would start working again. Now, I can't move my computer and mess with the hinge, or else it will freeze, but will unfreeze when I move it again. For example, it did it three times while just typing this.
What's causing this and how do I stop it?