Hi, regarding to power-level:
1. Gecko already knows screen is off. (mozPower API?)
2. Gecko could use 'lockscreen.enabled' to know lockscreen is on or off.

Please use this way if I understand your need correctly...