Closed
Bug 1094676
Opened 11 years ago
Closed 8 years ago
[Midori 2.0][Power consumption][Camera] Camera Standby current (screen off) is 170mA.
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect, P1)
Firefox OS Graveyard
Gaia::Camera
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: sync-1, Unassigned, NeedInfo)
Details
Attachments
(2 files)
FireFox OS V2.0
mozilla build id:20141019000201
DEFECT DESCRIPTION:
Camera Standby current (screen off) is 170mA.
REPRODUCING PROCEDURES:
1. Enter camera and click power key to make screen off;
2. Take measure standby current, it is 170mA.--KO
EXPECTED BEHAVIOUR:
Standby current should <5mA.
ASSOCIATE SPECIFICATION:
TEST PLAN REFERENCE:
TOOLS AND PLATFORMS USED:
USER IMPACT:
REPRODUCING RATE:
For FT PR, Please list reference mobile's behavior:
Fire E 1.3 is <5mA.
[Blocking Requested - why for this release]:
The current standby is too high because camera isn't notified to be released
It is a serious problem.
blocking-b2g: --- → 2.0?
Flags: needinfo?(wehuang)
Comment 2•11 years ago
|
||
Diego, do we release the camera hardware when the screen is turned off?
Flags: needinfo?(dmarcos)
![]() |
||
Comment 3•11 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #2)
> Diego, do we release the camera hardware when the screen is turned off?
We release the camera when the app goes to background but not when the screen turns off. I don't even know if there's a way to detect the screen going off within gaia. I would have to investigate
Flags: needinfo?(dmarcos)
![]() |
||
Comment 4•11 years ago
|
||
Hi sync-1@bugzilla.tld:
I would recommend you to since check from lower part to confirm if there is anything unusual to consume such power. As I checked other products (not yet really measure it but ask if similar issue) and answer is no. So doubt it's integration problem in camera SW.
Currently tend to be device-specific thus candidate for de-tag.
Flags: needinfo?(wehuang) → needinfo?(sync-1)
Comment 5•11 years ago
|
||
Dear Wesly,
In this build(20141019000201) when screen off, camera is not switch to back.
you can run "adb shell b2g-ps --oom" command in terminal, check camera OOM_ADJ.
when screen off, OOM_ADJ is 2, it should be 10.
In this build(
Comment 6•11 years ago
|
||
Dear Wesly,
Can you help to tell us, when the screen is off, which code responsible for switch app to the background?
Thanks.
Flags: needinfo?(sync-1) → needinfo?(whuang)
![]() |
||
Comment 7•11 years ago
|
||
Hi Diego, do you know the answer for question in comment#6? Or know who might be able to answer? Thank you.
Flags: needinfo?(whuang) → needinfo?(dmarcos)
Comment 8•11 years ago
|
||
Just checked if `visibilitychange` was being triggered when the screen gets locked and it appears that it is. When `visibilitychange` fires, the app releases the camera hardware, so I'm not sure what's causing the 170mA.
Gaia-Rev d3e4da377ee448f9c25f908159480e867dfb13f3
Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/7198906837e7
Build-ID 20141110000204
Version 32.0
Comment 9•11 years ago
|
||
Dear Justin,
Camera did not receive 'visibilitychange' when screen turn off, and check camera OOM_ADJ value, it always 2 when screen turn off, the right value should be 10. I want to know which code responsible for switch app to the background when screen turn off.
Thanks.
![]() |
||
Comment 11•11 years ago
|
||
This should not happen unless -- Camera is having an active in normal audio channel.
Because of bug 828283, any app with normal channel playing will not be sent to background even when screen is off. Platform is trying to fix that but I don't know the progress.
If all app is foreground but not only camera, it might be another platform issue or window-mgmt issue.
Please confirm.
Flags: needinfo?(alive)
![]() |
||
Comment 12•11 years ago
|
||
Hi Reporter,
Could you.
1. provide the current when enter the home screen and screen off.
2. run adb shell dumpsys media.audio_policy
3. open camera
4. run adb shell dumpsys media.audio_policy again.
We can check if any AudioTracks has been opened.
If audio keeps alive, the current I think should up to around 3~40ma.
Flags: needinfo?(sync-1)
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
![]() |
||
Comment 15•11 years ago
|
||
Base on c13/c14, audio system isn't active on that time.
Comment 16•11 years ago
|
||
I do a quickly test on flame v2.0, cannot reproduce this issue, the standby power consumption is ~1.5mA.
My version as below:
Gaia d3e4da377ee448f9c25f908159480e867dfb13f3
Gecko dd3811901c677c1a4c71b7797fb1275c71cc8a66
BuildID 20141110112036
Version 32.0
ro.build.version.incremental=eng.waynechen.20141027.153908
ro.build.date=Mon Oct 27 15:39:41 CST 2014
![]() |
||
Comment 17•11 years ago
|
||
Per Comment 16 from Danny, the standby power consumption is ~1.5mA. Thus, it should be device specific issue. Denominate it for now.
blocking-b2g: 2.0? → ---
Comment 18•11 years ago
|
||
Dear Mozilla,
Can you provide more info which code switch app to background?(gecko or kernel?)
In our device, only camera has this issue.
Updated•11 years ago
|
Flags: needinfo?(sync-1)
Comment 19•11 years ago
|
||
Dear Mozilla,
For other app, when press power key, will call function nsDocShell::SetIsActive(bool aIsActive)( in nsDocShell.cpp), but when open camera and press power key, this function not be called.
Can anyone provide some info where should I continue check ? Thanks.
![]() |
||
Comment 20•11 years ago
|
||
I guess you meant to ping Wesly Huang (TAM).
Flags: needinfo?(whuang) → needinfo?(wehuang)
Comment 21•11 years ago
|
||
![]() |
||
Comment 22•11 years ago
|
||
need to apply patch in https://bugzilla.mozilla.org/show_bug.cgi?id=1069109
but it's for 2.2 and cannot merge to 2.0
![]() |
||
Comment 23•11 years ago
|
||
Hi hanp, have you tried the re-based 2.0 patch in https://bugzilla.mozilla.org/show_bug.cgi?id=1069109#c17?
Flags: needinfo?(wehuang)
![]() |
||
Comment 24•11 years ago
|
||
Hi hanp, have you tried the re-based 2.0 patch in https://bugzilla.mozilla.org/show_bug.cgi?id=1069109#c17? I think that's all we can do per current timing of 2.0. Thanks for the understanding.
![]() |
||
Comment 25•11 years ago
|
||
(In reply to Wesly Huang from comment #24)
> Hi hanp, have you tried the re-based 2.0 patch in
> https://bugzilla.mozilla.org/show_bug.cgi?id=1069109#c17? I think that's all
> we can do per current timing of 2.0. Thanks for the understanding.
Hi, wesly, sotaro had given us the patch in https://bugzilla.mozilla.org/show_bug.cgi?id=1058452#c49
and it's ok. Camera standby current problem resolved. Thanks.
Comment 26•8 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•