Closed
Bug 1075290
Opened 10 years ago
Closed 10 years ago
[dolphin][flame] Test proximity sensor in a call, screen off until call ends
Categories
(Firefox OS Graveyard :: Gaia::System, defect, P2)
Tracking
(blocking-b2g:1.4+, b2g-v1.4 fixed, b2g-v2.0 verified, b2g-v2.0M verified, b2g-v2.1 verified, b2g-v2.2 verified)
People
(Reporter: shiwei.zhang, Assigned: etienne)
Details
(Whiteboard: [sprd356916])
Attachments
(2 files, 2 obsolete files)
46 bytes,
text/x-github-pull-request
|
alive
:
review+
bajaj
:
approval-gaia-v1.4+
bajaj
:
approval-gaia-v2.0+
bajaj
:
approval-gaia-v2.1+
|
Details | Review |
5.25 MB,
video/mp4
|
Details |
STR: 1. Make a phone call. 2. Very quickly changing the distance between hand and the phone for three times. 3. Can see screen turns on and off. RESULTS: Screen won't turn on screen off until call ends.
Reporter | ||
Comment 1•10 years ago
|
||
[Blocking Requested - why for this release]: We meet this issue both on Dophin and Flame. gaia : remote="mozillaorg" revision="efa2b8cb095407df942fee7732a5547c7034ef9b" upstream="v1.4" gecko : remote="mozillaorg" revision="a040c4e10e140fc234e6ee0bcfd53c0967dc7ba3" upstream="v1.4"
blocking-b2g: --- → 1.4?
status-b2g-v1.4:
--- → ?
Reporter | ||
Comment 2•10 years ago
|
||
We also found this issue on v2.0
status-b2g-v2.0:
--- → ?
Whiteboard: [sprd356916]
Reporter | ||
Comment 3•10 years ago
|
||
I think this timer is the main cause, gaia/apps/system/js/screen_manager.js var screenOff = function scm_screenOff() { ... setTimeout(function realScreenOff() { self.setScreenBrightness(0, true); // Sometimes the ScreenManager.screenEnabled and mozPower.screenEnabled // values are out of sync. Since the rest of the world relies only on // the value of ScreenManager.screenEnabled it can be some situations // where the screen is off but ScreenManager think it is on... (see // bug 822463). Ideally a callback should have been used, like // ScreenManager.getScreenState(function(value) { ...} ); but there // are too many places to change that for now. self.screenEnabled = false; navigator.mozPower.screenEnabled = false; }, 20); ... issue can not reproduced if this timer was not used.
Hi Shiwei - Could you help to provide a video of how you reproduce this one on Flame? Thanks for your help
Flags: needinfo?(shiwei.zhang)
Reporter | ||
Comment 5•10 years ago
|
||
(In reply to Vance Chen [:vchen][vchen@mozilla.com] from comment #4) > Hi Shiwei - > > Could you help to provide a video of how you reproduce this one on Flame? > > Thanks for your help Hi Vance, can you open this link http://bugzilla.spreadtrum.com/bugzilla/show_bug.cgi?id=357168 the video is too large and attached in our bugzilla. thanks.
Flags: needinfo?(shiwei.zhang)
(In reply to Shiwei Zhang from comment #5) > (In reply to Vance Chen [:vchen][vchen@mozilla.com] from comment #4) > > Hi Shiwei - > > > > Could you help to provide a video of how you reproduce this one on Flame? > > > > Thanks for your help > > Hi Vance, can you open this link > > http://bugzilla.spreadtrum.com/bugzilla/show_bug.cgi?id=357168 > > the video is too large and attached in our bugzilla. > > thanks. Hi Shiwei - Thanks, I just check the video, however I find it is extremely hard to reproduce this one on Flame. From the video I am thinking maybe you can try to adjust the screen off timer in order to accommodate the sensitivity of p-sensor? Thanks
Flags: needinfo?(shiwei.zhang)
Reporter | ||
Comment 7•10 years ago
|
||
Yes, I have tried, but nothing has changed unless removing the timer, this issue is not inevitable,but occured with a high probability.
Flags: needinfo?(shiwei.zhang)
(In reply to Shiwei Zhang from comment #7) > Yes, I have tried, but nothing has changed unless removing the timer, this > issue is not inevitable,but occured with a high probability. It will still happen even if you prolong the timer?
Flags: needinfo?(shiwei.zhang)
Reporter | ||
Comment 9•10 years ago
|
||
(In reply to Vance Chen [:vchen][vchen@mozilla.com] from comment #8) > (In reply to Shiwei Zhang from comment #7) > > Yes, I have tried, but nothing has changed unless removing the timer, this > > issue is not inevitable,but occured with a high probability. > > It will still happen even if you prolong the timer? Yes, the longer we set the easier issue to be reproduced, I think modifying mozPower.screenEnabled in a timer is NOT entirely correct, if we call turnScreenOn, mozPower.screenEnabled is assigned TRUE, but meanwhile, the turnScreenOff timer isn't timeout. Finally, mozPower.screenEnabled is assigned FALSE, and then screen is still off.
Flags: needinfo?(shiwei.zhang)
Hi Etienne, could you help to check this one and provide some suggestions? i put the reproduce video here: https://www.youtube.com/watch?v=OgxiYIFN-_g&feature=youtu.be It can also be reproduced on Flame, but with lower probability.
Flags: needinfo?(etienne)
Assignee | ||
Comment 11•10 years ago
|
||
I this fixing the issue?
Attachment #8498879 -
Flags: feedback?(shiwei.zhang)
Flags: needinfo?(etienne)
Reporter | ||
Comment 12•10 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #11) > Created attachment 8498879 [details] [diff] [review] > WIP > > I this fixing the issue? Unfortunately, issue still exist unless removing the timer. Can we remove the timer?
Flags: needinfo?(etienne)
Assignee | ||
Comment 13•10 years ago
|
||
New patch! Let me know. (I wouldn't recommend just removing the timeout for now since it could cause edge cases bug).
Attachment #8498879 -
Attachment is obsolete: true
Attachment #8498879 -
Flags: feedback?(shiwei.zhang)
Attachment #8499442 -
Flags: feedback?(shiwei.zhang)
Flags: needinfo?(etienne)
Reporter | ||
Comment 14•10 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #13) > Created attachment 8499442 [details] [diff] [review] > WIP v2 > > New patch! Let me know. > > (I wouldn't recommend just removing the timeout for now since it could cause > edge cases bug). Yes! issue fixed, perfect patch! Could you tell me why not remove this timer? Thank you.
blocking-b2g: 1.4? → ---
Assignee | ||
Comment 15•10 years ago
|
||
Assignee: nobody → etienne
Attachment #8499442 -
Attachment is obsolete: true
Attachment #8499442 -
Flags: feedback?(shiwei.zhang)
Attachment #8500318 -
Flags: review?(alive)
Comment 16•10 years ago
|
||
Comment on attachment 8500318 [details] [review] Gaia PR Sad setTimeout pattern :/
Attachment #8500318 -
Flags: review?(alive) → review+
blocking-b2g: --- → 1.4+
Assignee | ||
Comment 17•10 years ago
|
||
Landed on master https://github.com/mozilla-b2g/gaia/commit/84ebbc6d1fdc3d2d8691e61430e1d220b08c3114
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 18•10 years ago
|
||
Not sure how we want to go about uplifting or not on which branch (partner branch?) etc... But I've checked that the patch can be cherry-picked without conflict on v1.4.
Comment 19•10 years ago
|
||
It'll need approval for Gaia v1.4 at a minimum. It'll also need explicit approval for any other branches it affects.
status-b2g-v2.0M:
--- → ?
status-b2g-v2.1:
--- → ?
status-b2g-v2.2:
--- → fixed
Flags: needinfo?(etienne)
Target Milestone: --- → 2.1 S6 (10oct)
Assignee | ||
Comment 20•10 years ago
|
||
The bug is hardware dependent, but the race can theoretically happen on all branches.
Flags: needinfo?(etienne)
Assignee | ||
Comment 21•10 years ago
|
||
Comment on attachment 8500318 [details] [review] Gaia PR NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] [Bug caused by] (feature/regressing bug #): [User impact] if declined: screens needs to be waken up with the power button [Testing completed]: basic call + proximity sensor scenarios, on a flame [Risk to taking this patch] (and alternatives if risky): low, small patch on a file with very low churn [String changes made]: none
Attachment #8500318 -
Flags: approval-gaia-v1.4?
Comment 22•10 years ago
|
||
Based on comment 20, did you mean to request approval for the other branches as well then?
Assignee | ||
Comment 23•10 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #22) > Based on comment 20, did you mean to request approval for the other branches > as well then? Frankly I'm not sure. Since the user-facing bug is hardware dependent, do we want to land the fix on all the branches "just to be safe" or do we want the uplifts to be driven by actual devices launch?
Flags: needinfo?(bbajaj)
Comment 24•10 years ago
|
||
Comment on attachment 8500318 [details] [review] Gaia PR Approving given this is a low risk patch handling a race and be safe here.
Attachment #8500318 -
Flags: approval-gaia-v2.1+
Attachment #8500318 -
Flags: approval-gaia-v2.0+
Attachment #8500318 -
Flags: approval-gaia-v1.4?
Attachment #8500318 -
Flags: approval-gaia-v1.4+
Flags: needinfo?(bbajaj)
Comment 25•10 years ago
|
||
v2.1: https://github.com/mozilla-b2g/gaia/commit/8cb275457b19743649de977a9c24e989824b2ccd v2.0: https://github.com/mozilla-b2g/gaia/commit/85acf1dd504eec9eef83f211086f35215e27ed8e v1.4: https://github.com/mozilla-b2g/gaia/commit/077d245f6795c01cb0b77bceec9da23274206a61
Comment 26•10 years ago
|
||
v2.0m: https://github.com/mozilla-b2g/gaia/commit/85acf1dd504eec9eef83f211086f35215e27ed8e
Comment 27•10 years ago
|
||
This issue has been verified successfully on Flame2.0&2.1&2.2 Reproducing rate: 0/5 See attachment: Verify_Woodduck_P-Sensor.MP4 Note:Woodduck doesn't support P-Sensor now,The screen will turn off with Screen timeout in Settings. Woodduck build version: Gaia-Rev 87b23fa81c3b59f2ba24b84f7d686f4160d4e7cb Gecko-Rev d049d4ef127844121c9cf14d2e8ca91fd9045fcb Build-ID 20141124050313 Version 32.0 Flame 2.0 build: Gaia-Rev 124c2f85f1b956e9e8429dab5121de702a3bc197 Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/6b59dd2837c1 Build-ID 20141123000206 Version 32.0 Flame 2.1 build: Gaia-Rev afdfa629be209dd53a1b7b6d6c95eab7077ffcd9 Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/dc3018cbdbe6 Build-ID 20141123001201 Version 34.0 Flame2.2 build: Gaia-Rev c5bad6d78c5fe168e3bb894fc5cb70902c9b19b1 Gecko-Rev https://hg.mozilla.org/mozilla-central/rev/c9cfa9b91dea Build-ID 20141123040209 Version 36.0a1
Comment 28•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•