This is solution to your problem. I had problem with it last year, and I'm experiencing another one at the moment. My DC cable shorted at the place where it is connected to motherboard so my laptop switches off (or switches to battery if it's inserted) when I play video games or something more...