Aquí el vídeo
También hay otra manera que habría que confirmar
If you want it off when you charge, go into "Settings-->About" and tap on build number, repeatedly until it displays "You are now a developer". Then go back to "Settings-->Developer Options" and the first option is "Stay awake when charging". You can touch it to toggle between enabled and disabled.