Closed
Bug 979130
Opened 11 years ago
Closed 11 years ago
[System app] Turn wifi into power save mode while screen off with wifi lock held.
Categories
(Firefox OS Graveyard :: Gaia, defect, P2)
Tracking
(blocking-b2g:1.4+, b2g-v1.4 fixed, b2g-v2.0 fixed)
People
(Reporter: chucklee, Assigned: chucklee)
References
Details
(Keywords: perf, Whiteboard: [caf priority: p1][c=power p= s=2014.04.25 u=] [cr 589304])
Attachments
(1 file)
Currently holding wifi lock by |navigator.requestWakeLock('wifi')| will keep wifi up while screen is off, which might consume much battery.
Keep wifi up and turn into power save mode by |wifiManager.setPowerSavingMode()| could save more pattery.
Also we are trying to handle the wifi lock state change while screen is off.
Note that holding wifi lock doesn't imply holding CPU lock.
Assignee | ||
Comment 1•11 years ago
|
||
1. Enable wifi power save mode instead of turning wifi off while screen is off and wifi wake lock is held. If wifi wake lock is held after wifi is turn off by screen off, it will enable wifi and turn it into power save mode.
2. Disable wifi power save mode while screen on if its power save mode is enabled by 1.
3. Add CPU lock to protect whole process.
4. Clear timeout after cpu lock is unlocked, so it won't be called again.
Attachment #8385923 -
Flags: feedback?(alive)
Comment 2•11 years ago
|
||
Comment on attachment 8385923 [details] [review]
Pull Request
Please add unit test for what you added,
especially to make sure all cpu wake lock is unlocked.
Attachment #8385923 -
Flags: feedback?(alive) → feedback+
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8385923 [details] [review]
Pull Request
1. Fix unit test error.
2. Add unit test for wifi wake lock.
Attachment #8385923 -
Flags: review?(alive)
Comment 4•11 years ago
|
||
Comment on attachment 8385923 [details] [review]
Pull Request
Let's land on master next week.
Attachment #8385923 -
Flags: review?(alive) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 5•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
status-b2g-v2.0:
--- → fixed
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 1.5 S1 (9may)
Updated•11 years ago
|
Keywords: perf
OS: Windows 7 → Gonk (Firefox OS)
Priority: -- → P2
Hardware: x86_64 → ARM
Whiteboard: [c=power p= s=2014.04.25 u=]
Comment 7•11 years ago
|
||
Can we uplift this to v1.4 please. This has been raised as a significant Wifi power issue by test folks since v1.3. Now that we have a fix, we shouldn't wait for the next train given that we have test folks engaged now to validate the fix.
blocking-b2g: --- → 1.4?
status-b2g-v1.4:
--- → affected
Whiteboard: [c=power p= s=2014.04.25 u=] → [c=power p= s=2014.04.25 u=] [cr 589304]
Comment 9•11 years ago
|
||
Updated•10 years ago
|
Target Milestone: 2.0 S1 (9may) → 1.4 S6 (25apr)
Updated•10 years ago
|
Whiteboard: [c=power p= s=2014.04.25 u=] [cr 589304] → [caf priority: p1][c=power p= s=2014.04.25 u=] [cr 589304]
You need to log in
before you can comment on or make changes to this bug.
Description
•