In the windows device under settings/power/advanced you have the
option:

On battery power :
turn off device if not used for : then options 1-5 minutes. Does
anyone know a way to add more options? I would like to add more
options than 1-5 minutes.. Is there a registry/xml/etc... way to
change this? Way to do this in code?

Thanks for any help

Gary