Created attachment 609542 [details] [diff] [review] patch Currently, the emulator goes to sleep after 60s of inactivity. If the emulator is in the middle of running an automated test, the test will hang, as the test framework gets suspended when the emulator sleeps. Presumably there will eventually be a way to modify this at runtime. Until such a time, this patch increases the screen timeout from 1 min to 5 mins, which should make running automated tests a lot easier. It also corrects a comment in the code that the pref refers to "minutes"; it should be "seconds".
I think we can use the settings API here.
We should use a different pref js file for the emulator, not change what our phones do.
Comment on attachment 609542 [details] [diff] [review] patch I agree with Kan-Ru, this should be a setting. Chrome-privileged code on startup can detect whether it's running in an emulator and change the setting appropriately.
Blocking on figuring this out before we release.
jgriffin, can you verify that this is still an issue? We used to freeze the emulator whenever we turned the screen off, but that shouldn't be the case anymore.
Yes, this got fixed a while ago.