Closed
Bug 914557
Opened 11 years ago
Closed 11 years ago
Turn on the screen (brightness, not unlock) when the connect prompt appears
Categories
(Firefox OS Graveyard :: Gaia::System, defect, P1)
Tracking
(b2g-v1.2 fixed, b2g-v1.3 fixed)
RESOLVED
FIXED
People
(Reporter: huseby, Assigned: paul)
Details
(Whiteboard: [needed-in-aurora-26])
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
alive
:
review+
bajaj
:
approval-gaia-v1.2+
|
Details | Diff | Splinter Review |
When connecting to keon, the device doesn't come out of sleep when the permission dialog is show. I must press the power button to wake it up and confirm the connection. I think we want the device to come out of sleep when prompting the user to all the connection.
My build is:
Gecko -- commit 7dc9265ed90037fbd273a05d322637931191d87a
Gaia -- commit 43cf923c3020d77a9fa962cc0c30fd27f647660d
Assignee | ||
Comment 1•11 years ago
|
||
The device is not locked. Screen is off (brightness).
Summary: connecting to device from app manager doesn't wake device from sleep → Turn on the screen (brightness, not unlock) when the connect prompt appears
Assignee | ||
Updated•11 years ago
|
Priority: -- → P3
Assignee | ||
Updated•11 years ago
|
Priority: P3 → P1
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #810558 -
Flags: review?(poirot.alex)
Assignee | ||
Updated•11 years ago
|
Whiteboard: [needed-in-aurora-26]
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → paul
Comment 3•11 years ago
|
||
Comment on attachment 810558 [details] [diff] [review]
Patch v1
Review of attachment 810558 [details] [diff] [review]:
-----------------------------------------------------------------
That looks very bad for multiple reasons.
Calling an internal gaia event is wrong, we should only rely on chrome event, ideally sent from shell.js in order to keep track of all possible events gecko can throw to gaia.
Also I don't feel confident about patching main.js to add such b2g specific thing.
I'd rather have added something in shell.js around here:
http://mxr.mozilla.org/mozilla-central/source/b2g/chrome/content/shell.js#1008
This method is called when we display the prompt asking to allow the connection.
So it won't turn on the screen if we have the pref that bypass the prompt.
But we could also turn the screen on when a new connection is accepted:
http://mxr.mozilla.org/mozilla-central/source/b2g/chrome/content/shell.js#1054
Actually, it may be even better to just let gaia turn the screen on from here:
https://mxr.mozilla.org/gaia/source/apps/system/js/remote_debugger.js#18
ScrenManager.turnScreenOn();
Attachment #810558 -
Flags: review?(poirot.alex) → review-
Assignee | ||
Comment 4•11 years ago
|
||
Who can review that? Do I need to do a pull request?
Attachment #802188 -
Attachment is obsolete: true
Attachment #810558 -
Attachment is obsolete: true
Attachment #811528 -
Flags: review?
Assignee | ||
Updated•11 years ago
|
Component: Developer Tools: App Manager → Gaia::System
Product: Firefox → Boot2Gecko
Version: 26 Branch → unspecified
Assignee | ||
Updated•11 years ago
|
Attachment #811528 -
Flags: review? → review?(fabrice)
Comment 5•11 years ago
|
||
Comment on attachment 811528 [details] [diff] [review]
Patch V2
Review of attachment 811528 [details] [diff] [review]:
-----------------------------------------------------------------
Passby r+
Attachment #811528 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Can someone land this patch? And how can we get that in Firefox OS 1.2?
Comment 7•11 years ago
|
||
(In reply to Paul Rouget [:paul] from comment #6)
> Can someone land this patch? And how can we get that in Firefox OS 1.2?
Could you send a pull request?
You need approval to go 1.2, but I don't know who to ask for.
https://wiki.mozilla.org/Release_Management/B2G_Landing
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 811528 [details] [diff] [review]
Patch V2
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 #): new feature (App Manager)
[User impact] if declined: people might miss the prompt screen
[Testing completed]: locally
[Risk to taking this patch] (and alternatives if risky): low
[String changes made]: none
Attachment #811528 -
Flags: approval-gaia-v1.2?
Assignee | ||
Comment 9•11 years ago
|
||
Pull request: https://github.com/mozilla-b2g/gaia/pull/12525
What next?
Comment 10•11 years ago
|
||
Travis build on pull request is green, merged to gaia master:
https://github.com/mozilla-b2g/gaia/commit/e519499e33a92b8ccb757492b9ff59d174cf23b3
from pull request:
https://github.com/mozilla-b2g/gaia/pull/12525
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 11•11 years ago
|
||
Comment on attachment 811528 [details] [diff] [review]
Patch V2
Low risk, improves user experience.
Attachment #811528 -
Flags: approval-gaia-v1.2? → approval-gaia-v1.2+
Assignee | ||
Comment 12•11 years ago
|
||
Thanks. How do I land that?
Comment 14•11 years ago
|
||
(In reply to Paul Rouget [:paul] from comment #13)
> How do we land this patch in Gaia 1.2?
Sheriffs will do the uplift for you.
Comment 15•11 years ago
|
||
I believe they will only uplift for 1.2 if koi+ is set, so asking koi? See comment #8 for justification:
https://bugzilla.mozilla.org/show_bug.cgi?id=914557#c8
blocking-b2g: --- → koi?
Flags: needinfo?(jrburke)
Comment 16•11 years ago
|
||
(In reply to James Burke [:jrburke] from comment #15)
> I believe they will only uplift for 1.2 if koi+ is set, so asking koi? See
> comment #8 for justification:
> https://bugzilla.mozilla.org/show_bug.cgi?id=914557#c8
The patch already has approval-gaia-v1.2+ so koi+ is not needed.
blocking-b2g: koi? → ---
Comment 17•11 years ago
|
||
Uplifted e519499e33a92b8ccb757492b9ff59d174cf23b3 to:
v1.2: cc0dafb571abd3275d9b64b3e91c3f26262ccdba
status-b2g-v1.2:
--- → fixed
Comment 18•11 years ago
|
||
Uplifted e519499e33a92b8ccb757492b9ff59d174cf23b3 to:
v1.3 already had this commit
status-b2g-v1.3:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•