I have been having this problem for a while and not quite sure how to diagnose the problem. If the computer is just sitting without being hit or moved, it works perfectly fine (can stay on for weeks as a time without turning off). However if you bump it with your foot and plug something into the back and move it a bit it usually just shuts off. Once it is off it will not turn back on until I wiggle the power supply cord, which makes me think it is the power supply. But I don't understand why it would do that when the cord is in there good. Any suggestions would be greatly appreciated.