Closed
Bug 1044330
Opened 10 years ago
Closed 6 years ago
The screen is waken up both on initializing the ScreenManager and on bootstrapping
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: robertbindar, Assigned: robertbindar)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file, 1 obsolete file)
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Steps to reproduce: - you could create an Error object inside ScreenManager.turnScreenOn(..) and then dump error.stack and you'll see it called both times once here [1] and later here [2] [1] http://mxr.mozilla.org/gaia/source/apps/system/js/bootstrap.js#105 [2] http://mxr.mozilla.org/gaia/source/apps/system/js/screen_manager.js#155 The problem is that trying to use the ScreenManager in a marionette test for instance, you'll end up with a bootstrapping turnScreenOn() call (which could be ok to deal with) and another random turnScreenOn() call somewhere in the middle of your test and it can really be a pain sometimes.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → robertbindar
Flags: needinfo?(timdream)
Flags: needinfo?(21)
Comment 2•10 years ago
|
||
I agree this should be fixed but I am really not sure if we have the bandwidth to. :'( Gregor, do you have designated developer on ScreenManager?
Flags: needinfo?(timdream) → needinfo?(anygregor)
Updated•10 years ago
|
Whiteboard: [systemsfe]
Comment 4•10 years ago
|
||
(In reply to Tim Guan-tin Chien [:timdream] (OOO ~Arg 9) (MoCo-TPE) (please ni?) from comment #2) > I agree this should be fixed but I am really not sure if we have the > bandwidth to. :'( > Nothing better :/
Flags: needinfo?(21)
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8470975 -
Flags: review?(21)
Comment 6•10 years ago
|
||
Comment on attachment 8470975 [details] [review] Turn the screen on only on bootstrapping I think Tim is more appropriate here as he wrote most of the screen manager code IIRC.
Attachment #8470975 -
Flags: review?(21) → review?(timdream)
Comment 7•10 years ago
|
||
Comment on attachment 8470975 [details] [review] Turn the screen on only on bootstrapping I am not sure the comment in line 149 is still valid or device dependent, but it's never in the spec so if that "feature" bite you we could remove it. Please remove the entire |if (!self._firstOn) {| block instead of just that line. If you want to be more careful we can ask UX about this.
Attachment #8470975 -
Flags: review?(timdream) → review-
Assignee | ||
Comment 8•10 years ago
|
||
Could be device dependent, there is no setting about brightness in bootstrap.js, we should ask UX though, could you point me to someone from UX who could answer this question?
Flags: needinfo?(timdream)
Comment 9•10 years ago
|
||
There isn't a obvious owner on screen brightness on the UX team wiki; I am redirecting this needinfo to the general :fxosux.
Flags: needinfo?(timdream) → needinfo?(firefoxos-ux-bugzilla)
Comment 10•10 years ago
|
||
So the question here for UX is how the screen brightness should behave when the phone boots up. The legacy code I wrote set the screen brightness to 0.5 and slowly transition to the user-set value and we intend to remove it; which would make the screen brightness jumps from whatever value (set by the bootloader) to the user value.
Comment 11•10 years ago
|
||
Flagging Patrick to see if he can help redirect this.
Flags: needinfo?(firefoxos-ux-bugzilla) → needinfo?(padamczyk)
Comment 12•10 years ago
|
||
Hey Tim, theoretically your current implementation would be the ideal, however I do find the brightness transition is not smooth, it feels like the screen almost flickers. So I suggest in the boot sequence we keep the screen at 50% brightness, then right before the lock screen / first run experience it quickly adjusts to the OS setting. It wouldn't be a smooth (light gradient) transition but rather a quick cut like seen in movies.
Flags: needinfo?(padamczyk)
Assignee | ||
Comment 13•10 years ago
|
||
Tim can you clarify the things a little bit here? I think Patryk is right, the screen dimming makes the phone look very laggy and it'd be nice to fix this. Isn't it possible to just adjust the dimming step to make the transition look smoother?
Flags: needinfo?(timdream)
Comment 14•10 years ago
|
||
We could try I think, but that's probably not what this bug was intended to do. ScreenManager, w/o knowing the internal working of the phone, adjusts the screen brightness with 1/100 of the max value. https://github.com/mozilla-b2g/gaia/blob/b630b8bcaf/apps/system/js/screen_manager.js#L77-L81 However after looking into the code a bit more I realized it's actually a 8-bit number internally, so that's 256 steps. http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkHal.cpp#727-742
Flags: needinfo?(timdream)
Comment 15•10 years ago
|
||
Actually, look back at comment 0 I realized turnScreenOn() should never been called directly in bootstrap.js. It was added in bug 799714. https://github.com/mozilla-b2g/gaia/commit/419dc2fff45ec46736520c00857e572e6a62b637 I wonder if simply removing that can fix the problem here. We can clone another bug to fix comment 14.
Flags: needinfo?(robertbindar)
Comment 16•10 years ago
|
||
I've filed bug 1064683.
Assignee | ||
Comment 17•10 years ago
|
||
Thanks for filing bug 106483. I think removing either of those two calls should work here. I'll try to remove the bootstrap.js call and see if it works as expected, but I have some doubts regarding the booting animations visibility after removing that call.
Flags: needinfo?(robertbindar)
Assignee | ||
Comment 18•10 years ago
|
||
screen_manager.js is loaded before bootstrap.js when the system app is started, so the boostrap.js call is useless
Attachment #8470975 -
Attachment is obsolete: true
Attachment #8486227 -
Flags: review?(timdream)
Comment 19•10 years ago
|
||
Comment on attachment 8486227 [details] [review] remove_bootstrap_turnScreenOn I'll take your word for it! Please wait for Gaia-Try to turn green before merging.
Attachment #8486227 -
Flags: review?(timdream) → review+
Assignee | ||
Comment 20•10 years ago
|
||
Gij is red. I don't think it's related, I tried it locally on both prebuilt binary and custom b2g desktop, I'll investigate more.
Comment 21•6 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•