Closed
Bug 738530
Opened 13 years ago
Closed 12 years ago
Move PowerManager from shell.js to gaia
Categories
(Firefox OS Graveyard :: General, defect)
Firefox OS Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kanru, Assigned: timdream)
References
Details
Attachments
(2 files)
6.21 KB,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
6.39 KB,
patch
|
Details | Diff | Splinter Review |
This should be handled by gaia. We will need to know the idle time though.
Assignee | ||
Comment 1•12 years ago
|
||
Let's speed up the progress of this bug so by the time bug 715041 is ready they can be checked in altogether.
Attachment #636055 -
Flags: review?(21)
Assignee | ||
Comment 2•12 years ago
|
||
Hum, looks like this code do more than listen to idle API.
@Kanru, does the ScreenManager in Gaia System need to handle wake lock state before deciding whether to turn off the screen? If so I will do that in https://github.com/mozilla-b2g/gaia/pull/1890
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TW) from comment #2)
> Hum, looks like this code do more than listen to idle API.
>
> @Kanru, does the ScreenManager in Gaia System need to handle wake lock state
> before deciding whether to turn off the screen? If so I will do that in
> https://github.com/mozilla-b2g/gaia/pull/1890
Yes, it's the core logic of the PowerManager ;-)
BTW, your patch has unrelated changes.
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Kan-Ru Chen [:kanru] from comment #3)
> (In reply to Tim Guan-tin Chien [:timdream] (MoCo-TW) from comment #2)
> > Hum, looks like this code do more than listen to idle API.
> >
> > @Kanru, does the ScreenManager in Gaia System need to handle wake lock state
> > before deciding whether to turn off the screen? If so I will do that in
> > https://github.com/mozilla-b2g/gaia/pull/1890
>
> Yes, it's the core logic of the PowerManager ;-)
Thanks
> BTW, your patch has unrelated changes.
White space cleanup from the editor ... Will get rid of them before check-in (or it doesn't matter?)
Comment 5•12 years ago
|
||
I'm fine with this change but do you mind if I keep it unreviewed for now until bug 715041 is resolved? Otherwise I will forgot it!
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Vivien Nicolas (:vingtetun) from comment #5)
> I'm fine with this change but do you mind if I keep it unreviewed for now
> until bug 715041 is resolved? Otherwise I will forgot it!
I don't know how Bugzilla and checkin-needed works but I think the better approach would be have a "Patch to commit with bug 715041" ready and remind people on that bug to checked in the two together when it's finished. It is better or worse?
Attachment #636055 -
Flags: review?(21) → review+
Assignee | ||
Comment 7•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 8•12 years ago
|
||
checkin-needed implies that you want the patch checked in *now*. If I'm reading this correctly, you don't want this landed until bug 715041 is also ready to land. Assuming that's the case, hold off on adding checkin-needed until that time.
Keywords: checkin-needed
Assignee | ||
Comment 9•12 years ago
|
||
(In reply to Ryan VanderMeulen from comment #8)
> checkin-needed implies that you want the patch checked in *now*. If I'm
> reading this correctly, you don't want this landed until bug 715041 is also
> ready to land. Assuming that's the case, hold off on adding checkin-needed
> until that time.
bug 715041 *is* landed. Thanks.
Keywords: checkin-needed
Comment 10•12 years ago
|
||
Silly timing on that one :-). The patch was bitrotted a bit, so take a look just to make sure I didn't mess anything up when fixing it.
https://hg.mozilla.org/integration/mozilla-inbound/rev/ef8319d2f498
Assignee: nobody → tchien
Keywords: checkin-needed
Assignee | ||
Comment 11•12 years ago
|
||
(In reply to Ryan VanderMeulen from comment #10)
> Silly timing on that one :-). The patch was bitrotted a bit, so take a look
> just to make sure I didn't mess anything up when fixing it.
>
> https://hg.mozilla.org/integration/mozilla-inbound/rev/ef8319d2f498
Thank you very much :)
Comment 12•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•