I have the exact same problem........
If the fan is spinning silently (Like it normally does), the computer reboots itself after about 5 minutes.
If the fan is spinning faster, making a noise, it will stay on until I manually shut it down.
EXCEPT, when I do something like play a game or...