This a problem with a cover with a flap that covers the screen. Remove tablet from cover and see if it stays on. I had the same problem which is now solved.
open