Hi Erel,
Many thanks for this fast "sunday" answer, it's incredible to see how present you are on this forum
The code works like a charm and allows to set the ScreenOffTimeOut to the allowed values in the settings screen
However if you select programmatically another value then the timeout is set up to the nearest truncated value present in the MMI
For example : in the settings screen I can access to 15s, 30s, 1min ... (running on a Nexus 5 with kitkat 4.4.2)
If I setup 40s I get a 30s timeout
if I setup 10s I get 15s
That's a pity as I wanted to have a very short timeout to wake up the screen as less as possible.
Do you know if there is a way to force new values in the System Settings ?
Thanks again
Alain