Closed Bug 1124567 Opened 8 years ago Closed 8 years ago

[Emulator] set mozSettings value "screen.timeout" of the profile-to-test to 0 so the screen never sleeps

Categories

(Firefox OS Graveyard :: Emulator, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S6 (20feb)

People

(Reporter: hsinyi, Assigned: tzimmermann)

References

Details

Attachments

(3 files)

+++ This bug was initially created as a clone of Bug 1108271 +++

Bug 1108271 will keep focusing on a formal, long-term solution for system app.
Let's use this bug to provide a quick solution to not block emulator-kk tests.

Quote of bug 1108271 comment 13
"You can do something like this, pass a SCREEN_TIMEOUT=0 from BoardConfig.mk:

https://github.com/mozilla-b2g/device-rpi/blob/ab404c/BoardConfig.mk#L54

If DEVICE_DEBUG=1 (I don't know where is it being set), the timeout will be changed to 300 sec

https://github.com/mozilla-b2g/gaia/blob/05f8670/Makefile#L125
"
See Also: → 1000063, 1062786, 905324, 860594
I was able to get this working by putting SCREEN_TIMEOUT=0 into my .userconfig. I haven't yet been able to make this work from makefiles. Using the BoardConfig.mk as shown in the example didn't work.
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → All
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #2)
> This works on my local machine:
> 
>   https://treeherder.mozilla.org/#/jobs?repo=try&revision=d009edfcd6bf

Awesome :D
The try session for this patch is at

  https://treeherder.mozilla.org/#/jobs?repo=try&revision=d009edfcd6bf
Assignee: nobody → tzimmermann
Status: NEW → ASSIGNED
Attachment #8555105 - Flags: review?(mwu)
The same patch for JB.
Attachment #8555106 - Flags: review?(mwu)
The same patch for KK.
Attachment #8555109 - Flags: review?(mwu)
Michael,

Please take a look at the attached pull requests. Thanks!
Attachment #8555109 - Flags: review?(mwu) → review+
Attachment #8555106 - Flags: review?(mwu) → review+
Attachment #8555105 - Flags: review?(mwu) → review+
Thank you so much! This will hopefully make the emulator more reliable.
Keywords: checkin-needed
See Also: → 1196630
You need to log in before you can comment on or make changes to this bug.