Hi all, [1] shows the properties of power manager (WebAPI) and PowerManager.screenEnabled didn't have a suitable name and explanation.
This property didn't only control enable/disable of the device screen but also the device's power state ("on" or "mem"). When gaia developer called this API for turning off the screen but he didn't know the system is going to suspend mode too. This will cause entire system go into frozen state so the following work that developer expected will not be performed until device is woken up by any wakup source. So I suggest to rename this property and split it to two for power state and screen state if necessary. ex: PowerManager.requestToSleep (just an example and welcome to new word) May I know your suggestion? [1] https://developer.mozilla.org/en-US/docs/Web/API/PowerManager Sincerely yours. ------------------------------------- Marco Chen Engineering Manager System Team, Device Engineering Mozilla Taiwan Tel: +886-2-87861100 # 352 mail: mc...@mozilla.com _______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g