Open Settings
Go to Display or Screen settings
Set Screen timeout to a longer duration
Turn on Keep screen on while charging if available
Enable Developer options
Turn on Stay awake while charging
Use a screen awake or caffeine app if needed
Check battery saver settings and disable them if they shorten screen timeout
On a computer, adjust Power and Sleep settings
Set the display to never turn off if desired
