Macbook turns off after booting My Macbook was running fine today, but then powered off while I was away from it. After this, I can't get it to stay on. It turns on and then stays on for 2-3 minutes, before powering down again.

It's a MacBook 13-inch Mid 2010 model, running Mac OS X 10.6 Snow Leopard.

It's managed to reach my desktop before powering off, so doesn't seem to be a problem with booting.

I've tried taking the battery out and running it from the power cable, but this also didn't do anything.

I've also tried starting in single user and safe mode, neither or which helps.

Any ideas??
This sounds like something that happened to my MacBook Pro 15" Early 2011, stayed on white screen for couple minutes then turned off again.
Took it to Apple and they came to the conclusion that my motherboard wasn't working so I had to get it fixed for $500 (£250 ish) and after that ever since works perfectly fine.
The cause of my problem was that it could of been my old charger (was falling apart, and so Apple replaced it for free) could of sent an electric charge that fried my motherboard.

Hope this relates or helps you to fix your issue.