Closed Bug 738530 Opened 13 years ago Closed 12 years ago

Move PowerManager from shell.js to gaia

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kanru, Assigned: timdream)

References

Details

Attachments

(2 files)

This should be handled by gaia. We will need to know the idle time though.
Attached patch Patch v1Splinter Review
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)
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
(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.
(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?)
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!
(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?
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
(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
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
(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 :)
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.

Attachment

General

Created:
Updated:
Size: