Does it instantly turn off as is it's ran out of power, or does it turn off through the OS, like windows shut down screen, or a fade to black for sleep mode?
If it's turning off by shut down or looks like it's going into sleep mode, check your power plan settings, there could be a setting that...