Closed Bug 804890 Opened 12 years ago Closed 12 years ago

[Home] Screen dims out and not cancallable

Categories

(Firefox OS Graveyard :: Gaia, defect, P3)

x86_64
Linux
defect

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
blocking-basecamp +

People

(Reporter: atsai, Assigned: chiajung)

References

Details

Attachments

(2 files)

After unanswered incoming call, the luminous intensity isn't displayed as setting.

Reproduce Step:
1. Set the luminous intensity to a fixed value (I set it as the brightest)
2. Lock the phone
3. Call the phone and hang of the phone without answered it
4. Unlock the phone

Expected Result:
*. Back in home screen with the brightest luminous intensity

Actual Result:
*. The darkest luminous intensity
Assignee: nobody → chung
Thanks Al!  I noticed that the luminosity kept changing and I couldn't figure out how to repro it consistantly.
blocking-basecamp: --- → ?
Component: General → Gaia
blocking-basecamp: ? → +
Priority: -- → P3
https://github.com/mozilla-b2g/gaia/pull/6102

In original screen_manager implementation it use idleService to help determine user idle state. However, idleService report idle count not from observer registration but last user input (key, mouse or touch), which cause some false alarm and cause the problem.

In this patch, Tim provide a wrapper function for idleService that report user idle count from registration, and calls the user defined idleCallback. And if the idleCallback got called then user interact with device, then activeCallback get called.

Based on this wrapper, I change screen_manager implementation to use it.
Attachment #677318 - Flags: review?(21)
Summary: [Home] Luminous Intensity abnormal after missing call → [Home] Screen dims out and not cancallable
I cannot review the code since I am one of the co-authors. We deliver this fix based on Chiajung's detailed breakdown on what's really going on with idleObserver API.

I consider this is the beginning to fix a lot of workaround and extra code handling screen idle/dimming quirks, so we should land this as soon as possible. Thanks.
Comment on attachment 677318 [details] [review]
Pointer to Github: https://github.com/mozilla-b2g/gaia/pull/6102

I asked Jonas about it and it says this is the right approach. r+.
Attachment #677318 - Flags: review?(21) → review+
Thanks, I will merge another pull request fixing some of the small issue in Chiajung's code.
https://github.com/mozilla-b2g/gaia/pull/6182
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Verified fix on the 11/12 otoro us build.
Status: RESOLVED → VERIFIED
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: