It's been doing this for awhile. I've noticed that it shuts off when I actually attempt to do something on it. Like if I try to surf the internet, it will turn off. If i try to install a game it'll turn off, and It'll turn off if I try to watch a video. People have told me it could be my battery or fan. I leave my laptop plugged in to the wall so I don't think the battery is the issue, and I'm almost sure my fan isnt an issue. I can leave my laptop on for a long time without it turning on, I just can't really do anything on it or it will turn off.