Xbox One Console

How do I stop my Xbox one from turning off?

One possible solution is to check the "Configure Auto Shutdown Settings" for the Xbox One. Press the Menu key of the controller and then go to Settings > Power & startup > Turn off after. Select one of the following options: 1 hour of inactivity, 6 hours of inactivity, or Don't turn off automatically.