Closed Bug 1185036 Opened 9 years ago Closed 2 years ago

toggling mozPower.screenEnabled does not instantly turn on the screen

Categories

(Core :: Hardware Abstraction Layer (HAL), defect)

ARM
Gonk (Firefox OS)
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: eeejay, Unassigned)

References

Details

I could reproduce this on a flame device. STR (In the system JS console): > navigator.mozPower.screenBrightness = 0 (screen goes dark) > navigator.mozPower.screenEnabled = 0 > navigator.mozPower.screenEnabled = 1 > navigator.mozPower.screenBrightness = 0 Result: Screen remains dark until the user touches it. Expected: Screen should turn on again once the screen is enabled and brightness is tweaked all the way.
Component: General → Hardware Abstraction Layer (HAL)
Product: Firefox OS → Core
(In reply to Eitan Isaacson [:eeejay] from comment #0) > I could reproduce this on a flame device. > > STR (In the system JS console): > > navigator.mozPower.screenBrightness = 0 (screen goes dark) > > navigator.mozPower.screenEnabled = 0 > > navigator.mozPower.screenEnabled = 1 > > navigator.mozPower.screenBrightness = 0 > > Result: Screen remains dark until the user touches it. > Expected: Screen should turn on again once the screen is enabled and > brightness is tweaked all the way. I don't understand the expected result here. These four command moves screen to enabled=true and brightness=0 state so it should remain dark isn't? I separately found bug 1235319, but that's probably unrelated.
Flags: needinfo?(eitan)
(In reply to Tim Guan-tin Chien [:timdream] (please needinfo) from comment #1) > (In reply to Eitan Isaacson [:eeejay] from comment #0) > > I could reproduce this on a flame device. > > > > STR (In the system JS console): > > > navigator.mozPower.screenBrightness = 0 (screen goes dark) > > > navigator.mozPower.screenEnabled = 0 > > > navigator.mozPower.screenEnabled = 1 > > > navigator.mozPower.screenBrightness = 0 > > > > Result: Screen remains dark until the user touches it. > > Expected: Screen should turn on again once the screen is enabled and > > brightness is tweaked all the way. > > I don't understand the expected result here. These four command moves screen > to enabled=true and brightness=0 state so it should remain dark isn't? > > I separately found bug 1235319, but that's probably unrelated. Oops, the last line should set brightness to 1. So, STR: * navigator.mozPower.screenBrightness = 0 (screen goes dark) * navigator.mozPower.screenEnabled = 0 * navigator.mozPower.screenEnabled = 1 * navigator.mozPower.screenBrightness = 1
Flags: needinfo?(eitan)
Depends on: 1382955
Severity: normal → S3

Closing old B2G bugs

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.