Revert "remove the bool guard on screen brightness"
This reverts commit d6f0b8b2fc014bbc2b867d64e3dcffc09e3aa3ff.