Automatically reboots


I have a desktop with a fresh reload of windows 7, the problem that I am having is when the computer goes into the hibernation mode you have to move the mouse around a good 10-15 seconds to bring it out and it will run flawlessly for about 30-45 seconds than it automatically reboots.
Any ideas